diff options
| author | 2010-03-05 21:05:05 +0000 | |
|---|---|---|
| committer | 2010-03-05 21:05:05 +0000 | |
| commit | 8941d079707e1a256a82fc42811904c811f2abfa (patch) | |
| tree | 287de9a3881784ea322b604d6f13e99811581c39 /src/modules/classeditor/classeditor.h | |
| parent | Adopt the "show/hide header" option from treewindowlist in classic window lis... (diff) | |
| download | KVIrc-8941d079707e1a256a82fc42811904c811f2abfa.tar.gz KVIrc-8941d079707e1a256a82fc42811904c811f2abfa.tar.bz2 KVIrc-8941d079707e1a256a82fc42811904c811f2abfa.zip | |
More work on classeditor (still w.i.p.)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4095 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/classeditor/classeditor.h')
| -rw-r--r-- | src/modules/classeditor/classeditor.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/classeditor/classeditor.h b/src/modules/classeditor/classeditor.h index 739226f27..cf44415fc 100644 --- a/src/modules/classeditor/classeditor.h +++ b/src/modules/classeditor/classeditor.h @@ -63,7 +63,7 @@ class KviClassEditorTreeWidgetItem : public QTreeWidgetItem, public KviHeapObjec public: enum Type { Class, Namespace, Method }; public: - KviClassEditorTreeWidgetItem(QTreeWidget * pTreeWidget,Type eType,const QString &szName); + KviClassEditorTreeWidgetItem(QTreeWidget * pTreeWidget,Type eType,const QString &szName); KviClassEditorTreeWidgetItem(KviClassEditorTreeWidgetItem * pParentItem,Type eType,const QString &szName); ~KviClassEditorTreeWidgetItem(){}; protected: @@ -76,6 +76,7 @@ protected: int m_cPos; public: void setInerithClass(QString szInerithClassName){m_szInerithClassName=szInerithClassName;}; + QString inerithClass(){return m_szInerithClassName;}; const QString & name(){ return m_szName; }; void setName(const QString &szName); void setClassModified(bool bModified){m_bClassModified=bModified;}; @@ -122,6 +123,7 @@ public: KviScriptEditor * m_pEditor; KviClassEditorTreeWidget * m_pTreeWidget; QLabel * m_pClassNameLabel; + QLabel * m_pInerithClassNameLabel; QPushButton * m_pClassNameRenameButton; QLabel * m_pMemberFunctionNameLabel; QPushButton * m_pMemberFunctionNameRenameButton; @@ -138,7 +140,8 @@ public: void loadProperties(KviConfig *); void loadUnbuildedFunctions(); KviClassEditorTreeWidgetItem * findHandler(KviClassEditorTreeWidgetItem *pItemClass,const QString &szFunctionName); - void commit(); + void build(); + void save(); /* void exportClasses(bool,bool=false); @@ -197,6 +200,7 @@ protected: void askForClassName(QString &szClassName,QString &szInerithClassName); QString askForNamespaceName(const QString &szAction,const QString &szText,const QString &szInitialText); void askForFunction(QString &szFunctionName,bool * bInternal, const QString &szClassName); + void searchInerithedClasses(const QString szClass,QStringList & szInerithed); /* bool removeItem(KviClassEditorTreeWidgetItem *it,bool * pbYesToAll,bool bDeleteEmptyTree); @@ -245,8 +249,8 @@ protected: virtual void loadProperties(KviConfig *); protected slots: void cancelClicked(); - void okClicked(); - void applyClicked(); + void buildClicked(); + void saveClicked(); }; class KviClassEditorDialog: public QDialog |
