Last change
on this file since 168 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
1.4 KB
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: mainwindow.h 160 2006-12-11 20:15:57Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | #ifndef MAINWIN_H
|
---|
12 | #define MAINWIN_H
|
---|
13 |
|
---|
14 | #include <qmainwindow.h>
|
---|
15 |
|
---|
16 | class QtFileIconView;
|
---|
17 | class DirectoryView;
|
---|
18 | class QProgressBar;
|
---|
19 | class QLabel;
|
---|
20 | class QComboBox;
|
---|
21 | class QToolButton;
|
---|
22 |
|
---|
23 | class FileMainWindow : public QMainWindow
|
---|
24 | {
|
---|
25 | Q_OBJECT
|
---|
26 |
|
---|
27 | public:
|
---|
28 | FileMainWindow();
|
---|
29 |
|
---|
30 | QtFileIconView *fileView() { return fileview; }
|
---|
31 | DirectoryView *dirList() { return dirlist; }
|
---|
32 |
|
---|
33 | void show();
|
---|
34 |
|
---|
35 | protected:
|
---|
36 | void setup();
|
---|
37 | void setPathCombo();
|
---|
38 |
|
---|
39 | QtFileIconView *fileview;
|
---|
40 | DirectoryView *dirlist;
|
---|
41 | QProgressBar *progress;
|
---|
42 | QLabel *label;
|
---|
43 | QComboBox *pathCombo;
|
---|
44 | QToolButton *upButton, *mkdirButton;
|
---|
45 |
|
---|
46 | protected slots:
|
---|
47 | void directoryChanged( const QString & );
|
---|
48 | void slotStartReadDir( int dirs );
|
---|
49 | void slotReadNextDir();
|
---|
50 | void slotReadDirDone();
|
---|
51 | void cdUp();
|
---|
52 | void newFolder();
|
---|
53 | void changePath( const QString &path );
|
---|
54 | void enableUp();
|
---|
55 | void disableUp();
|
---|
56 | void enableMkdir();
|
---|
57 | void disableMkdir();
|
---|
58 |
|
---|
59 | };
|
---|
60 |
|
---|
61 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.