author | zecke <zecke> | 2002-09-20 17:28:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-20 17:28:20 (UTC) |
commit | 55dd11ddae09bfc4907399c473f0387c135fdae6 (patch) (unidiff) | |
tree | 69d52e2f0e1030bbdcbf518f0a334ff4861500fa /libopie/ofileselector/ofileselector.h | |
parent | 40df2487c53a5ab484d33d619f5b6ed449c0b485 (diff) | |
download | opie-55dd11ddae09bfc4907399c473f0387c135fdae6.zip opie-55dd11ddae09bfc4907399c473f0387c135fdae6.tar.gz opie-55dd11ddae09bfc4907399c473f0387c135fdae6.tar.bz2 |
OTodo know is the first implementation of OPimRecord
Diffstat (limited to 'libopie/ofileselector/ofileselector.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselector.h | 125 |
1 files changed, 67 insertions, 58 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 | |||
@@ -69,6 +69,7 @@ class QFileInfo; | |||
69 | class QHBox; | 69 | class QHBox; |
70 | class OFileView; | 70 | class OFileView; |
71 | class OLister; | 71 | class OLister; |
72 | class 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 */ |
@@ -108,7 +109,7 @@ class OFileSelector : public QWidget { | |||
108 | * libqpe or Extended. for the Extended | 109 | * libqpe or Extended. for the Extended |
109 | * ExtendedAll also shows 'hidden' files | 110 | * ExtendedAll also shows 'hidden' files |
110 | */ | 111 | */ |
111 | enum Selector{Normal=0, Extended = 1, ExtendedAll =2 }; | 112 | enum Selector{Normal=0, Extended = 1, ExtendedAll = 2}; |
112 | 113 | ||
113 | /** | 114 | /** |
114 | * This is reserved for futrue views | 115 | * This is reserved for futrue views |
@@ -342,6 +343,8 @@ class OFileSelector : public QWidget { | |||
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 & ); |
@@ -369,6 +372,9 @@ class OFileSelector : public QWidget { | |||
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, |
@@ -390,72 +396,75 @@ class OFileSelector : public QWidget { | |||
390 | 396 | ||
391 | QString m_currentDir; | 397 | QString m_currentDir; |
392 | QString m_name; | 398 | QString m_name; |
393 | QMap<QString, QStringList> m_mimetypes; | 399 | |
394 | 400 | QMap<QString, QStringList> m_mimetypes; | |
395 | 401 | ||
396 | QWidgetStack *m_stack; | 402 | QVBoxLayout *m_lay; |
397 | QVBoxLayout *m_lay; | 403 | QGridLayout *m_Oselector; |
398 | QGridLayout *m_Oselector; | 404 | |
399 | 405 | QHBox *m_boxToolbar; | |
400 | QHBox *m_boxToolbar; | 406 | QHBox *m_boxOk; |
401 | QHBox *m_boxOk; | 407 | QHBox *m_boxName; |
402 | QHBox *m_boxName; | 408 | QHBox *m_boxView; |
403 | QHBox *m_boxView; | 409 | |
404 | 410 | ||
405 | QPopupMenu *m_custom; | 411 | QLineEdit *m_edit; |
406 | 412 | QLabel *m_fnLabel; | |
407 | QLineEdit *m_edit; | 413 | |
408 | QLabel *m_fnLabel; | 414 | bool m_shClose : 1; |
409 | 415 | bool m_shNew : 1; | |
410 | bool m_shClose : 1; | 416 | bool m_shTool : 1; |
411 | bool m_shNew : 1; | 417 | bool m_shPerm : 1; |
412 | bool m_shTool : 1; | 418 | bool m_shLne : 1; |
413 | bool m_shPerm : 1; | 419 | bool m_shChooser : 1; |
414 | bool m_shLne : 1; | 420 | bool m_shYesNo : 1; |
415 | bool m_shChooser : 1; | 421 | bool m_boCheckPerm : 1; |
416 | bool m_shYesNo : 1; | 422 | bool m_autoMime : 1; |
417 | bool m_boCheckPerm : 1; | 423 | bool m_case : 1; |
418 | bool m_autoMime : 1; | 424 | bool m_dir : 1; |
419 | bool m_case : 1; | 425 | bool m_files : 1; |
420 | bool m_dir : 1; | 426 | bool m_showPopup : 1; |
421 | bool m_files : 1; | 427 | bool m_showHidden : 1; |
422 | bool m_showPopup : 1; | 428 | |
423 | 429 | void initVars(); | |
424 | void initVars(); | 430 | |
425 | 431 | void delItems(); | |
426 | void delItems(); | 432 | void initializeName(); |
427 | void initializeName(); | 433 | void initializeYes(); |
428 | void initializeYes(); | 434 | void initializeChooser(); |
429 | void initializeChooser(); | 435 | void initializePerm(); |
430 | void initializeListView(); | 436 | void initPics(); |
431 | void initializePerm(); | 437 | bool compliesMime(const QString &path, |
432 | void initPics(); | 438 | const QString &mime); |
433 | bool compliesMime(const QString &path, | 439 | bool compliesMime(const QString& mime ); |
434 | const QString &mime); | ||
435 | 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; |
447 | static QMap<QString,QPixmap> *m_pixmaps; | 456 | static QMap<QString,QPixmap> *m_pixmaps; |
448 | 457 | ||
449 | private slots: | 458 | private slots: |
450 | void slotFileSelected(const QString & ); // not really meant to be a slot | 459 | void slotFileSelected(const QString & ); // not really meant to be a slot |
451 | void slotFileBridgeSelected( const DocLnk & ); | 460 | void slotFileBridgeSelected( const DocLnk & ); |
452 | // listview above | 461 | // listview above |
453 | // popup below | 462 | // popup below |
454 | virtual void slotDelete(); | 463 | virtual void slotDelete(); |
455 | virtual void cdUP(); | 464 | virtual void cdUP(); |
456 | virtual void slotHome(); | 465 | virtual void slotHome(); |
457 | virtual void slotDoc(); | 466 | virtual void slotDoc(); |
458 | virtual void slotNavigate( ); | 467 | virtual void slotNavigate( ); |
459 | 468 | ||
460 | /* for OLister */ | 469 | /* for OLister */ |
461 | private: | 470 | private: |