summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofileselector.h
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofileselector.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/ofileselector.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/libopie/ofileselector/ofileselector.h b/libopie/ofileselector/ofileselector.h
index a7b363f..bf9a26b 100644
--- a/libopie/ofileselector/ofileselector.h
+++ b/libopie/ofileselector/ofileselector.h
@@ -66,12 +66,13 @@ class QHBoxLayout;
66class QVBoxLayout; 66class QVBoxLayout;
67class QPopupMenu; 67class QPopupMenu;
68class QFileInfo; 68class QFileInfo;
69class QHBox; 69class QHBox;
70class OFileView; 70class OFileView;
71class OLister; 71class OLister;
72class OFileSelectorMain;
72// 73//
73 74
74/* the mimetypes one name and a list of mimetypes */ 75/* the mimetypes one name and a list of mimetypes */
75typedef QMap< QString, QStringList> MimeTypes; 76typedef QMap< QString, QStringList> MimeTypes;
76 77
77/** 78/**
@@ -339,12 +340,14 @@ class OFileSelector : public QWidget {
339 OFileView* currentView(); 340 OFileView* currentView();
340 OFileView* currentView()const; 341 OFileView* currentView()const;
341 OLister* currentLister()const; 342 OLister* currentLister()const;
342 int filter(); 343 int filter();
343 int sorting(); 344 int sorting();
344 QPixmap pixmap( const QString& ); 345 QPixmap pixmap( const QString& );
346 /* our tool bar */
347 QWidget* toolBar();
345 348
346 signals: 349 signals:
347 void fileSelected( const DocLnk & ); 350 void fileSelected( const DocLnk & );
348 void fileSelected( const QString & ); 351 void fileSelected( const QString & );
349 void dirSelected(const QString &dir ); 352 void dirSelected(const QString &dir );
350 void dirSelected( const QDir& ); 353 void dirSelected( const QDir& );
@@ -366,12 +369,15 @@ class OFileSelector : public QWidget {
366 void init(); 369 void init();
367 void updateMimes(); 370 void updateMimes();
368 371
369 372
370 private: 373 private:
371 374
375 OFileSelectorMain* m_mainView;
376 OLister* m_lister;
377 OFileView* m_fileView;
372 FileSelector* m_select; 378 FileSelector* m_select;
373 int m_mode, m_selector; 379 int m_mode, m_selector;
374 QComboBox *m_location, 380 QComboBox *m_location,
375 *m_mimeCheck, 381 *m_mimeCheck,
376 *m_viewCheck; 382 *m_viewCheck;
377 383
@@ -387,25 +393,23 @@ class OFileSelector : public QWidget {
387 QCheckBox *m_checkPerm; 393 QCheckBox *m_checkPerm;
388 QWidget *m_pseudo; 394 QWidget *m_pseudo;
389 QVBoxLayout *m_pseudoLayout; 395 QVBoxLayout *m_pseudoLayout;
390 396
391 QString m_currentDir; 397 QString m_currentDir;
392 QString m_name; 398 QString m_name;
393 QMap<QString, QStringList> m_mimetypes;
394 399
400 QMap<QString, QStringList> m_mimetypes;
395 401
396 QWidgetStack *m_stack;
397 QVBoxLayout *m_lay; 402 QVBoxLayout *m_lay;
398 QGridLayout *m_Oselector; 403 QGridLayout *m_Oselector;
399 404
400 QHBox *m_boxToolbar; 405 QHBox *m_boxToolbar;
401 QHBox *m_boxOk; 406 QHBox *m_boxOk;
402 QHBox *m_boxName; 407 QHBox *m_boxName;
403 QHBox *m_boxView; 408 QHBox *m_boxView;
404 409
405 QPopupMenu *m_custom;
406 410
407 QLineEdit *m_edit; 411 QLineEdit *m_edit;
408 QLabel *m_fnLabel; 412 QLabel *m_fnLabel;
409 413
410 bool m_shClose : 1; 414 bool m_shClose : 1;
411 bool m_shNew : 1; 415 bool m_shNew : 1;
@@ -417,30 +421,35 @@ class OFileSelector : public QWidget {
417 bool m_boCheckPerm : 1; 421 bool m_boCheckPerm : 1;
418 bool m_autoMime : 1; 422 bool m_autoMime : 1;
419 bool m_case : 1; 423 bool m_case : 1;
420 bool m_dir : 1; 424 bool m_dir : 1;
421 bool m_files : 1; 425 bool m_files : 1;
422 bool m_showPopup : 1; 426 bool m_showPopup : 1;
427 bool m_showHidden : 1;
423 428
424 void initVars(); 429 void initVars();
425 430
426 void delItems(); 431 void delItems();
427 void initializeName(); 432 void initializeName();
428 void initializeYes(); 433 void initializeYes();
429 void initializeChooser(); 434 void initializeChooser();
430 void initializeListView();
431 void initializePerm(); 435 void initializePerm();
432 void initPics(); 436 void initPics();
433 bool compliesMime(const QString &path, 437 bool compliesMime(const QString &path,
434 const QString &mime); 438 const QString &mime);
435 bool compliesMime(const QString& mime ); 439 bool compliesMime(const QString& mime );
436 /** 440 /**
437 * Updates the QComboBox with the current mimetypes 441 * Updates the QComboBox with the current mimetypes
438 */ 442 */
439 void updateMimeCheck(); 443 void updateMimeCheck();
440 444
445 void initializeOldSelector();
446 void initLister();
447 void initToolbar();
448 void initLocations();
449 void initializeView() {}; // FIXME
441 /** 450 /**
442 * Returns the current mimetype 451 * Returns the current mimetype
443 */ 452 */
444 QString currentMimeType()const; 453 QString currentMimeType()const;
445 class OFileSelectorPrivate; 454 class OFileSelectorPrivate;
446 OFileSelectorPrivate *d; 455 OFileSelectorPrivate *d;