summaryrefslogtreecommitdiff
path: root/libopie/ofileselector.h
Unidiff
Diffstat (limited to 'libopie/ofileselector.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h
index 17c494e..06ac806 100644
--- a/libopie/ofileselector.h
+++ b/libopie/ofileselector.h
@@ -76,96 +76,98 @@ class OFileSelector : public QWidget {
76 * The mode of the file selector 76 * The mode of the file selector
77 * Either open, save, fileselector or dir browsing mode 77 * Either open, save, fileselector or dir browsing mode
78 * 78 *
79 */ 79 */
80 enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 }; 80 enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 };
81 81
82 /** 82 /**
83 * Selector. Either NORMAL for the one shipped with 83 * Selector. Either NORMAL for the one shipped with
84 * libqpe or EXTENDED. for the EXTENDED 84 * libqpe or EXTENDED. for the EXTENDED
85 * EXTENDED_ALL also shows 'hidden' files 85 * EXTENDED_ALL also shows 'hidden' files
86 */ 86 */
87 enum Selector{NORMAL=0, EXTENDED = 1, EXTENDED_ALL =2 }; 87 enum Selector{NORMAL=0, EXTENDED = 1, EXTENDED_ALL =2 };
88 88
89 /** 89 /**
90 * This is reserved for futrue views 90 * This is reserved for futrue views
91 */ 91 */
92 enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; 92 enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 };
93 93
94 /** 94 /**
95 * A c'tor which should be used for advanced mode 95 * A c'tor which should be used for advanced mode
96 * @param wid the parent 96 * @param wid the parent
97 * @param mode the Mode of the Selector 97 * @param mode the Mode of the Selector
98 * @param selector the current View of the Selector 98 * @param selector the current View of the Selector
99 * @param dirName in which dir to start 99 * @param dirName in which dir to start
100 * @param fileName a proposed filename 100 * @param fileName a proposed filename
101 * @param mimetypes A list of mimetypes \ 101 * @param mimetypes A list of mimetypes \
102 * QString is for a identifier name like "Text files" 102 * QString is for a identifier name like "Text files"
103 * the coresponding QStringList is used for the mimetypes 103 * the coresponding QStringList is used for the mimetypes
104 * if empty it'll fill the list of mimetypes depending 104 * if empty it'll fill the list of mimetypes depending
105 * on the content of the current directory 105 * on the content of the current directory
106 */ 106 */
107 107
108 OFileSelector(QWidget *wid, int mode, int selector, 108 OFileSelector(QWidget *wid, int mode, int selector,
109 const QString &dirName, 109 const QString &dirName,
110 const QString &fileName = QString::null, 110 const QString &fileName = QString::null,
111 const MimeTypes &mimetypes = MimeTypes() ); 111 const MimeTypes &mimetypes = MimeTypes() );
112 112
113 113
114 /** 114 /**
115 * This is a QPE compatible c'tor 115 * This is a QPE compatible c'tor
116 */ 116 */
117 OFileSelector(const QString &mimeFilter, QWidget *parent, 117 OFileSelector(const QString &mimeFilter, QWidget *parent,
118 const char *name, bool newVisible = TRUE, 118 const char *name, bool newVisible = TRUE,
119 bool closeVisible = FALSE ); 119 bool closeVisible = FALSE );
120 120
121 ~OFileSelector(); 121 ~OFileSelector();
122 122
123 // currently only for the FILESELECTOR Mode 123 // currently only for the FILESELECTOR Mode
124 /**
125 */
124 void setNewVisible( bool /*b*/ ); 126 void setNewVisible( bool /*b*/ );
125 void setCloseVisible(bool /*b*/ ); 127 void setCloseVisible(bool /*b*/ );
126 128
127 // end file selector mode 129 // end file selector mode
128 // deprecated 130 // deprecated
129 void reread(); 131 void reread();
130 // make sure not to leak please 132 // make sure not to leak please
131 const DocLnk *selected(); 133 const DocLnk *selected();
132 // end deprecated 134 // end deprecated
133 135
134 bool isToolbarVisible() const { return m_shTool; }; 136 bool isToolbarVisible() const { return m_shTool; };
135 bool isPermissionBarVisible() const { return m_shPerm; }; 137 bool isPermissionBarVisible() const { return m_shPerm; };
136 bool isLineEditVisible()const { return m_shLne; }; 138 bool isLineEditVisible()const { return m_shLne; };
137 bool isChooserVisible( )const { return m_shChooser; }; 139 bool isChooserVisible( )const { return m_shChooser; };
138 bool isYesCancelVisible()const { return m_shYesNo; }; 140 bool isYesCancelVisible()const { return m_shYesNo; };
139 void setYesCancelVisible( bool show ); 141 void setYesCancelVisible( bool show );
140 void setToolbarVisible( bool show ); 142 void setToolbarVisible( bool show );
141 void setPermissionBarVisible( bool show ); 143 void setPermissionBarVisible( bool show );
142 void setLineEditVisible(bool show) ; 144 void setLineEditVisible(bool show) ;
143 void setChooserVisible( bool chooser ); 145 void setChooserVisible( bool chooser );
144 146
145 QCheckBox* permissionCheckbox(); 147 QCheckBox* permissionCheckbox();
146 bool setPermission() const; 148 bool setPermission() const;
147 void setPermissionChecked( bool check ); 149 void setPermissionChecked( bool check );
148 150
149 void setMode( int ); 151 void setMode( int );
150 152
151 bool showDirs()const { return m_dir; } 153 bool showDirs()const { return m_dir; }
152 void setShowDirs(bool ); 154 void setShowDirs(bool );
153 155
154 const QListView* listView() { return m_View; }; 156 const QListView* listView() { return m_View; };
155 157
156 bool isCaseSensetive()const { return m_case; } 158 bool isCaseSensetive()const { return m_case; }
157 void setCaseSensetive(bool caSe ); 159 void setCaseSensetive(bool caSe );
158 160
159 bool showFiles()const { return m_files; }; 161 bool showFiles()const { return m_files; };
160 void setShowFiles(bool ); 162 void setShowFiles(bool );
161 bool cd(const QString &path ); 163 bool cd(const QString &path );
162 164
163 165
164 int mode()const { return m_mode; }; 166 int mode()const { return m_mode; };
165 int selector()const { return m_selector; }; 167 int selector()const { return m_selector; };
166 void setSelector( int ); 168 void setSelector( int );
167 169
168 bool showPopup()const { return m_showPopup; }; 170 bool showPopup()const { return m_showPopup; };
169 void setShowPopup( bool pop ) { m_showPopup = pop; }; 171 void setShowPopup( bool pop ) { m_showPopup = pop; };
170 void setPopupMenu( QPopupMenu * ); 172 void setPopupMenu( QPopupMenu * );
171 173