• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

  • tdeio
  • tdefile
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 TDEConfig;
29 class KFileTreeBranch;
30 class KFileTreeView;
31 class KFileTreeViewItem;
32 class TDEToggleAction;
33 
39 class TDEIO_EXPORT KDirSelectDialog : public KDialogBase
40 {
41  TQ_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( TDEListView *, TQListViewItem *, const TQPoint & );
110  void slotShowHiddenFoldersToggled();
111  void slotMkdir();
112 
113 private:
114  void readConfig( TDEConfig *config, const TQString& group );
115  void saveConfig( TDEConfig *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  TDEToggleAction *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
KDirSelectDialog
A pretty dialog for a KDirSelect control for selecting directories.
Definition: kdirselectdialog.h:40
KDirSelectDialog::startDir
TQString startDir() const
Definition: kdirselectdialog.h:89
KFileTreeBranch
This is the branch class of the KFileTreeView, which represents one branch in the treeview.
Definition: tdefiletreebranch.h:49
KFileTreeViewItem
An item for a KFileTreeView that knows about its own KFileItem.
Definition: tdefiletreeviewitem.h:41
KFileTreeView
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
Definition: tdefiletreeview.h:67

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.1
This website is maintained by Timothy Pearson.