• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KFile

  • sources
  • kde-4.14
  • kdelibs
  • kfile
kfileplaceeditdialog.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001,2002,2003 Carsten Pfeiffer <pfeiffer@kde.org>
3  Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
4 
5  library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation, version 2.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KFILEPLACEEDITDIALOG_H
21 #define KFILEPLACEEDITDIALOG_H
22 
23 // Not exported anymore, only used internally.
24 //#include <kfile_export.h>
25 
26 #include <kdialog.h>
27 #include <kurl.h>
28 
29 class QCheckBox;
30 class KIconButton;
31 class KLineEdit;
32 class KUrlRequester;
33 
41 class KFilePlaceEditDialog : public KDialog
42 {
43  Q_OBJECT
44 
45 public:
65  static bool getInformation( bool allowGlobal, KUrl& url,
66  QString& label, QString& icon,
67  bool isAddingNewPlace,
68  bool& appLocal, int iconSize,
69  QWidget *parent = 0 );
70 
88  KFilePlaceEditDialog(bool allowGlobal, const KUrl& url,
89  const QString& label, const QString &icon,
90  bool isAddingNewPlace,
91  bool appLocal = true,
92  int iconSize = KIconLoader::SizeMedium,
93  QWidget *parent = 0);
97  ~KFilePlaceEditDialog();
98 
102  KUrl url() const;
103 
107  QString label() const;
108 
112  const QString &icon() const;
113 
119  bool applicationLocal() const;
120 
121 public Q_SLOTS:
122  void urlChanged(const QString & );
123 
124 private:
128  KUrlRequester * m_urlEdit;
132  KLineEdit * m_labelEdit;
136  KIconButton * m_iconButton;
140  QCheckBox * m_appLocal;
141 };
142 
143 
144 #endif // KURLBAR_H
kdialog.h
KIconLoader::SizeMedium
QWidget
KFilePlaceEditDialog::getInformation
static bool getInformation(bool allowGlobal, KUrl &url, QString &label, QString &icon, bool isAddingNewPlace, bool &appLocal, int iconSize, QWidget *parent=0)
A convenience method to show the dialog and retrieve all the properties via the given parameters...
Definition: kfileplaceeditdialog.cpp:54
kurl.h
KUrlRequester
KFilePlaceEditDialog
A dialog that allows editing entries of a KUrlBar ( KUrlBarItem).
Definition: kfileplaceeditdialog.h:41
KDialog
KIconButton
KUrl
KFilePlaceEditDialog::icon
const QString & icon() const
Definition: kfileplaceeditdialog.cpp:200
QCheckBox
QString
KFilePlaceEditDialog::~KFilePlaceEditDialog
~KFilePlaceEditDialog()
Destroys the dialog.
Definition: kfileplaceeditdialog.cpp:169
KFilePlaceEditDialog::url
KUrl url() const
Definition: kfileplaceeditdialog.cpp:178
KFilePlaceEditDialog::applicationLocal
bool applicationLocal() const
Definition: kfileplaceeditdialog.cpp:205
KLineEdit
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.
Definition: kfileplaceeditdialog.cpp:81
QObject::parent
QObject * parent() const
KFilePlaceEditDialog::urlChanged
void urlChanged(const QString &)
Definition: kfileplaceeditdialog.cpp:173
KFilePlaceEditDialog::label
QString label() const
Definition: kfileplaceeditdialog.cpp:183
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal