KFile
kfileplaceeditdialog.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001,2002,2003 Carsten Pfeiffer <pfeiffer@kde.org> 00003 Copyright (C) 2007 Kevin Ottens <ervin@kde.org> 00004 00005 library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation, version 2. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KFILEPLACEEDITDIALOG_H 00021 #define KFILEPLACEEDITDIALOG_H 00022 00023 // Not exported anymore, only used internally. 00024 //#include <kfile_export.h> 00025 00026 #include <kdialog.h> 00027 #include <kurl.h> 00028 00029 class QCheckBox; 00030 class KIconButton; 00031 class KLineEdit; 00032 class KUrlRequester; 00033 00041 class KFilePlaceEditDialog : public KDialog 00042 { 00043 Q_OBJECT 00044 00045 public: 00065 static bool getInformation( bool allowGlobal, KUrl& url, 00066 QString& label, QString& icon, 00067 bool isAddingNewPlace, 00068 bool& appLocal, int iconSize, 00069 QWidget *parent = 0 ); 00070 00088 KFilePlaceEditDialog(bool allowGlobal, const KUrl& url, 00089 const QString& label, const QString &icon, 00090 bool isAddingNewPlace, 00091 bool appLocal = true, 00092 int iconSize = KIconLoader::SizeMedium, 00093 QWidget *parent = 0); 00097 ~KFilePlaceEditDialog(); 00098 00102 KUrl url() const; 00103 00107 QString label() const; 00108 00112 const QString &icon() const; 00113 00119 bool applicationLocal() const; 00120 00121 public Q_SLOTS: 00122 void urlChanged(const QString & ); 00123 00124 private: 00128 KUrlRequester * m_urlEdit; 00132 KLineEdit * m_labelEdit; 00136 KIconButton * m_iconButton; 00140 QCheckBox * m_appLocal; 00141 }; 00142 00143 00144 #endif // KURLBAR_H
KDE 4.6 API Reference