• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kfile
 

kio/kfile

  • kio
  • kfile
kdirselectdialog.h
1 /*
2  Copyright (C) 2001 Michael Jarrett <michaelj@corel.com>
3  Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
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 KDIRSELECTDIALOG_H
21 #define KDIRSELECTDIALOG_H
22 
23 #include <kdialogbase.h>
24 #include <kurl.h>
25 
26 class TQPopupMenu;
27 class TQVBoxLayout;
28 class KConfig;
29 class KFileTreeBranch;
30 class KFileTreeView;
31 class KFileTreeViewItem;
32 class KToggleAction;
33 
39 class KIO_EXPORT KDirSelectDialog : public KDialogBase
40 {
41  Q_OBJECT
42 
43 public:
53  KDirSelectDialog(const TQString& startDir = TQString::null,
54  bool localOnly = false,
55  TQWidget *parent = 0L,
56  const char *name = 0, bool modal = false);
57 
60  ~KDirSelectDialog();
61 
66  KURL url() const;
67 
68  KFileTreeView * view() const { return m_treeView; }
69 
70  bool localOnly() const { return m_localOnly; }
71 
82  static KURL selectDirectory( const TQString& startDir = TQString::null,
83  bool localOnly = false, TQWidget *parent = 0L,
84  const TQString& caption = TQString::null);
85 
89  TQString startDir() const { return m_startDir; }
90 
91 public slots:
92  void setCurrentURL( const KURL& url );
93 
94 protected slots:
95  virtual void slotUser1();
96 
97 protected:
98  virtual void accept();
99 
100  // Layouts protected so that subclassing is easy
101  TQVBoxLayout *m_mainLayout;
102  TQString m_startDir;
103 
104 private slots:
105  void slotCurrentChanged();
106  void slotURLActivated( const TQString& );
107  void slotNextDirToList( KFileTreeViewItem *dirItem );
108  void slotComboTextChanged( const TQString& text );
109  void slotContextMenu( KListView *, TQListViewItem *, const TQPoint & );
110  void slotShowHiddenFoldersToggled();
111  void slotMkdir();
112 
113 private:
114  void readConfig( KConfig *config, const TQString& group );
115  void saveConfig( KConfig *config, const TQString& group );
116  void openNextDir( KFileTreeViewItem *parent );
117  KFileTreeBranch * createBranch( const KURL& url );
118 
119  KFileTreeView *m_treeView;
120  TQPopupMenu *m_contextMenu;
121  KToggleAction *m_showHiddenFolders;
122  bool m_localOnly;
123 
124 protected:
125  virtual void virtual_hook( int id, void* data );
126 private:
127  class KDirSelectDialogPrivate;
128  KDirSelectDialogPrivate *d;
129 };
130 
131 #endif
KFileTreeBranch
This is the branch class of the KFileTreeView, which represents one branch in the treeview...
Definition: kfiletreebranch.h:48
KFileTreeView
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
Definition: kfiletreeview.h:66
KFileTreeViewItem
An item for a KFileTreeView that knows about its own KFileItem.
Definition: kfiletreeviewitem.h:40
KDirSelectDialog::startDir
TQString startDir() const
Definition: kdirselectdialog.h:89
KDirSelectDialog
A pretty dialog for a KDirSelect control for selecting directories.
Definition: kdirselectdialog.h:39

kio/kfile

Skip menu "kio/kfile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/kfile

Skip menu "kio/kfile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kfile by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |