KVIrc  4.9.2
DeveloperAPIs
ClassEditorWindow.h
Go to the documentation of this file.
1 #ifndef _CLASSEDITOR_H_
2 #define _CLASSEDITOR_H_
3 //=============================================================================
4 //
5 // File : ClassEditorWindow.h
6 // Creation date : Mon Feb 15 2010 14:35:55 CEST by Carbone Alessandro
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2010 Alessandro Carbone (elfonol at gmail dot com)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
33 #include "KviWindow.h"
34 #include "KviCString.h"
35 #include "KviPointerList.h"
36 #include "KviHeapObject.h"
37 #include "KviKvsObjectClass.h"
38 
39 #include <QWidget>
40 #include <QComboBox>
41 #include <QDialog>
42 #include <QLineEdit>
43 #include <QCheckBox>
44 #include <QTreeWidget>
45 #include <QMenu>
46 
47 class QLineEdit;
48 class QStringList;
49 class QPushButton;
50 class QCheckBox;
51 class QLabel;
52 class QSplitter;
53 class KviScriptEditor;
54 
59 class ClassEditorTreeWidget : public QTreeWidget
60 {
61  Q_OBJECT
62 public:
68  ClassEditorTreeWidget(QWidget * pParent);
69 
74 
75 protected:
76  virtual void mousePressEvent(QMouseEvent * e);
77 signals:
84  void rightButtonPressed(QTreeWidgetItem * pItem, QPoint pos);
85 };
86 
91 class ClassEditorTreeWidgetItem : public QTreeWidgetItem, public KviHeapObject
92 {
93 public:
98  enum Type
99  {
103  };
104 
105 public:
113  ClassEditorTreeWidgetItem(QTreeWidget * pTreeWidget, Type eType, const QString & szName);
114 
122  ClassEditorTreeWidgetItem(ClassEditorTreeWidgetItem * pParentItem, Type eType, const QString & szName);
123 
128 
129 protected:
130  Type m_eType;
131  QString m_szName;
132  QString m_szBuffer;
134  QString m_szReminder;
137  int m_iPos;
138 
139 public:
145  void setInheritsClass(QString szInheritsClassName) { m_szInheritsClassName = szInheritsClassName; };
146 
151  QString inheritsClass() { return m_szInheritsClassName; };
152 
157  const QString & name() { return m_szName; };
158 
164  void setName(const QString & szName);
165 
171  void setReminder(const QString & szRem) { m_szReminder = szRem; };
172 
177  QString reminder() { return m_szReminder; };
178 
184  void setClassNotBuilt(bool bModified);
185 
190  bool classNotBuilt() { return m_bClassModified; };
191 
197  void setInternalFunction(bool bInternal) { m_bInternal = bInternal; };
198 
203  bool isInternalFunction() { return m_bInternal; };
204 
209  Type type() { return m_eType; };
210 
216  void setType(Type eType);
217 
222  bool isClass() { return m_eType == Class; };
223 
228  bool isNamespace() { return m_eType == Namespace; };
229 
234  bool isMethod() { return m_eType == Method; };
235 
241  void setBuffer(const QString & szBuffer) { m_szBuffer = szBuffer; };
242 
247  const QString & buffer() { return m_szBuffer; };
248 
253  const int & cursorPosition() { return m_iPos; };
254 
260  void setCursorPosition(const int & iPos) { m_iPos = iPos; };
261 };
262 
267 class ClassEditorWidget : public QWidget
268 {
269  Q_OBJECT
270 public:
276  ClassEditorWidget(QWidget * pParent);
277 
282 
283 public:
291 
295  QSplitter * m_pSplitter;
296  QString m_szDir;
297  bool m_bSaving;
298 
299 protected:
301 
302 public:
308  virtual void saveProperties(KviConfigurationFile * pCfg);
309 
315  virtual void loadProperties(KviConfigurationFile * pCfg);
316 
321  void build();
322 
327  void saveNotBuiltClasses();
328 
333  void loadNotBuiltClasses();
334 
341  ClassEditorTreeWidgetItem * findFunction(const QString & szFunctionName, ClassEditorTreeWidgetItem * pClass);
342 
349  void exportClasses(bool bSelectedOnly, bool bSingleFiles = false);
350 
357 
363  void cutItem(ClassEditorTreeWidgetItem * pItem);
364 
365 protected:
366  //void recursiveSearchReplace(const QString &szSearch,ClassEditorTreeWidgetItem * it,bool bReplace=false,const QString &szReplace="n");
367 
368  void exportClassBuffer(QString & szBuffer, ClassEditorTreeWidgetItem * pItem);
369 
370  void oneTimeSetup();
371  void createFullClass(KviKvsObjectClass * pClass, ClassEditorTreeWidgetItem * pItem, const QString & szClassName);
372 
373  void saveLastEditedItem();
375  void appendSelectedClassItemsRecursive(KviPointerList<ClassEditorTreeWidgetItem> * pList, QTreeWidgetItem * pStartFrom);
376 
378  void appendAllClassItemsRecursive(KviPointerList<ClassEditorTreeWidgetItem> * l, QTreeWidgetItem * pStartFrom);
379 
380  void openParentItems(QTreeWidgetItem * pItem);
381  void activateItem(QTreeWidgetItem * pItem);
382  bool hasSelectedItems();
383  bool askForClassName(QString & szClassName, QString & szInheritsClassName, bool bEdit);
384  bool askForNamespaceName(const QString & szAction, const QString & szText, const QString & szInitialText, QString & szNameBuffer);
385  bool askForFunction(QString & szFunctionName, QString & szReminder, bool * pbInternal, const QString & szClassName, bool bRenameMode);
386  void searchInheritedClasses(const QString szClass, KviPointerList<ClassEditorTreeWidgetItem> & lInheritsedClasses);
387 
393  bool classExists(QString & szName);
394 
400  void renameClass(ClassEditorTreeWidgetItem * pClass);
401 
407  void renameNamespace(ClassEditorTreeWidgetItem * pNamespace);
408 
409  bool removeItem(ClassEditorTreeWidgetItem * pItem, KviPointerList<ClassEditorTreeWidgetItem> & lRemovedItems, bool * pbYesToAll);
411 
413  void buildFullItemPath(ClassEditorTreeWidgetItem * pItem, QString & szBuffer);
415  ClassEditorTreeWidgetItem * createFullItem(const QString & szFullName);
416  ClassEditorTreeWidgetItem * createFullNamespace(const QString & szFullName);
417 
423  ClassEditorTreeWidgetItem * findItem(const QString & szName);
424 
425  ClassEditorTreeWidgetItem * findTopLevelItem(const QString & szName);
426  ClassEditorTreeWidgetItem * createFullItemRecursive(QTreeWidgetItem * pCurrent, QStringList & lNameSpaces, int & iLevel, bool bCreateNameSpace = 0);
427 protected slots:
428  void currentItemChanged(QTreeWidgetItem * pItem, QTreeWidgetItem *);
429  void customContextMenuRequested(QPoint);
430  void newClass();
431  void newNamespace();
432  void newMemberFunction();
433  void renameFunction();
435 
436  void renameItem();
437 
438  void exportAll();
439  void exportSelectedSepFiles();
440  void exportSelected();
441  void slotFind();
442  void slotFindWord(const QString &);
443  void searchReplace(const QString & szSearch, bool bReplace = false, const QString & szReplace = "n");
444 
449  void slotCollapseItems();
450 
457 
462  void removeSelectedItems();
463 
470  void slotReplaceAll(const QString & szBefore, const QString & szAfter);
471 };
472 
478 {
479  Q_OBJECT
480 public:
486 
491 
492 protected:
494 
495 protected:
500  virtual QPixmap * myIconPtr();
501 
507  virtual void configGroupName(QString & szName);
508 
514  virtual void saveProperties(KviConfigurationFile * pCfg);
515 
521  virtual void loadProperties(KviConfigurationFile * pCfg);
522 protected slots:
527  void cancelClicked();
528 
533  void buildClicked();
534 
539  void saveClicked();
540 };
541 
546 class KviClassEditorDialog : public QDialog
547 {
548  Q_OBJECT
549 public:
560  KviClassEditorDialog(QWidget * pParent, const QString & szName, KviPointerHashTable<QString, ClassEditorTreeWidgetItem> * pClasses, const QString & szClassName, const QString & szInheritsClassName, bool bRenameMode = false);
561 
566 
567 protected:
568  QPushButton * m_pNewClassButton;
569  QLineEdit * m_pClassNameLineEdit;
571 
572 public:
577  QString className() { return m_pClassNameLineEdit->text(); };
578 
583  QString inheritsClassName() { return m_pInheritsClassComboBox->currentText(); };
584 protected slots:
589  void textChanged(const QString &);
590 };
591 
596 class KviClassEditorFunctionDialog : public QDialog
597 {
598  Q_OBJECT
599 public:
611  KviClassEditorFunctionDialog(QWidget * pParent, const QString & szName, const QString & szClassName, const QString & szFunctionName, const QString & szReminder, bool bIsInternal, bool bRenameMode = false);
612 
617 
618 protected:
619  QPushButton * m_pNewFunctionButton;
621  QLineEdit * m_pReminderLineEdit;
622  QCheckBox * m_pInternalCheckBox;
623 
624 public:
629  QString functionName() { return m_pFunctionNameLineEdit->text(); };
630 
635  QString reminder() { return m_pReminderLineEdit->text(); };
636 
641  bool isInternalFunction() { return m_pInternalCheckBox->isChecked(); };
642 protected slots:
647  void textChanged(const QString &);
648 };
649 #endif //_CLASSEDITOR_H_
~KviClassEditorFunctionDialog()
Destroys the function dialog.
void cutItem(ClassEditorTreeWidgetItem *pItem)
Removes the item from the tree.
Definition: ClassEditorWindow.cpp:641
void customContextMenuRequested(QPoint)
Definition: ClassEditorWindow.cpp:865
bool m_bClassModified
Definition: ClassEditorWindow.h:135
void createFullClass(KviKvsObjectClass *pClass, ClassEditorTreeWidgetItem *pItem, const QString &szClassName)
Definition: ClassEditorWindow.cpp:430
void slotFindWord(const QString &)
Definition: ClassEditorWindow.cpp:1001
QCheckBox * m_pInternalCheckBox
Definition: ClassEditorWindow.h:622
QString m_szBuffer
Definition: ClassEditorWindow.h:132
virtual void saveProperties(KviConfigurationFile *pCfg)
Called to save the window properties.
Definition: ClassEditorWindow.cpp:1907
Definition: KviHeapObject.h:124
const int & cursorPosition()
Returns the cursor's position.
Definition: ClassEditorWindow.h:253
QLineEdit * m_pFunctionNameLineEdit
Definition: ClassEditorWindow.h:620
virtual QPixmap * myIconPtr()
Returns the class editor small icon.
Definition: ClassEditorWindow.cpp:1897
void setType(Type eType)
Sets the type of the item.
Definition: ClassEditorWindow.cpp:151
void exportSelected()
Definition: ClassEditorWindow.cpp:1083
ClassEditorTreeWidgetItem * createFullNamespace(const QString &szFullName)
Definition: ClassEditorWindow.cpp:346
ClassEditorTreeWidgetItem * createFullItem(const QString &szFullName)
Definition: ClassEditorWindow.cpp:309
Definition: ClassEditorWindow.h:101
void currentItemChanged(QTreeWidgetItem *pItem, QTreeWidgetItem *)
Definition: ClassEditorWindow.cpp:750
QString m_szReminder
Definition: ClassEditorWindow.h:134
void buildFullItemPath(ClassEditorTreeWidgetItem *pItem, QString &szBuffer)
Definition: ClassEditorWindow.cpp:234
virtual void mousePressEvent(QMouseEvent *e)
Definition: ClassEditorWindow.cpp:82
void activateItem(QTreeWidgetItem *pItem)
Definition: ClassEditorWindow.cpp:1571
ClassEditorWidget * m_pEditor
Definition: ClassEditorWindow.h:493
QComboBox * m_pInheritsClassComboBox
Definition: ClassEditorWindow.h:570
This class constructs the dialog to create a new class.
Definition: ClassEditorWindow.h:546
QLineEdit * m_pClassNameLineEdit
Definition: ClassEditorWindow.h:569
void setCursorPosition(const int &iPos)
Sets the cursor position.
Definition: ClassEditorWindow.h:260
ClassEditorTreeWidgetItem * findFunction(const QString &szFunctionName, ClassEditorTreeWidgetItem *pClass)
Searches a function.
Definition: ClassEditorWindow.cpp:538
Definition: ClassEditorWindow.h:102
Definition: KviScriptEditor.h:43
#define l
Definition: detector.cpp:76
QLabel * m_pFunctionNameLabel
Definition: ClassEditorWindow.h:288
void searchReplace(const QString &szSearch, bool bReplace=false, const QString &szReplace="n")
Definition: ClassEditorWindow.cpp:947
virtual void saveProperties(KviConfigurationFile *pCfg)
Called to save the window properties.
Definition: ClassEditorWindow.cpp:1246
void setBuffer(const QString &szBuffer)
Saves the code of the item in a buffer.
Definition: ClassEditorWindow.h:241
ClassEditorTreeWidgetItem * createFullItemRecursive(QTreeWidgetItem *pCurrent, QStringList &lNameSpaces, int &iLevel, bool bCreateNameSpace=0)
QLabel * m_pClassNameLabel
Definition: ClassEditorWindow.h:286
~ClassEditorWidget()
Destroys the class editor object.
Definition: ClassEditorWindow.cpp:228
void textChanged(const QString &)
Triggered when the name of the function change.
Definition: ClassEditorWindow.cpp:2127
ClassEditorTreeWidget * m_pTreeWidget
Definition: ClassEditorWindow.h:285
Definition: KviConfigurationFile.h:48
QString className()
Returns the class name.
Definition: ClassEditorWindow.h:577
bool m_bSaving
Definition: ClassEditorWindow.h:297
void setInheritsClass(QString szInheritsClassName)
Sets the class name on which the class inherits from.
Definition: ClassEditorWindow.h:145
void openParentItems(QTreeWidgetItem *pItem)
Definition: ClassEditorWindow.cpp:1562
KviPointerHashTable< QString, ClassEditorTreeWidgetItem > * m_pClasses
Definition: ClassEditorWindow.h:300
void renameFunction()
Definition: ClassEditorWindow.cpp:475
virtual void loadProperties(KviConfigurationFile *pCfg)
Called to load the window properties.
Definition: ClassEditorWindow.cpp:1255
void setInternalFunction(bool bInternal)
Sets the function as internal.
Definition: ClassEditorWindow.h:197
KviClassEditorDialog(QWidget *pParent, const QString &szName, KviPointerHashTable< QString, ClassEditorTreeWidgetItem > *pClasses, const QString &szClassName, const QString &szInheritsClassName, bool bRenameMode=false)
Constructs the class dialog.
Definition: ClassEditorWindow.cpp:1917
void exportClassBuffer(QString &szBuffer, ClassEditorTreeWidgetItem *pItem)
Definition: ClassEditorWindow.cpp:1038
Definition: KviKvsObjectClass.h:49
ClassEditorWidget(QWidget *pParent)
Constructs the class editor object.
Definition: ClassEditorWindow.cpp:166
void loadNotBuiltClasses()
Loads non-built classes to a file.
Definition: ClassEditorWindow.cpp:1741
KviClassEditorFunctionDialog(QWidget *pParent, const QString &szName, const QString &szClassName, const QString &szFunctionName, const QString &szReminder, bool bIsInternal, bool bRenameMode=false)
Constructs the function dialog.
Definition: ClassEditorWindow.cpp:2031
void newClass()
Definition: ClassEditorWindow.cpp:1579
void saveNotBuiltClasses()
Saves non-built classes to a file.
Definition: ClassEditorWindow.cpp:1798
The Class Editor module.
Definition: ClassEditorWindow.h:267
ClassEditorTreeWidgetItem * findItem(const QString &szName)
Searches an item.
Definition: ClassEditorWindow.cpp:281
void exportSelectionInSinglesFiles(KviPointerList< ClassEditorTreeWidgetItem > *pList)
Exports the current selection to single files.
Definition: ClassEditorWindow.cpp:1088
ClassEditorTreeWidgetItem * m_pLastEditedItem
Definition: ClassEditorWindow.h:292
#define e
Definition: detector.cpp:69
Type type()
Returns the type of the item.
Definition: ClassEditorWindow.h:209
QString m_szName
Definition: ClassEditorWindow.h:131
const QString & buffer()
Returns the buffer containing the code of the item.
Definition: ClassEditorWindow.h:247
QPushButton * m_pFunctionNameRenameButton
Definition: ClassEditorWindow.h:289
void slotCollapseItems()
Called when we collapse an item.
Definition: ClassEditorWindow.cpp:1020
void appendAllClassItems(KviPointerList< ClassEditorTreeWidgetItem > *pList)
Definition: ClassEditorWindow.cpp:1290
QString reminder()
Returns the parameters list.
Definition: ClassEditorWindow.h:177
virtual void loadProperties(KviConfigurationFile *pCfg)
Called to load the window properties.
Definition: ClassEditorWindow.cpp:1912
void removeItemChildren(ClassEditorTreeWidgetItem *pItem, KviPointerList< ClassEditorTreeWidgetItem > &lRemovedItems)
Definition: ClassEditorWindow.cpp:1315
QPushButton * m_pClassNameRenameButton
Definition: ClassEditorWindow.h:287
QPushButton * m_pNewClassButton
Definition: ClassEditorWindow.h:568
int m_iPos
Definition: ClassEditorWindow.h:137
void searchInheritedClasses(const QString szClass, KviPointerList< ClassEditorTreeWidgetItem > &lInheritsedClasses)
Definition: ClassEditorWindow.cpp:1834
ClassEditorTreeWidgetItem(QTreeWidget *pTreeWidget, Type eType, const QString &szName)
Constructs the class editor tree widget item.
Definition: ClassEditorWindow.cpp:93
void slotFind()
Definition: ClassEditorWindow.cpp:980
void renameClass(ClassEditorTreeWidgetItem *pClass)
Renames a class.
Definition: ClassEditorWindow.cpp:565
bool isInternalFunction()
Returns true if the function is set as internal, false otherwise.
Definition: ClassEditorWindow.h:641
void appendSelectedClassItems(KviPointerList< ClassEditorTreeWidgetItem > *pList)
Definition: ClassEditorWindow.cpp:1267
QString inheritsClass()
Returns the class name of the classes we inherit from.
Definition: ClassEditorWindow.h:151
Describes the tree widget hierarchy.
Definition: ClassEditorWindow.h:59
bool removeItem(ClassEditorTreeWidgetItem *pItem, KviPointerList< ClassEditorTreeWidgetItem > &lRemovedItems, bool *pbYesToAll)
Definition: ClassEditorWindow.cpp:1349
bool hasSelectedItems()
Definition: ClassEditorWindow.cpp:462
QLineEdit * m_pReminderLineEdit
Definition: ClassEditorWindow.h:621
void oneTimeSetup()
Definition: ClassEditorWindow.cpp:378
bool isInternalFunction()
Returns true if the function is set as internal, false otherwise.
Definition: ClassEditorWindow.h:203
~ClassEditorTreeWidgetItem()
Destroys the class editor tree widget item.
Definition: ClassEditorWindow.h:127
QString reminder()
Returns the parameters of the function.
Definition: ClassEditorWindow.h:635
void exportAll()
Definition: ClassEditorWindow.cpp:1073
void renameItem()
Definition: ClassEditorWindow.cpp:548
QPushButton * m_pNewFunctionButton
Definition: ClassEditorWindow.h:619
void newNamespace()
Definition: ClassEditorWindow.cpp:1600
ClassEditorTreeWidgetItem * newItem(QString &szName, ClassEditorTreeWidgetItem::Type eType)
Definition: ClassEditorWindow.cpp:1634
ClassEditorTreeWidgetItem * findTopLevelItem(const QString &szName)
Definition: ClassEditorWindow.cpp:271
~ClassEditorWindow()
Destroys the class editor window.
Definition: ClassEditorWindow.cpp:1877
QLabel * m_pReminderLabel
Definition: ClassEditorWindow.h:290
void setClassNotBuilt(bool bModified)
Sets the state of the class as non-built.
Definition: ClassEditorWindow.cpp:132
void buildClicked()
Called when we want to build the class.
Definition: ClassEditorWindow.cpp:1882
bool m_bInternal
Definition: ClassEditorWindow.h:136
C++ Template based double linked pointer list class.
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
void updateClassHierarchy(ClassEditorTreeWidgetItem *pClass)
Definition: ClassEditorWindow.cpp:1428
A template double linked list of pointers.
Definition: KviPointerList.h:55
Type m_eType
Definition: ClassEditorWindow.h:127
ClassEditorTreeWidget(QWidget *pParent)
Construct the tree widget.
Definition: ClassEditorWindow.cpp:66
QString inheritsClassName()
Returns the class name of the parent classes.
Definition: ClassEditorWindow.h:583
void slotReplaceAll(const QString &szBefore, const QString &szAfter)
Called when we replace text everywhere.
Definition: ClassEditorWindow.cpp:1032
Heap Object.
const QString & name()
Returns the name of the item.
Definition: ClassEditorWindow.h:157
void recursiveCollapseItems(ClassEditorTreeWidgetItem *pItem)
Called when we collapse an item recursively.
Definition: ClassEditorWindow.cpp:1006
bool askForFunction(QString &szFunctionName, QString &szReminder, bool *pbInternal, const QString &szClassName, bool bRenameMode)
Definition: ClassEditorWindow.cpp:1475
QString functionName()
Returns the function name.
Definition: ClassEditorWindow.h:629
void setName(const QString &szName)
Sets the name of the item.
Definition: ClassEditorWindow.cpp:145
bool classExists(QString &szName)
Returns true if the class exists, false otherwise.
Definition: ClassEditorWindow.cpp:467
Definition: ClassEditorWindow.h:100
void setReminder(const QString &szRem)
Sets the list of parameters the function accept.
Definition: ClassEditorWindow.h:171
bool isNamespace()
Returns true if the item is a namespace, false otherwise.
Definition: ClassEditorWindow.h:228
void renameNamespace(ClassEditorTreeWidgetItem *pNamespace)
Renames a namespace.
Definition: ClassEditorWindow.cpp:653
ClassEditorWindow()
Constructs the class editor window.
Definition: ClassEditorWindow.cpp:1845
void appendSelectedClassItemsRecursive(KviPointerList< ClassEditorTreeWidgetItem > *pList, QTreeWidgetItem *pStartFrom)
Definition: ClassEditorWindow.cpp:1279
This class constructs the dialog to create a new member function.
Definition: ClassEditorWindow.h:596
QSplitter * m_pSplitter
Definition: ClassEditorWindow.h:295
Contains the KviWindow class.
ClassEditorTreeWidgetItem * m_pLastClickedItem
Definition: ClassEditorWindow.h:293
void exportSelectedSepFiles()
Definition: ClassEditorWindow.cpp:1078
Describes an item inside the class editor tree widget.
Definition: ClassEditorWindow.h:91
void saveClicked()
Called when we want to save the class.
Definition: ClassEditorWindow.cpp:1887
void exportClasses(bool bSelectedOnly, bool bSingleFiles=false)
Exports class to a file.
Definition: ClassEditorWindow.cpp:1144
QString m_szInheritsClassName
Definition: ClassEditorWindow.h:133
char szBuffer[4096]
Definition: winamp.cpp:77
void newMemberFunction()
Definition: ClassEditorWindow.cpp:1611
void saveLastEditedItem()
Definition: ClassEditorWindow.cpp:737
void textChanged(const QString &)
Triggered when the name of the class change.
Definition: ClassEditorWindow.cpp:2026
bool isClass()
Returns true if the item is a class, false otherwise.
Definition: ClassEditorWindow.h:222
QString buildFullClassName(ClassEditorTreeWidgetItem *pItem)
Definition: ClassEditorWindow.cpp:252
~KviClassEditorDialog()
Destroys the class dialog.
QString m_szDir
Definition: ClassEditorWindow.h:296
virtual void configGroupName(QString &szName)
Sets the configuration group name as classeditor.
Definition: ClassEditorWindow.cpp:1902
void removeSelectedItems()
Called when we want to remove all selected items.
Definition: ClassEditorWindow.cpp:1442
KviScriptEditor * m_pEditor
Definition: ClassEditorWindow.h:284
Type
Contains the type of the class item.
Definition: ClassEditorWindow.h:98
void appendAllClassItemsRecursive(KviPointerList< ClassEditorTreeWidgetItem > *l, QTreeWidgetItem *pStartFrom)
Definition: ClassEditorWindow.cpp:1300
QMenu * m_pContextPopup
Definition: ClassEditorWindow.h:294
bool askForClassName(QString &szClassName, QString &szInheritsClassName, bool bEdit)
Definition: ClassEditorWindow.cpp:1457
This is the Class Editor window.
Definition: ClassEditorWindow.h:477
void cancelClicked()
Called when we click the cancel button.
Definition: ClassEditorWindow.cpp:1892
bool askForNamespaceName(const QString &szAction, const QString &szText, const QString &szInitialText, QString &szNameBuffer)
Definition: ClassEditorWindow.cpp:1494
bool isMethod()
Returns true if the item is a member function, false otherwise.
Definition: ClassEditorWindow.h:234
void build()
Builds the class!
Definition: ClassEditorWindow.cpp:1657
~ClassEditorTreeWidget()
Destroys the tree widget.
Definition: ClassEditorWindow.cpp:76
void rightButtonPressed(QTreeWidgetItem *pItem, QPoint pos)
Emitted when we press the mouse right button.
bool classNotBuilt()
Returns true if we class is not built yet, false otherwise.
Definition: ClassEditorWindow.h:190