KFile
#include <kfileplaceeditdialog.h>

Public Slots | |
void | urlChanged (const QString &) |
![]() | |
void | delayedDestruct () |
void | enableButton (ButtonCode id, bool state) |
void | enableButtonApply (bool state) |
void | enableButtonCancel (bool state) |
void | enableButtonOk (bool state) |
void | enableLinkedHelp (bool state) |
bool | isDetailsWidgetVisible () const |
virtual void | setCaption (const QString &caption) |
virtual void | setCaption (const QString &caption, bool modified) |
void | setDetailsWidget (QWidget *detailsWidget) |
void | setDetailsWidgetVisible (bool visible) |
void | setHelp (const QString &anchor, const QString &appname=QString()) |
void | setHelpLinkText (const QString &text) |
virtual void | setPlainCaption (const QString &caption) |
Public Member Functions | |
KFilePlaceEditDialog (bool allowGlobal, const KUrl &url, const QString &label, const QString &icon, bool isAddingNewPlace, bool appLocal=true, int iconSize=KIconLoader::SizeMedium, QWidget *parent=0) | |
~KFilePlaceEditDialog () | |
bool | applicationLocal () const |
const QString & | icon () const |
QString | label () const |
KUrl | url () const |
![]() | |
KDialog (QWidget *parent=0, Qt::WindowFlags flags=0) | |
~KDialog () | |
KPushButton * | button (ButtonCode id) const |
KIcon | buttonIcon (ButtonCode id) const |
QString | buttonText (ButtonCode id) const |
QString | buttonToolTip (ButtonCode id) const |
QString | buttonWhatsThis (ButtonCode id) const |
ButtonCode | defaultButton () const |
QString | helpLinkText () const |
void | incrementInitialSize (const QSize &size) |
bool | isButtonEnabled (ButtonCode id) const |
QWidget * | mainWidget () |
virtual QSize | minimumSizeHint () const |
void | restoreDialogSize (const KConfigGroup &config) |
void | saveDialogSize (KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal) const |
void | setButtonFocus (ButtonCode id) |
void | setButtonGuiItem (ButtonCode id, const KGuiItem &item) |
void | setButtonIcon (ButtonCode id, const KIcon &icon) |
void | setButtonMenu (ButtonCode id, QMenu *menu, ButtonPopupMode popupmode=InstantPopup) |
void | setButtons (ButtonCodes buttonMask) |
void | setButtonsOrientation (Qt::Orientation orientation) |
void | setButtonText (ButtonCode id, const QString &text) |
void | setButtonToolTip (ButtonCode id, const QString &text) |
void | setButtonWhatsThis (ButtonCode id, const QString &text) |
void | setDefaultButton (ButtonCode id) |
void | setEscapeButton (ButtonCode id) |
void | setInitialSize (const QSize &size) |
void | setMainWidget (QWidget *widget) |
void | showButton (ButtonCode id, bool state) |
void | showButtonSeparator (bool state) |
virtual QSize | sizeHint () const |
Static Public Member Functions | |
static bool | getInformation (bool allowGlobal, KUrl &url, QString &label, QString &icon, bool isAddingNewPlace, bool &appLocal, int iconSize, QWidget *parent=0) |
![]() | |
static bool | avoidArea (QWidget *widget, const QRect &area, int screen=-1) |
static void | centerOnScreen (QWidget *widget, int screen=-1) |
static int | groupSpacingHint () |
static QString | makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption) |
static int | marginHint () |
static void | resizeLayout (QLayout *lay, int margin, int spacing) |
static void | resizeLayout (QWidget *widget, int margin, int spacing) |
static void | setAllowEmbeddingInGraphicsView (bool allowEmbedding) |
static int | spacingHint () |
Additional Inherited Members | |
![]() | |
enum | ButtonCode |
enum | ButtonPopupMode |
enum | CaptionFlag |
![]() | |
void | aboutToShowDetails () |
void | applyClicked () |
void | buttonClicked (KDialog::ButtonCode button) |
void | cancelClicked () |
void | closeClicked () |
void | defaultClicked () |
void | finished () |
void | helpClicked () |
void | hidden () |
void | layoutHintChanged () |
void | noClicked () |
void | okClicked () |
void | resetClicked () |
void | tryClicked () |
void | user1Clicked () |
void | user2Clicked () |
void | user3Clicked () |
void | yesClicked () |
![]() | |
Apply | |
AppNameCaption | |
Cancel | |
Close | |
Default | |
DelayedPopup | |
Details | |
Help | |
HIGCompliantCaption | |
InstantPopup | |
ModifiedCaption | |
No | |
NoCaptionFlags | |
NoDefault | |
None | |
Ok | |
Reset | |
Try | |
User1 | |
User2 | |
User3 | |
Yes | |
![]() | |
virtual void | slotButtonClicked (int button) |
void | updateGeometry () |
![]() | |
KDialog (KDialogPrivate &dd, QWidget *parent, Qt::WindowFlags flags=0) | |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | hideEvent (QHideEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
![]() | |
KDialogPrivate *const | d_ptr |
Detailed Description
A dialog that allows editing entries of a KUrlBar ( KUrlBarItem).
The dialog offers to configure a given url, label and icon. See the class-method getInformation() for easy usage.
Definition at line 41 of file kfileplaceeditdialog.h.
Constructor & Destructor Documentation
◆ KFilePlaceEditDialog()
KFilePlaceEditDialog::KFilePlaceEditDialog | ( | bool | allowGlobal, |
const KUrl & | url, | ||
const QString & | label, | ||
const QString & | icon, | ||
bool | isAddingNewPlace, | ||
bool | appLocal = true , |
||
int | iconSize = KIconLoader::SizeMedium , |
||
QWidget * | parent = 0 |
||
) |
Constructs a KFilePlaceEditDialog.
allowGlobal
if you set this to true, the dialog will have a checkbox for the user to decide if he wants the entry to be available globally or just for the current application. url
the url of the item label
a short, translated description of the item icon
an icon for the item appLocal
tells whether the item should be local for this application or be available globally iconSize
determines the size of the icon that is shown/selectable parent
the parent-widget for the dialog
If you leave the icon empty, the default icon for the given url will be used (KMimeType::pixmapForUrl()).
Definition at line 81 of file kfileplaceeditdialog.cpp.
◆ ~KFilePlaceEditDialog()
KFilePlaceEditDialog::~KFilePlaceEditDialog | ( | ) |
Destroys the dialog.
Definition at line 169 of file kfileplaceeditdialog.cpp.
Member Function Documentation
◆ applicationLocal()
bool KFilePlaceEditDialog::applicationLocal | ( | ) | const |
- Returns
- whether the item should be local to the application or global. If allowGlobal was set to false in the constructor, this will always return true.
Definition at line 205 of file kfileplaceeditdialog.cpp.
◆ getInformation()
|
static |
A convenience method to show the dialog and retrieve all the properties via the given parameters.
The parameters are used to initialize the dialog and then return the user-configured values.
allowGlobal
if you set this to true, the dialog will have a checkbox for the user to decide if he wants the entry to be available globally or just for the current application. url
the url of the item label
a short, translated description of the item icon
an icon for the item appLocal
tells whether the item should be local for this application or be available globally iconSize
determines the size of the icon that is shown/selectable parent
the parent-widget for the dialog
If you leave the icon empty, the default icon for the given url will be used (KMimeType::pixmapForUrl()).
Definition at line 54 of file kfileplaceeditdialog.cpp.
◆ icon()
const QString & KFilePlaceEditDialog::icon | ( | ) | const |
- Returns
- the configured icon
Definition at line 200 of file kfileplaceeditdialog.cpp.
◆ label()
QString KFilePlaceEditDialog::label | ( | ) | const |
- Returns
- the configured label
Definition at line 183 of file kfileplaceeditdialog.cpp.
◆ url()
KUrl KFilePlaceEditDialog::url | ( | ) | const |
- Returns
- the configured url
Definition at line 178 of file kfileplaceeditdialog.cpp.
◆ urlChanged
|
slot |
Definition at line 173 of file kfileplaceeditdialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.