aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/classeditor/classeditor.h
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-04-01 20:19:16 +0000
committerGravatar Fabio Bas2010-04-01 20:19:16 +0000
commit8b4fc7ebbbe43e2b6d02049e4c214fdbc651ff52 (patch)
tree4a38607e76fa039e594af0106a854e51c4636d52 /src/modules/classeditor/classeditor.h
parenttreewindowlist: permit lineheights smaller than icon size if all icons are di... (diff)
downloadKVIrc-8b4fc7ebbbe43e2b6d02049e4c214fdbc651ff52.tar.gz
KVIrc-8b4fc7ebbbe43e2b6d02049e4c214fdbc651ff52.tar.bz2
KVIrc-8b4fc7ebbbe43e2b6d02049e4c214fdbc651ff52.zip
cleaned classeditor (mostly indentation fixes)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4230 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/classeditor/classeditor.h')
-rw-r--r--src/modules/classeditor/classeditor.h38
1 files changed, 8 insertions, 30 deletions
diff --git a/src/modules/classeditor/classeditor.h b/src/modules/classeditor/classeditor.h
index 807f782a2..fd7d41e41 100644
--- a/src/modules/classeditor/classeditor.h
+++ b/src/modules/classeditor/classeditor.h
@@ -40,23 +40,10 @@
#include <QCheckBox>
#include <QLabel>
#include <QTreeWidget>
-//#include <QItemDelegate>
-#include <QAbstractItemView>
class QSplitter;
class KviScriptEditor;
class KviClassEditorTreeWidget;
-/*
-class KVIRC_API KviClassEditorTreeWidgetItemDelegate : public QItemDelegate//QStyledItemDelegate
-{
-public:
- KviClassEditorTreeWidgetItemDelegate(QAbstractItemView * pWidget=0)
- : QItemDelegate(pWidget) {};
- ~KviClassEditorTreeWidgetItemDelegate(){};
- // QSize sizeHint(const QStyleOptionViewItem &option,const QModelIndex &index) const;
- void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
-};
-*/
class KviClassEditorTreeWidgetItem : public QTreeWidgetItem, public KviHeapObject
{
@@ -132,7 +119,6 @@ public:
QString m_szDir;
bool m_bSaving;
public:
- //bool modified(){ return m_bModified; };
void saveProperties(KviConfig *);
void loadProperties(KviConfig *);
void loadUnbuildedFunctions();
@@ -156,8 +142,7 @@ protected slots:
void renameFunction();
KviClassEditorTreeWidgetItem * newItem(QString &szName,KviClassEditorTreeWidgetItem::Type eType);
- void renameItem();
-
+ void renameItem();
void exportAll();
void exportSelectedSepFiles();
@@ -166,26 +151,20 @@ protected slots:
void slotFindWord(const QString &);
void searchReplace(const QString &szSearch,bool bReplace=false,const QString &szReplace="n");
void slotCollapseItems();
- void recursiveCollapseItems(KviClassEditorTreeWidgetItem * it);
-/*
-
-
-
+ void recursiveCollapseItems(KviClassEditorTreeWidgetItem * it);
+ void removeSelectedItems();
+/*
void slotFind();
-
void slotReplaceAll(const QString &before,const QString &after);
- void classRefresh(const QString &szName);
- */
+ void classRefresh(const QString &szName);
+*/
protected:
KviPointerHashTable<QString,KviClassEditorTreeWidgetItem> *m_pClasses;
- // KviClassEditorTreeWidgetItemDelegate *m_pItemDelegate;
- /*
- void recursiveSearchReplace(const QString &szSearch,KviClassEditorTreeWidgetItem * it,bool bReplace=false,const QString &szReplace="n");
+ //void recursiveSearchReplace(const QString &szSearch,KviClassEditorTreeWidgetItem * it,bool bReplace=false,const QString &szReplace="n");
- */
void getExportClassBuffer(QString &buffer,KviClassEditorTreeWidgetItem * it);
void oneTimeSetup();
@@ -205,7 +184,6 @@ protected:
bool classExists(QString &szFullItemName);
void renameClass(KviClassEditorTreeWidgetItem *pClassItem);
void renameNamespace(KviClassEditorTreeWidgetItem *pNamespaceItem);
- void removeSelectedItems();
bool removeItem(KviClassEditorTreeWidgetItem *it,bool * pbYesToAll,bool bDeleteEmptyTree);
void removeItemChildren(KviClassEditorTreeWidgetItem *it);
@@ -274,4 +252,4 @@ protected:
protected slots:
void textChanged(const QString &);
};
-#endif //_ALIASEDITOR_H_
+#endif //_CLASSEDITOR_H_