-rw-r--r-- | library/fileselector.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/fileselector.h b/library/fileselector.h index f1c9eb1..e3ae891 100644 --- a/library/fileselector.h +++ b/library/fileselector.h | |||
@@ -45,24 +45,26 @@ private: | |||
45 | }; | 45 | }; |
46 | 46 | ||
47 | class FileSelectorPrivate; | 47 | class FileSelectorPrivate; |
48 | class FileSelector : public QVBox | 48 | class FileSelector : public QVBox |
49 | { | 49 | { |
50 | Q_OBJECT | 50 | Q_OBJECT |
51 | 51 | ||
52 | public: | 52 | public: |
53 | FileSelector( const QString &mimefilter, QWidget *parent, const char *name=0, bool newVisible = TRUE, bool closeVisible = TRUE ); | 53 | FileSelector( const QString &mimefilter, QWidget *parent, const char *name=0, bool newVisible = TRUE, bool closeVisible = TRUE ); |
54 | ~FileSelector(); | 54 | ~FileSelector(); |
55 | void setNewVisible( bool b ); | 55 | void setNewVisible( bool b ); |
56 | void setCloseVisible( bool b ); | 56 | void setCloseVisible( bool b ); |
57 | void setTypeComboVisible( bool b = TRUE ); | ||
58 | void setCategorySelectVisible( bool b = TRUE ); | ||
57 | void reread(); | 59 | void reread(); |
58 | int fileCount(); | 60 | int fileCount(); |
59 | DocLnk selectedDocument() const | 61 | DocLnk selectedDocument() const |
60 | { | 62 | { |
61 | const DocLnk* rp = ((FileSelector*)this)->selected(); | 63 | const DocLnk* rp = ((FileSelector*)this)->selected(); |
62 | if (!rp) { | 64 | if (!rp) { |
63 | DocLnk r; | 65 | DocLnk r; |
64 | return r; | 66 | return r; |
65 | } | 67 | } |
66 | DocLnk r(*rp); | 68 | DocLnk r(*rp); |
67 | delete rp; | 69 | delete rp; |
68 | return r; | 70 | return r; |