-rw-r--r-- | libopie/ofiledialog.h | 4 | ||||
-rw-r--r-- | libopie/ofileselector.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libopie/ofiledialog.h b/libopie/ofiledialog.h index 91e0586..3b905c0 100644 --- a/libopie/ofiledialog.h +++ b/libopie/ofiledialog.h | |||
@@ -31,35 +31,35 @@ | |||
31 | #define OpieFileDialog_h | 31 | #define OpieFileDialog_h |
32 | 32 | ||
33 | #include <qdialog.h> | 33 | #include <qdialog.h> |
34 | 34 | ||
35 | #include <opie/ofileselector.h> | 35 | #include <opie/ofileselector.h> |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * This class places a OFileSelector inside a QDialog. | 38 | * This class places a OFileSelector inside a QDialog. |
39 | * It provides static method for letting a user chose | 39 | * It provides static method for letting a user chose |
40 | * a file for either opening or saving. | 40 | * a file for either opening or saving. |
41 | * Most of the time the c'tor will not be used instead using | 41 | * Most of the time the c'tor will not be used instead using |
42 | * the static member functions is prefered. | 42 | * the static member functions is prefered. |
43 | * | 43 | * |
44 | * <pre> | 44 | * <pre> |
45 | * QMap<QString, QStringList> mimeTypes; | 45 | * QMap<QString, QStringList> mimeTypes; |
46 | * QStringList types; | 46 | * QStringList types; |
47 | * types << "text[slash]* "; | 47 | * types << "text@slash* "; |
48 | * mimeTypes.insert( tr("Text"), types ); | 48 | * mimeTypes.insert( tr("Text"), types ); |
49 | * mimeTypes.insert( tr("All"), " * / * " ); // remove the spaces in the 2nd comment | 49 | * mimeTypes.insert( tr("All"), " *@slash* " ); // remove the spaces in the 2nd comment |
50 | * QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, | 50 | * QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, |
51 | * "foo","bar", mimeTypes); | 51 | * "foo","bar", mimeTypes); |
52 | * </pre> | 52 | * </pre> |
53 | * | 53 | * |
54 | * @short A small QDialog swalloing a FileSelector | 54 | * @short A small QDialog swalloing a FileSelector |
55 | * @see QDialog | 55 | * @see QDialog |
56 | * @see OFileSelector | 56 | * @see OFileSelector |
57 | * @version 0.1-unfinished | 57 | * @version 0.1-unfinished |
58 | * @author Holger Freyther ( zecke@handhelds.org ) | 58 | * @author Holger Freyther ( zecke@handhelds.org ) |
59 | */ | 59 | */ |
60 | class OFileDialog : public QDialog { | 60 | class OFileDialog : public QDialog { |
61 | Q_OBJECT | 61 | Q_OBJECT |
62 | public: | 62 | public: |
63 | OFileDialog(const QString &caption, | 63 | OFileDialog(const QString &caption, |
64 | QWidget *, int mode, int selector, | 64 | QWidget *, int mode, int selector, |
65 | const QString &dirName, | 65 | const QString &dirName, |
diff --git a/libopie/ofileselector.cpp b/libopie/ofileselector.cpp index 9afe9c7..9ac2981 100644 --- a/libopie/ofileselector.cpp +++ b/libopie/ofileselector.cpp | |||
@@ -625,36 +625,36 @@ void OFileViewFileSystem::activate( const QString& str) { | |||
625 | m_all = (str != QObject::tr("Files") ); | 625 | m_all = (str != QObject::tr("Files") ); |
626 | 626 | ||
627 | 627 | ||
628 | } | 628 | } |
629 | 629 | ||
630 | /* Selector */ | 630 | /* Selector */ |
631 | /** | 631 | /** |
632 | * @short new and complete c'tor | 632 | * @short new and complete c'tor |
633 | * | 633 | * |
634 | * Create a OFileSelector to let the user select a file. It can | 634 | * Create a OFileSelector to let the user select a file. It can |
635 | * either be used to open a file, select a save name in a dir or | 635 | * either be used to open a file, select a save name in a dir or |
636 | * as a dropin for the FileSelector. | 636 | * as a dropin for the FileSelector. |
637 | * | 637 | * |
638 | * <pre> | 638 | * <pre> |
639 | * QMap<QString, QStringList> mimeTypes; | 639 | * QMap<QString, QStringList> mimeTypes; |
640 | * QStringList types; | 640 | * QStringList types; |
641 | * types << "text[slash]* "; | 641 | * types << "text@slash* "; |
642 | * types << "audio[slash]*"; | 642 | * types << "audio@slash*"; |
643 | * mimeTypes.insert( tr("Audio and Text"), types ); | 643 | * mimeTypes.insert( tr("Audio and Text"), types ); |
644 | * mimeTypes.insert( tr("All"), "*[slash]*); | 644 | * mimeTypes.insert( tr("All"), "*@slash*); |
645 | * | 645 | * |
646 | * now you could create your fileselector | 646 | * now you could create your fileselector |
647 | * </pre> | 647 | * </pre> |
648 | * | 648 | * |
649 | * | 649 | * |
650 | * @param parent the parent of this widget | 650 | * @param parent the parent of this widget |
651 | * @param mode The mode from the enum Mode (Open,Save,FILESELECTOR) | 651 | * @param mode The mode from the enum Mode (Open,Save,FILESELECTOR) |
652 | * @param sel The selector to be used | 652 | * @param sel The selector to be used |
653 | * @param dirName The name of the dir to start int | 653 | * @param dirName The name of the dir to start int |
654 | * @param fileName The fileName placed in the fileselector lineedit | 654 | * @param fileName The fileName placed in the fileselector lineedit |
655 | * @param mimetypes The MimeType map of used mimetypes | 655 | * @param mimetypes The MimeType map of used mimetypes |
656 | * @param showNew Show a New Button. Most likely to be used in the FileSelector view. | 656 | * @param showNew Show a New Button. Most likely to be used in the FileSelector view. |
657 | * @param showClose Show a Close Button. Most likely to be used in FileSelector view. | 657 | * @param showClose Show a Close Button. Most likely to be used in FileSelector view. |
658 | * | 658 | * |
659 | */ | 659 | */ |
660 | OFileSelector::OFileSelector( QWidget* parent, int mode, int sel, | 660 | OFileSelector::OFileSelector( QWidget* parent, int mode, int sel, |