• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
tdeconfigdialog.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (C) 2003 Benjamin C Meyer (ben+tdelibs at meyerhome dot net)
4 * Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21#ifndef TDECONFIGDIALOG_H
22#define TDECONFIGDIALOG_H
23
24class TDEConfig;
25class TDEConfigSkeleton;
26class TDEConfigDialogManager;
27#include <kdialogbase.h>
28#include <tqasciidict.h>
29
72class TDEUI_EXPORT TDEConfigDialog : public KDialogBase {
73TQ_OBJECT
74
75signals:
79 void widgetModified();
80
85 void settingsChanged();
86
95 void settingsChanged(const char *dialogName);
96
97public:
121 // KDE4: Add the "separator" parameter as in KDialogBase
122 // Make "dialogType" an int
123 TDEConfigDialog( TQWidget *parent, const char *name,
124 TDEConfigSkeleton *config,
125 DialogType dialogType = IconList,
126 int dialogButtons = Default|Ok|Apply|Cancel|Help,
127 ButtonCode defaultButton = Ok,
128 bool modal=false );
129
135 ~TDEConfigDialog();
136
151 // KDE4: Add a default value for itemName & pixmapName
152 void addPage( TQWidget *page, const TQString &itemName,
153 const TQString &pixmapName,
154 const TQString &header=TQString::null,
155 bool manage=true );
156
173 // KDE4: Add a default value for itemName & pixmapName
174 void addPage( TQWidget *page, TDEConfigSkeleton *config,
175 const TQString &itemName,
176 const TQString &pixmapName,
177 const TQString &header=TQString::null );
178
185 static TDEConfigDialog* exists( const char* name );
186
193 static bool showDialog( const char* name );
194
198 virtual void show();
199
200protected slots:
207 virtual void updateSettings();
208
216 virtual void updateWidgets();
217
224 virtual void updateWidgetsDefault();
225
226protected:
227
233 virtual bool hasChanged() { return false; }
234
239 virtual bool isDefault() { return true; }
240
241protected slots:
245 void updateButtons();
246
250 void settingsChangedSlot();
251
252private:
256 void addPageInternal(TQWidget *page, const TQString &itemName,
257 const TQString &pixmapName, const TQString &header);
258
263 void setupManagerConnections(TDEConfigDialogManager *manager);
264
265private:
269 static TQAsciiDict<TDEConfigDialog> openDialogs;
270
271 class TDEConfigDialogPrivate;
275 TDEConfigDialogPrivate *d;
276};
277
278#endif //TDECONFIGDIALOG_H
279
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
KDialogBase::ButtonCode
ButtonCode
Definition: kdialogbase.h:198
KDialogBase::addPage
TQFrame * addPage(const TQString &itemName, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a page to the dialog when the class is used in TreeList , IconList or Tabbed mode.
Definition: kdialogbase.cpp:1296
KDialogBase::DialogType
DialogType
Definition: kdialogbase.h:238
TDEConfigDialogManager
TDEConfigDialog
Standard KDE configuration dialog class.
Definition: tdeconfigdialog.h:72
TDEConfigDialog::hasChanged
virtual bool hasChanged()
Returns whether the current state of the dialog is different from the current configutation.
Definition: tdeconfigdialog.h:233
TDEConfigDialog::isDefault
virtual bool isDefault()
Returns whether the current state of the dialog is the same as the default configuration.
Definition: tdeconfigdialog.h:239
TDEConfigDialog::settingsChanged
void settingsChanged(const char *dialogName)
One or more of the settings have been permanently changed such as if the user clicked on the Apply or...
TDEConfigDialog::settingsChanged
void settingsChanged()
One or more of the settings have been permanently changed such as if the user clicked on the Apply or...
TDEConfigDialog::widgetModified
void widgetModified()
A widget in the dialog was modified.
TDEConfigSkeleton
TDEConfig

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.