kdialogbase.cpp
87 KDialogBasePrivate() : bDetails(false), bFixed(false), bSettingDetails(false), detailsWidget(0) { }
149 KDialogBase::KDialogBase( KDialogBase::DialogType dialogFace, WFlags f, TQWidget *parent, const char *name,
1073 void KDialogBase::addButtonBelowList( const TQString & text, TQObject * recv, const char * slot )
1079 void KDialogBase::addButtonBelowList( const KGuiItem & item, TQObject * recv, const char * slot )
void enableButtonCancel(bool state)
Enable or disable (gray out) the Cancel button.
Definition: kdialogbase.cpp:860
virtual void slotCancel()
Activated when the Cancel button has been clicked.
Definition: kdialogbase.cpp:1215
void setButtonOK(const KGuiItem &item=KStdGuiItem::ok())
Sets the appearance of the OK button.
Definition: kdialogbase.cpp:916
void enableButton(ButtonCode id, bool state)
Enable or disable (gray out) a general action button.
Definition: kdialogbase.cpp:838
void setButtonCancel(const KGuiItem &item=KStdGuiItem::cancel())
Sets the appearance of the Cancel button.
Definition: kdialogbase.cpp:970
virtual void slotApply()
Activated when the Apply button has been clicked.
Definition: kdialogbase.cpp:1171
virtual void closeEvent(TQCloseEvent *e)
Detects when a dialog is being closed from the window manager controls.
Definition: kdialogbase.cpp:1622
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text,...
Definition: kdialogbase.cpp:975
virtual void slotYes()
Activated when the Yes button has been clicked.
Definition: kdialogbase.cpp:1201
TQVBox * addVBoxPage(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:1309
void showButton(ButtonCode id, bool state)
Hide or display a general action button.
Definition: kdialogbase.cpp:866
void setButtonTip(ButtonCode id, const TQString &text)
Sets the tooltip text of any button.
Definition: kdialogbase.cpp:1003
void unfoldTreeList(bool persist=false)
This function has only effect in TreeList mode.
Definition: kdialogbase.cpp:1061
void setMainWidget(TQWidget *widget)
Sets the main user definable widget.
Definition: kdialogbase.cpp:1431
TQSize configDialogSize(const TQString &groupName) const
read the dialogs size from the configuration according to the screen size.
Definition: kdialogbase.cpp:1741
void enableButtonSeparator(bool state)
Hide or display the a separator line drawn between the action buttons an the main widget.
Definition: kdialogbase.cpp:389
void addWidgetBelowList(TQWidget *widget)
Add a widget at the bottom of the TreeList/IconList.
Definition: kdialogbase.cpp:1067
void setButtonApplyText(const TQString &text=TQString::null, const TQString &tooltip=TQString::null, const TQString &quickhelp=TQString::null) TDE_DEPRECATED
Definition: kdialogbase.cpp:922
void setButtonApply(const KGuiItem &item=KStdGuiItem::apply())
Sets the appearance of the Apply button.
Definition: kdialogbase.cpp:946
virtual void slotTry()
Activated when the Try button has been clicked.
Definition: kdialogbase.cpp:1177
TQFrame * plainPage()
Retrieve the empty page when the predefined layout is used in Plain mode.
Definition: kdialogbase.cpp:420
void setHelp(const TQString &anchor, const TQString &appname=TQString::null)
Sets the help path and topic.
Definition: kdialogbase.cpp:1279
TQHBox * addHBoxPage(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:1322
void enableButtonApply(bool state)
Enable or disable (gray out) the Apply button.
Definition: kdialogbase.cpp:854
void setShowIconsInTreeList(bool state)
This function has only effect in TreeList mode.
Definition: kdialogbase.cpp:1045
void enableButtonOK(bool state)
Enable or disable (gray out) the OK button.
Definition: kdialogbase.cpp:848
virtual void slotUser3()
Activated when the User3 button has been clicked.
Definition: kdialogbase.cpp:1183
virtual void slotNo()
Activated when the Yes button has been clicked.
Definition: kdialogbase.cpp:1208
void setButtonWhatsThis(ButtonCode id, const TQString &text)
Sets the "What's this?" text of any button.
Definition: kdialogbase.cpp:1016
void setTreeListAutoResize(bool state)
This function has only effect in TreeList mode.
Definition: kdialogbase.cpp:1037
void setEscapeButton(ButtonCode id)
Sets the button that will be activated when the Escape key is pressed.
Definition: kdialogbase.cpp:365
void setButtonOKText(const TQString &text=TQString::null, const TQString &tooltip=TQString::null, const TQString &quickhelp=TQString::null) TDE_DEPRECATED
Definition: kdialogbase.cpp:894
void setFolderIcon(const TQStringList &path, const TQPixmap &pixmap)
Sets the icon used in TreeList Mode for the given path.
Definition: kdialogbase.cpp:1351
virtual void slotClose()
Activated when the Close button has been clicked.
Definition: kdialogbase.cpp:1222
static bool haveBackgroundTile()
Check whether the background tile is set or not.
Definition: kdialogbase.cpp:1662
static const TQPixmap * getBackgroundTile() TDE_DEPRECATED
Definition: kdialogbase.cpp:1668
TQGrid * addGridPage(int n, Orientation dir, 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:1337
void enableLinkedHelp(bool state)
Display or hide the help link area on the top of the dialog.
Definition: kdialogbase.cpp:1241
TQPushButton * actionButton(ButtonCode id)
Returns the action button that corresponds to the id.
Definition: kdialogbase.cpp:832
KDialogBase(TQWidget *parent=0, const char *name=0, bool modal=true, const TQString &caption=TQString::null, int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok, bool separator=false, const KGuiItem &user1=KGuiItem(), const KGuiItem &user2=KGuiItem(), const KGuiItem &user3=KGuiItem())
Constructor for the standard mode where you must specify the main widget with setMainWidget() .
Definition: kdialogbase.cpp:99
TQSize calculateSize(int w, int h) const
Calculate the size hint for the dialog.
Definition: kdialogbase.cpp:1528
void setButtonBoxOrientation(int orientation)
Sets the orientation of the button box.
Definition: kdialogbase.cpp:345
void showTile(bool state)
Enable hiding of the background tile (if any).
Definition: kdialogbase.cpp:1711
void saveDialogSize(const TQString &groupName, bool global=false)
save the dialogs size dependant on the screen dimension either to the global or application config fi...
Definition: kdialogbase.cpp:1765
virtual void slotUser1()
Activated when the User1 button has been clicked.
Definition: kdialogbase.cpp:1195
void setInitialSize(const TQSize &s, bool noResize=false)
Convenience method.
Definition: kdialogbase.cpp:537
@ NoDefault
Used when specifying a default button; indicates that no button should be marked by default.
Definition: kdialogbase.h:214
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
void addButtonBelowList(const TQString &text, TQObject *recv, const char *slot)
Add a button at the bottom of the TreeList/IconList.
Definition: kdialogbase.cpp:1073
void setHelpLinkText(const TQString &text)
Sets the text that is shown as the linked text.
Definition: kdialogbase.cpp:1286
void setRootIsDecorated(bool state)
This function has only effect in TreeList mode.
Definition: kdialogbase.cpp:1053
static const TQPixmap * backgroundTile()
Returns a pointer to the background tile if there is one.
Definition: kdialogbase.cpp:1670
void incInitialSize(const TQSize &s, bool noResize=false)
Convenience method.
Definition: kdialogbase.cpp:545
TQRect getContentsRect() const TDE_DEPRECATED
Definition: kdialogbase.cpp:1489
void setButtonCancelText(const TQString &text=TQString::null, const TQString &tooltip=TQString::null, const TQString &quickhelp=TQString::null) TDE_DEPRECATED
Definition: kdialogbase.cpp:952
void setIconListAllVisible(bool state)
This function has only effect in IconList mode.
Definition: kdialogbase.cpp:1085
TQGrid * makeGridMainWidget(int n, Orientation dir)
Make a main widget.
Definition: kdialogbase.cpp:1403
void getBorderWidths(int &ulx, int &uly, int &lrx, int &lry) const TDE_DEPRECATED
Definition: kdialogbase.cpp:1510
virtual void slotHelp()
Activated when the Help button has been clicked.
Definition: kdialogbase.cpp:1094
virtual void slotDefault()
Activated when the Default button has been clicked.
Definition: kdialogbase.cpp:1102
int pageIndex(TQWidget *widget) const
Returns the index of a page created with addPage(), addVBoxPage(), addHBoxPage() or addGridPage().
Definition: kdialogbase.cpp:1482
void updateBackground()
This method is called automatically whenever the background has changed.
Definition: kdialogbase.cpp:1685
void setDetails(bool showDetails)
Sets the status of the Details button.
Definition: kdialogbase.cpp:1127
void setDetailsWidget(TQWidget *detailsWidget)
Sets the widget that gets shown when "Details" is enabled.
Definition: kdialogbase.cpp:1112
virtual void slotDetails()
Activated when the Details button has been clicked.
Definition: kdialogbase.cpp:1107
static void setBackgroundTile(const TQPixmap *pix)
Sets the background tile.
Definition: kdialogbase.cpp:1676
virtual void slotUser2()
Activated when the User2 button has been clicked.
Definition: kdialogbase.cpp:1189
virtual void adjustSize()
Adjust the size of the dialog to fit the contents just before TQDialog::exec() or TQDialog::show() is...
Definition: kdialogbase.cpp:427
virtual void keyPressEvent(TQKeyEvent *e)
Maps some keys to the actions buttons.
Definition: kdialogbase.cpp:1553
void cancel()
Force closing the dialog, setting its result code to the one Esc would set.
Definition: kdialogbase.cpp:1632
void setButtonText(ButtonCode id, const TQString &text)
Sets the text of any button.
Definition: kdialogbase.cpp:986
Dialog with extended non-modal support and methods for KDE standard compliance.
Definition: kdialog.h:53
static int marginHint()
Return the number of pixels you shall use between a dialog edge and the outermost widget(s) according...
Definition: kdialog.cpp:104
static int spacingHint()
Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...
Definition: kdialog.cpp:110
virtual void setCaption(const TQString &caption)
Make a KDE compliant caption.
Definition: kdialog.cpp:122
void layoutHintChanged()
Emitted when the margin size and/or spacing size have changed.
virtual void setShowIconsInTreeList(bool state)
This function has only effect in TreeList mode.
Definition: kjanuswidget.cpp:842
virtual int pageIndex(TQWidget *widget) const
Returns the index of a page created with addPage , addVBoxPage , addHBoxPage or addGridPage .
Definition: kjanuswidget.cpp:670
virtual bool isValid() const
Use this to verify that no memory allocation failed.
Definition: kjanuswidget.cpp:213
void unfoldTreeList(bool persist=false)
This function has only effect in TreeList mode.
Definition: kjanuswidget.cpp:854
virtual TQSize minimumSizeHint() const
Returns the minimum size that must be made available for the widget so that UIs can be displayed prop...
Definition: kjanuswidget.cpp:761
virtual void setIconListAllVisible(bool state)
This function has only effect in IconList mode.
Definition: kjanuswidget.cpp:834
virtual TQHBox * addHBoxPage(const TQString &itemName, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a new page when the class is used in TreeList, IconList or Tabbed mode.
Definition: kjanuswidget.cpp:318
virtual bool setSwallowedWidget(TQWidget *widget)
Defines the widget to be swallowed.
Definition: kjanuswidget.cpp:501
virtual void setRootIsDecorated(bool state)
This function has only effect in TreeList mode.
Definition: kjanuswidget.cpp:847
virtual int activePageIndex() const
Returns the index of the page that are currently displayed.
Definition: kjanuswidget.cpp:646
virtual void setFolderIcon(const TQStringList &path, const TQPixmap &pixmap)
Sets the icon used in TreeList Mode for the given path.
Definition: kjanuswidget.cpp:493
virtual TQGrid * addGridPage(int n, Orientation dir, const TQString &itemName, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a new page when the class is used in either TreeList or Tabbed mode.
Definition: kjanuswidget.cpp:346
virtual TQFrame * plainPage()
Returns the empty widget that is available in Plain mode.
Definition: kjanuswidget.cpp:219
virtual void setTreeListAutoResize(bool state)
This function has only effect in TreeList mode.
Definition: kjanuswidget.cpp:822
virtual TQVBox * addVBoxPage(const TQString &item, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a new page when the class is used in TreeList, IconList or Tabbed mode.
Definition: kjanuswidget.cpp:293
void addButtonBelowList(const TQString &text, TQObject *recv, const char *slot)
Add a button at the bottom of the TreeList/IconList.
Definition: kjanuswidget.cpp:876
virtual bool showPage(int index)
Raises the page which was added by addPage().
Definition: kjanuswidget.cpp:580
void addWidgetBelowList(TQWidget *widget)
Add a widget at the bottom of the TreeList/IconList.
Definition: kjanuswidget.cpp:868
virtual TQFrame * addPage(const TQString &item, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a new page when the class is used in TreeList, IconList or Tabbed mode.
Definition: kjanuswidget.cpp:266
This is nothing but a TQPushButton with drag-support and KGuiItem support.
Definition: kpushbutton.h:38
void setGuiItem(const KGuiItem &item)
Sets the KGuiItem for this button.
Definition: kpushbutton.cpp:120
void setOrientation(int orient)
Set the orientation of the separator to orient.
Definition: kseparator.cpp:48
int readNumEntry(const TQString &pKey, int nDefault=0) const
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
static int buttonLayout()
static TDEConfig * config()
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
TQString name(StdAccel id)