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

KFile

  • 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
29class QCheckBox;
30class KIconButton;
31class KLineEdit;
32class KUrlRequester;
33
41class KFilePlaceEditDialog : public KDialog
42{
43 Q_OBJECT
44
45public:
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
121public Q_SLOTS:
122 void urlChanged(const QString & );
123
124private:
128 KUrlRequester * m_urlEdit;
132 KLineEdit * m_labelEdit;
136 KIconButton * m_iconButton;
140 QCheckBox * m_appLocal;
141};
142
143
144#endif // KURLBAR_H
KDialog
KFilePlaceEditDialog
A dialog that allows editing entries of a KUrlBar ( KUrlBarItem).
Definition: kfileplaceeditdialog.h:42
KFilePlaceEditDialog::applicationLocal
bool applicationLocal() const
Definition: kfileplaceeditdialog.cpp:205
KFilePlaceEditDialog::urlChanged
void urlChanged(const QString &)
Definition: kfileplaceeditdialog.cpp:173
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
KFilePlaceEditDialog::icon
const QString & icon() const
Definition: kfileplaceeditdialog.cpp:200
KFilePlaceEditDialog::label
QString label() const
Definition: kfileplaceeditdialog.cpp:183
KFilePlaceEditDialog::url
KUrl url() const
Definition: kfileplaceeditdialog.cpp:178
KFilePlaceEditDialog::~KFilePlaceEditDialog
~KFilePlaceEditDialog()
Destroys the dialog.
Definition: kfileplaceeditdialog.cpp:169
KIconButton
KIconLoader::SizeMedium
SizeMedium
KLineEdit
KUrlRequester
KUrl
QWidget
kdialog.h
kurl.h
This file is part of the KDE documentation.
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.

KFile

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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