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

KIO

kurlrequester.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1999,2000,2001 Carsten Pfeiffer <pfeiffer@kde.org>
00003 
00004     library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2, as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KURLREQUESTER_H
00020 #define KURLREQUESTER_H
00021 
00022 #include <keditlistbox.h>
00023 #include <kfile.h>
00024 #include <kpushbutton.h>
00025 #include <kurl.h>
00026 #include <khbox.h>
00027 
00028 class KComboBox;
00029 class KFileDialog;
00030 class KLineEdit;
00031 class KUrlCompletion;
00032 
00033 class QString;
00034 class QEvent;
00035 
00053 class KIO_EXPORT KUrlRequester : public KHBox
00054 {
00055     Q_OBJECT
00056     Q_PROPERTY( KUrl url READ url WRITE setUrl USER true )
00057     Q_PROPERTY( QString filter READ filter WRITE setFilter )
00058     Q_FLAGS( KFile::Modes )
00059     Q_PROPERTY( KFile::Modes mode READ mode WRITE setMode )
00060     Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage )
00061 
00062 public:
00066     explicit KUrlRequester( QWidget *parent=0);
00067 
00071     explicit KUrlRequester( const KUrl& url, QWidget *parent=0);
00072 
00079     KUrlRequester( QWidget *editWidget, QWidget *parent);
00083     ~KUrlRequester();
00084 
00090     KUrl url() const;
00091 
00100     QString text() const;
00101 
00108     void setMode( KFile::Modes m );
00109 
00114     KFile::Modes mode() const;
00115 
00120     void setFilter( const QString& filter );
00121 
00126     QString filter() const;
00127 
00136     virtual KFileDialog * fileDialog() const;
00137 
00145     KLineEdit * lineEdit() const;
00146 
00151     KComboBox * comboBox() const;
00152 
00157     KPushButton * button() const;
00158 
00162     KUrlCompletion *completionObject() const;
00163 
00174     const KEditListBox::CustomEditor &customEditor();
00175 
00180     QString clickMessage() const;
00181 
00186     void setClickMessage(const QString& msg);
00187 
00188 
00189 public Q_SLOTS:
00193     void setUrl( const KUrl& url );
00194 
00201     void setPath( const QString& path );
00202 
00206     void clear();
00207 
00208 Q_SIGNALS:
00209     // forwards from LineEdit
00214     void textChanged( const QString& );
00215 
00219     void returnPressed();
00220 
00225     void returnPressed( const QString& );
00226 
00238     void openFileDialog( KUrlRequester * );
00239 
00244     void urlSelected( const KUrl& );
00245 
00246 protected:
00247     virtual void changeEvent (QEvent *e);
00248     bool eventFilter( QObject *obj, QEvent *ev );
00249 
00250 private:
00251     class KUrlRequesterPrivate;
00252     KUrlRequesterPrivate* const d;
00253 
00254     Q_DISABLE_COPY(KUrlRequester)
00255 
00256     Q_PRIVATE_SLOT(d, void _k_slotUpdateUrl())
00257     Q_PRIVATE_SLOT(d, void _k_slotOpenDialog())
00258 
00259 };
00260 
00261 class KIO_EXPORT KUrlComboRequester : public KUrlRequester // krazy:exclude=dpointer (For use in Qt Designer)
00262 {
00263     Q_OBJECT
00264 public:
00268     explicit KUrlComboRequester(QWidget *parent = 0);
00269 
00270 private:
00271     class Private;
00272     Private* const d;
00273 };
00274 
00275 #endif // KURLREQUESTER_H

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal