tdemessagebox.cpp
85 TQPixmap ret = TDEGlobal::iconLoader()->loadIcon(icon_name, TDEIcon::NoGroup, TDEIcon::SizeMedium, TDEIcon::DefaultState, 0, true);
378 config->writeEntry( dontShowAgainName, result==Yes ? "yes" : "no", true, (dontShowAgainName[0] == ':'));
460 return questionYesNoCancelWId( parent ? parent->winId() : 0, text, caption, buttonYes, buttonNo,
802 createKMessageBox(dialog, TQMessageBox::Critical, text, TQStringList(), TQString::null, 0, options, details);
849 createKMessageBox(dialog, TQMessageBox::Warning, text, TQStringList(), TQString::null, 0, options);
879 createKMessageBox(dialog, TQMessageBox::Warning, text, TQStringList(), TQString::null, 0, options, details);
897 KMessageBox::informationList(TQWidget *parent,const TQString &text, const TQStringList & strlist,
905 KMessageBox::informationListWId(WId parent_id,const TQString &text, const TQStringList & strlist,
1048 void KMessageBox::queuedMessageBox( TQWidget *parent, DialogType type, const TQString &text, const TQString &caption, int options )
1053 void KMessageBox::queuedMessageBoxWId( WId parent_id, DialogType type, const TQString &text, const TQString &caption, int options )
1061 void KMessageBox::queuedMessageBox( TQWidget *parent, DialogType type, const TQString &text, const TQString &caption )
1066 void KMessageBox::queuedMessageBoxWId( WId parent_id, DialogType type, const TQString &text, const TQString &caption )
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
void setMainWidget(TQWidget *widget)
Sets the main user definable widget.
Definition: kdialogbase.cpp:1431
void enableButtonSeparator(bool state)
Hide or display the a separator line drawn between the action buttons an the main widget.
Definition: kdialogbase.cpp:389
TQPushButton * actionButton(ButtonCode id)
Returns the action button that corresponds to the id.
Definition: kdialogbase.cpp:832
void setDetailsWidget(TQWidget *detailsWidget)
Sets the widget that gets shown when "Details" is enabled.
Definition: kdialogbase.cpp:1112
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
virtual void setPlainCaption(const TQString &caption)
Make a plain caption without any modifications.
Definition: kdialog.cpp:129
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
static int warningYesNoList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
Display a "warning" dialog with a listbox to show information to the user.
Definition: tdemessagebox.cpp:529
static int warningYesNoWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:517
@ Dangerous
The action to be confirmed by the dialog is a potentially destructive one.
Definition: tdemessagebox.h:76
static int questionYesNoWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:329
static int warningYesNoListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:542
static void information(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
Display an "Information" dialog.
Definition: tdemessagebox.cpp:883
static void queuedDetailedErrorWId(WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:814
static int questionYesNoList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a "question" dialog with a listbox to show information to the user.
Definition: tdemessagebox.cpp:401
static void error(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
Display an "Error" dialog.
Definition: tdemessagebox.cpp:734
static void errorListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:755
static void detailedError(TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
Displays an "Error" dialog with a "Details >>" button.
Definition: tdemessagebox.cpp:776
static bool shouldBeShownYesNo(const TQString &dontShowAgainName, ButtonCode &result)
Definition: tdemessagebox.cpp:341
static int questionYesNo(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a simple "question" dialog.
Definition: tdemessagebox.cpp:317
static int questionYesNoCancelWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:465
static int questionYesNoListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:414
static void enableAllMessages()
Enable all messages which have been turned off with the dontShowAgainName feature.
Definition: tdemessagebox.cpp:936
static int warningYesNoCancelWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:670
static void saveDontShowAgainContinue(const TQString &dontShowAgainName)
Save the fact that the continue/cancel message box should not be shown again.
Definition: tdemessagebox.cpp:383
static void sorry(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
Display an "Sorry" dialog.
Definition: tdemessagebox.cpp:825
static int warningYesNo(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
Display a "warning" dialog.
Definition: tdemessagebox.cpp:505
static void detailedSorryWId(WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:861
static void sorryWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:832
static void queuedMessageBox(TQWidget *parent, DialogType type, const TQString &text, const TQString &caption, int options)
Like messageBox.
Definition: tdemessagebox.cpp:1048
static void informationList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
Display an "Information" dialog with a listbox.
Definition: tdemessagebox.cpp:897
static void setDontShowAskAgainConfig(TDEConfig *cfg)
Use cfg for all settings related to the dontShowAgainName feature.
Definition: tdemessagebox.cpp:395
static bool shouldBeShownContinue(const TQString &dontShowAgainName)
Definition: tdemessagebox.cpp:361
static void saveDontShowAgainYesNo(const TQString &dontShowAgainName, ButtonCode result)
Save the fact that the yes/no message box should not be shown again.
Definition: tdemessagebox.cpp:371
static void errorList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, int options=Notify)
Display an "Error" dialog with a listbox.
Definition: tdemessagebox.cpp:748
static int warningContinueCancelWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:597
static void informationListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:905
static int createKMessageBox(KDialogBase *dialog, TQMessageBox::Icon icon, const TQString &text, const TQStringList &strlist, const TQString &ask, bool *checkboxReturn, int options, const TQString &details=TQString::null)
Create content and layout of a standard dialog.
Definition: tdemessagebox.cpp:140
static int warningContinueCancelListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:621
static int warningYesNoCancelList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a Yes/No/Cancel "warning" dialog with a listbox to show information to the user.
Definition: tdemessagebox.cpp:682
static void detailedErrorWId(WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:784
static void detailedSorry(TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
Displays a "Sorry" dialog with a "Details >>" button.
Definition: tdemessagebox.cpp:853
static void queuedMessageBoxWId(WId parent_id, DialogType type, const TQString &text, const TQString &caption, int options)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:1053
static int warningContinueCancelList(TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a "warning" dialog with a listbox to show information to the user.
Definition: tdemessagebox.cpp:609
static int messageBox(TQWidget *parent, DialogType type, const TQString &text, const TQString &caption, const KGuiItem &buttonYes, const KGuiItem &buttonNo, const TQString &dontShowAskAgainName, int options=Notify)
Alternate method to show a messagebox:
Definition: tdemessagebox.cpp:994
static void about(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
Display an "About" dialog.
Definition: tdemessagebox.cpp:970
static void informationWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:890
static int warningYesNoCancel(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a Yes/No/Cancel "warning" dialog.
Definition: tdemessagebox.cpp:658
static int warningYesNoCancelListWId(WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:695
static int warningContinueCancel(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a "warning" dialog.
Definition: tdemessagebox.cpp:585
static void enableMessage(const TQString &dontShowAgainName)
Re-enable a specific dontShowAgainName messages that had previously been turned off.
Definition: tdemessagebox.cpp:956
static int questionYesNoCancel(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a simple "question" dialog.
Definition: tdemessagebox.cpp:452
static int messageBoxWId(WId parent_id, DialogType type, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontShowAskAgainName=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:1011
static void queuedDetailedError(TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null)
Like detailedError.
Definition: tdemessagebox.cpp:806
static void errorWId(WId parent_id, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
This function accepts the window id of the parent window, instead of TQWidget*.
Definition: tdemessagebox.cpp:741
TQPixmap icon() const
static TDEApplication * kApplication()
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
void deleteEntry(const TQString &pKey, bool bNLS=false, bool bGlobal=false)
bool hasGroup(const TQString &group) const
virtual void sync()
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
virtual TQMap< TQString, TQString > entryMap(const TQString &pGroup) const
static TQRect desktopGeometry(const TQPoint &point)
static TDEIconLoader * iconLoader()
static TDEConfig * config()
TQPixmap loadIcon(const TQString &name, TDEIcon::Group group, int size=0, int state=TDEIcon::DefaultState, TQString *path_store=0L, bool canReturnNull=false) const
DefaultState
NoGroup
SizeMedium
int event(const TQString &message, const TQString &text=TQString::null) TDE_DEPRECATED