• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
configwidgetproxy.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2004 Jens Dagerbo <jens.dagerbo@swipnet.se>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _CONFIGWIDGETPROXY_H
21#define _CONFIGWIDGETPROXY_H
22
23#include <tqobject.h>
24#include <tqstring.h>
25#include <tqmap.h>
26
27class KDevCore;
28class KDialogBase;
29
71class ConfigWidgetProxy : public TQObject
72{
73TQ_OBJECT
74
75
76public:
79 ConfigWidgetProxy( KDevCore * core );
80 virtual ~ConfigWidgetProxy();
81
88 void createGlobalConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "tdevelop" );
89
96 void createProjectConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "tdevelop" );
97
102 void removeConfigPage( int pagenumber );
103
104signals:
111 void insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber );
112
113private slots:
114 void slotConfigWidget( KDialogBase * );
115 void slotProjectConfigWidget( KDialogBase * );
116 void slotConfigWidgetDestroyed();
117 void slotAboutToShowPage( TQWidget * page );
118
119private:
120 typedef TQMap<unsigned int, TQPair<TQString,TQString> > TitleMap;
121 typedef TQMap<TQWidget*, int> PageMap;
122
123 TitleMap _globalTitleMap;
124 TitleMap _projectTitleMap;
125 PageMap _pageMap;
126};
127
128#endif
ConfigWidgetProxy
This class can be used to implement demand-loading of config pages.
Definition configwidgetproxy.h:72
ConfigWidgetProxy::createGlobalConfigPage
void createGlobalConfigPage(TQString const &title, unsigned int pagenumber, TQString const &icon="tdevelop")
Tells the proxy you want a page in the Global Settings.
Definition configwidgetproxy.cpp:44
ConfigWidgetProxy::removeConfigPage
void removeConfigPage(int pagenumber)
Removes a config page from the proxy.
Definition configwidgetproxy.cpp:54
ConfigWidgetProxy::createProjectConfigPage
void createProjectConfigPage(TQString const &title, unsigned int pagenumber, TQString const &icon="tdevelop")
Tells the proxy you want a page in the Project Settings.
Definition configwidgetproxy.cpp:49
ConfigWidgetProxy::insertConfigWidget
void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pagenumber)
The proxy emits this signal to notify the client that a specific config page has been requested.

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.