-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 3 | ||||
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 23 |
2 files changed, 13 insertions, 13 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index f3e4e1e..e103bcb 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -46,14 +46,13 @@ static int get_unique_id() | |||
46 | fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags fl , const QString filter ) | 46 | fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags fl , const QString filter ) |
47 | : QDialog( parent, name, modal, fl ) | 47 | : QDialog( parent, name, modal, fl ) |
48 | { | 48 | { |
49 | if ( !name ) | 49 | if ( !name ) |
50 | setName( "fileBrowser" ); | 50 | setName( "fileBrowser" ); |
51 | setCaption(tr( name ) ); | 51 | setCaption(tr( name ) ); |
52 | filterStr=filter; | 52 | filterStr = filter; |
53 | |||
54 | // channel = new QCopChannel( "QPE/fileDialog", this ); | 53 | // channel = new QCopChannel( "QPE/fileDialog", this ); |
55 | // connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 54 | // connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
56 | // this, SLOT(receive(const QCString&, const QByteArray&)) ); | 55 | // this, SLOT(receive(const QCString&, const QByteArray&)) ); |
57 | 56 | ||
58 | QGridLayout *layout = new QGridLayout( this ); | 57 | QGridLayout *layout = new QGridLayout( this ); |
59 | layout->setSpacing( 4 ); | 58 | layout->setSpacing( 4 ); |
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index 42f93b6..77ac166 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -49,31 +49,32 @@ class fileBrowser : public QDialog | |||
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); | 52 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); |
53 | ~fileBrowser(); | 53 | ~fileBrowser(); |
54 | 54 | ||
55 | QString selectedFileName, mimeType; | ||
56 | QFile file; | ||
57 | QStringList fileList; | ||
58 | QComboBox *SelectionCombo; | ||
59 | public slots: | ||
60 | void setFileView( int ); | ||
61 | |||
62 | private: | ||
63 | // QDict<void> mimes; | ||
55 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; | 64 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; |
56 | QListView* ListView; | 65 | QListView* ListView; |
57 | |||
58 | QLabel *dirLabel; | 66 | QLabel *dirLabel; |
59 | QString selectedFileName, filterStr; | 67 | QString filterStr; |
60 | QDir currentDir; | 68 | QDir currentDir; |
61 | QFile file; | 69 | QStringList dirPathStringList; |
62 | QStringList fileList, dirPathStringList; | ||
63 | QListViewItem * item; | 70 | QListViewItem * item; |
64 | QComboBox *SelectionCombo, *dirPathCombo; | 71 | QComboBox *dirPathCombo; |
65 | MenuButton *typemb; | 72 | MenuButton *typemb; |
66 | QWidgetStack *FileStack; | 73 | QWidgetStack *FileStack; |
67 | FileSelector *fileSelector; | 74 | FileSelector *fileSelector; |
68 | QString mimeType; | ||
69 | public slots: | ||
70 | void setFileView( int ); | ||
71 | |||
72 | private: | ||
73 | // QDict<void> mimes; | ||
74 | QRegExp tf; | 75 | QRegExp tf; |
75 | QStringList getMimeTypes(); | 76 | QStringList getMimeTypes(); |
76 | void fillCombo( const QString&); | 77 | void fillCombo( const QString&); |
77 | 78 | ||
78 | private slots: | 79 | private slots: |
79 | void populateList(); | 80 | void populateList(); |