KVIrc  4.9.2
DeveloperAPIs
OptionsInstanceManager.h
Go to the documentation of this file.
1 
2 
3 #ifndef __OPTIONS_INSTANCES_H__
4 #define __OPTIONS_INSTANCES_H__
5 
6 //=============================================================================
7 //
8 // File : OptionsInstanceManager.h
9 //
10 // This file is part of the KVIrc IRC client distribution
11 // Copyright (C) 2001-2008 Szymon Stefanek (pragma at kvirc dot net)
12 //
13 // This program is FREE software. You can redistribute it and/or
14 // modify it under the terms of the GNU General Public License
15 // as published by the Free Software Foundation; either version 2
16 // of the License, or (at your option) any later version.
17 //
18 // This program is distributed in the HOPE that it will be USEFUL,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 // See the GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program. If not, write to the Free Software Foundation,
25 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 //
27 //=============================================================================
28 
29 //
30 // Instance creation routines for the KVIrc options module
31 // DO NOT EDIT THIS FILE!! ALL CHANGES WILL BE LOST!!
32 // This file is automatically generated by mkcreateinstanceproc.sh
33 // so any change should go in that script
34 //
35 
36 #include "KviOptionsWidget.h"
37 #include "KviModule.h"
38 #include "KviPointerList.h"
39 #include "KviQString.h"
40 #include "KviIconManager.h"
41 
43 
45 {
46  KviOptionsWidget * (*createProc)(QWidget *);
47  KviOptionsWidget * pWidget; // singleton
49  QString szName;
50  QString szNameNoLocale;
51  const char * szClassName;
52  int iPriority;
53  QString szKeywords;
55  QString szGroup;
59  bool bDoInsert; // a helper for OptionsDialog::fillListView()
61 
62 class OptionsInstanceManager : public QObject
63 {
64  Q_OBJECT
65 public:
67  virtual ~OptionsInstanceManager();
68 
69 protected:
71 
72 public:
74  KviOptionsWidget * getInstance(OptionsWidgetInstanceEntry * pEntry, QWidget * pPar);
75  OptionsWidgetInstanceEntry * findInstanceEntry(const char * pcName);
76  void cleanup(KviModule *);
77 
78 protected:
82 protected slots:
83  void widgetDestroyed();
84 };
85 
86 #endif //__OPTIONS_INSTANCES_H__
KviOptionsWidget * pWidget
Definition: OptionsInstanceManager.h:47
bool bIsNotContained
Definition: OptionsInstanceManager.h:57
OptionsWidgetInstanceEntry * findInstanceEntry(const char *pcName)
Definition: OptionsInstanceManager.cpp:3811
void cleanup(KviModule *)
Definition: OptionsInstanceManager.cpp:3687
Definition: OptionsInstanceManager.h:44
bool bDoInsert
Definition: OptionsInstanceManager.h:59
void widgetDestroyed()
Definition: OptionsInstanceManager.cpp:3693
void deleteInstanceTree(KviPointerList< OptionsWidgetInstanceEntry > *pList)
Definition: OptionsInstanceManager.cpp:3655
bool bIsContainer
Definition: OptionsInstanceManager.h:56
virtual ~OptionsInstanceManager()
Definition: OptionsInstanceManager.cpp:3681
struct _OptionsWidgetInstanceEntry OptionsWidgetInstanceEntry
Definition: OptionsInstanceManager.h:42
Definition: KviOptionsWidget.h:40
Icon manager.
SmallIcon
Contains all KVIrc's small icons.
Definition: KviIconManager.h:168
KviIconManager::SmallIcon eIcon
Definition: OptionsInstanceManager.h:48
int iPriority
Definition: OptionsInstanceManager.h:52
QString szNameNoLocale
Definition: OptionsInstanceManager.h:50
KviPointerList< OptionsWidgetInstanceEntry > * m_pInstanceTree
Definition: OptionsInstanceManager.h:70
const char * szClassName
Definition: OptionsInstanceManager.h:51
QString szKeywordsNoLocale
Definition: OptionsInstanceManager.h:54
QString szKeywords
Definition: OptionsInstanceManager.h:53
KviPointerList< OptionsWidgetInstanceEntry > * pChildList
Definition: OptionsInstanceManager.h:58
Definition: OptionsInstanceManager.h:62
KviOptionsWidget * getInstance(OptionsWidgetInstanceEntry *pEntry, QWidget *pPar)
Definition: OptionsInstanceManager.cpp:3702
KviPointerList< OptionsWidgetInstanceEntry > * instanceEntryTree()
Definition: OptionsInstanceManager.h:73
C++ Template based double linked pointer list class.
A template double linked list of pointers.
Definition: KviPointerList.h:55
Definition: KviModule.h:131
QString szGroup
Definition: OptionsInstanceManager.h:55
QString szName
Definition: OptionsInstanceManager.h:49
OptionsInstanceManager()
Definition: OptionsInstanceManager.cpp:653
Helper functions for the QString class.