KritaWidgets
KoDialog.cpp
Go to the documentation of this file.
59 qWarning() << q->metaObject()->className() << "created with a layout; don't do that, KoDialog takes care of it, use mainWidget or setMainWidget instead";
165 q->setPlainCaption(qApp->applicationDisplayName()); // set appropriate initial window title for case it gets not set later
void showButtonSeparator(bool state)
Hide or display the a separator line drawn between the action buttons an the main widget.
Definition: KoDialog.cpp:538
void adjustSize()
Qt::Orientation orientation() const
virtual QLayoutItem * itemAt(int index) const=0
void setDetailsWidgetVisible(bool visible)
Sets the status of the Details button.
Definition: KoDialog.cpp:749
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void setWhatsThis(const QString &)
void setParent(QWidget *parent)
QWidget * window() const
void enableButtonApply(bool state)
Enable or disable (gray out) the Apply button.
Definition: KoDialog.cpp:600
QFontMetrics fontMetrics() const
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
virtual void setCaption(const QString &caption)
Make a KDE compliant caption.
Definition: KoDialog.cpp:478
Used when specifying a default button; indicates that no button should be marked by default.
Definition: KoDialog.h:139
Definition: KoDialog.h:401
QString fromUtf8(const char *str, int size)
QPoint pos() const
virtual void reject()
virtual QLayout * layout()
void setDetailsWidget(QWidget *detailsWidget)
Sets the widget that gets shown when "Details" is enabled.
Definition: KoDialog.cpp:723
QLayout * layout() const
void enableLinkedHelp(bool state)
Display or hide the help link area on the top of the dialog.
Definition: KoDialog.cpp:865
bool isDetailsWidgetVisible() const
Returns the status of the Details button.
Definition: KoDialog.cpp:744
void clicked(bool checked)
void setMargin(int margin)
QFontMetrics fontMetrics()
static int marginHint()
Returns the number of pixels that should be used between a dialog edge and the outermost widget(s) ac...
Definition: KoDialog.cpp:435
void setButtonToolTip(ButtonCode id, const QString &text)
Sets the tooltip text of any button.
Definition: KoDialog.cpp:671
void appendButton(KoDialog::ButtonCode code, const KGuiItem &item)
Definition: KoDialog.cpp:97
void setHelpLinkText(const QString &text)
Sets the text that is shown as the linked text.
Definition: KoDialog.cpp:899
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text,...
Definition: KoDialog.cpp:618
Show Yes button. (this button closes the dialog and sets the result to KoDialog::Yes)
Definition: KoDialog.h:133
void setAttribute(Qt::WidgetAttribute attribute, bool on)
virtual void closeEvent(QCloseEvent *e)
const T & value() const
void setHelp(const QString &anchor, const QString &appname=QString())
Sets the help path and topic.
Definition: KoDialog.cpp:892
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setEnabled(bool enable)
QWidget * focusWidget() const
void setButtonIcon(ButtonCode id, const QIcon &icon)
Sets the icon of any button.
Definition: KoDialog.cpp:653
iterator insert(const Key &key, const T &value)
void hide()
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const=0
virtual void slotButtonClicked(int button)
Activated when the button button is clicked.
Definition: KoDialog.cpp:800
void setButtonText(ButtonCode id, const QString &text)
Sets the text of any button.
Definition: KoDialog.cpp:628
Definition: KoDialog.h:400
visible
void setEscapeButton(ButtonCode id)
Sets the button that will be activated when the Escape key is pressed.
Definition: KoDialog.cpp:285
void deleteLater()
Show Details button. (this button will show the detail widget set with setDetailsWidget)
Definition: KoDialog.h:135
virtual QSize minimumSizeHint() const
int lineSpacing() const
Definition: KoDialog.h:402
const QPixmap * icon() const
Item next()
void enableButton(ButtonCode id, bool state)
Enable or disable (gray out) a general action button.
Definition: KoDialog.cpp:577
bool isEmpty() const
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition: KoDialog.cpp:192
void enableButtonOk(bool state)
Enable or disable (gray out) the OK button.
Definition: KoDialog.cpp:595
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
Definition: KoDialog.h:130
void setDefaultButton(ButtonCode id)
Sets the button that will be activated when the Enter key is pressed.
Definition: KoDialog.cpp:290
KoDialog(QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags())
Creates a dialog.
Definition: KoDialog.cpp:173
QString caption() const
virtual void accept()
void animateClick(int msec)
void setOrientation(Qt::Orientation orientation)
void addButton(QAbstractButton *button, ButtonRole role)
Definition: KoDialog_p.h:23
Show Help button. (this button will run the help set with setHelp)
Definition: KoDialog.h:125
virtual void done(int r)
bool isButtonEnabled(ButtonCode id) const
Returns whether any button is enabled.
Definition: KoDialog.cpp:585
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
Definition: KoDialog.h:127
bool testAttribute(Qt::WidgetAttribute attribute) const
Show No button. (this button closes the dialog and sets the result to KoDialog::No)
Definition: KoDialog.h:132
void setEnabled(bool)
static QString makeStandardCaption(const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption)
Builds a caption that contains the application name along with the userCaption using a standard layou...
Definition: KoDialog.cpp:450
void show()
bool hasNext() const
void setIcon(const QIcon &icon)
virtual void keyPressEvent(QKeyEvent *e)
static int spacingHint()
Returns the number of pixels that should be used between widgets inside a dialog according to the KDE...
Definition: KoDialog.cpp:440
int height() const
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
void setToolTip(const QString &)
bool isWidgetType() const
void enterWhatsThisMode()
void showButton(ButtonCode id, bool state)
Hide or display a general action button.
Definition: KoDialog.cpp:610
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Definition: KoDialog.h:124
void closeEvent(QCloseEvent *e) override
Detects when a dialog is being closed from the window manager controls.
Definition: KoDialog.cpp:927
QPushButton * button(ButtonCode id) const
Returns the button that corresponds to the id.
Definition: KoDialog.cpp:571
void setSpacing(int)
typedef WindowFlags
void setDefault(bool)
static int groupSpacingHint()
Returns the number of pixels that should be used to visually separate groups of related options in a ...
Definition: KoDialog.cpp:445
static void resizeLayout(QWidget *widget, int margin, int spacing)
Resize every layout manager used in widget and its nested children.
Definition: KoDialog.cpp:503
virtual void setPlainCaption(const QString &caption)
Make a plain caption without any modifications.
Definition: KoDialog.cpp:496
void setButtonFocus(ButtonCode id)
Sets the focus to the button of the passed id.
Definition: KoDialog.cpp:715
void setButtonsOrientation(Qt::Orientation orientation)
Sets the orientation of the button box.
Definition: KoDialog.cpp:269
bool activate()
bool isHidden() const
QString buttonToolTip(ButtonCode id) const
Returns the tooltip of any button.
Definition: KoDialog.cpp:683
void setFocus()
QSize size() const
const Key & key() const
void enableButtonCancel(bool state)
Enable or disable (gray out) the Cancel button.
Definition: KoDialog.cpp:605
void setText(const QString &text)
QStyle * style()
void setButtonWhatsThis(ButtonCode id, const QString &text)
Sets the "What's this?" text of any button.
Definition: KoDialog.cpp:693
ButtonCode defaultButton() const
Returns the button code of the default button, or NoDefault if there is no default button.
Definition: KoDialog.cpp:328
const QObjectList & children() const
virtual QSize sizeHint() const
virtual bool event(QEvent *e)
QString buttonWhatsThis(ButtonCode id) const
Returns the "What's this?" text of any button.
Definition: KoDialog.cpp:705
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.