summaryrefslogtreecommitdiff
path: root/libslcompat/slfiledialog.h
authormickeyl <mickeyl>2004-03-01 17:36:09 (UTC)
committer mickeyl <mickeyl>2004-03-01 17:36:09 (UTC)
commit5f6f3f7d9356e24ac5284b7ccc10a75451ea94ee (patch) (side-by-side diff)
tree3a1149a6afa188b9c51b86357edd0981d9c97f4c /libslcompat/slfiledialog.h
parent796de538b7b7bc7c3e2af3e8dd081000c21569ac (diff)
downloadopie-5f6f3f7d9356e24ac5284b7ccc10a75451ea94ee.zip
opie-5f6f3f7d9356e24ac5284b7ccc10a75451ea94ee.tar.gz
opie-5f6f3f7d9356e24ac5284b7ccc10a75451ea94ee.tar.bz2
some header files and glue to compile japanese apps
pretty much work in progress - maybe someone wants to finish
Diffstat (limited to 'libslcompat/slfiledialog.h') (more/less context) (show whitespace changes)
-rw-r--r--libslcompat/slfiledialog.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/libslcompat/slfiledialog.h b/libslcompat/slfiledialog.h
new file mode 100644
index 0000000..2ad105c
--- a/dev/null
+++ b/libslcompat/slfiledialog.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright (C) 2002 SHARP CORPORATION All rights reserved.
+ */
+#ifndef __SLFILEDIALOG_H__
+#define __SLFILEDIALOG_H__
+
+#include <qdialog.h>
+#include <qfileinfo.h>
+#include <qvalidator.h>
+#include <sl/slmisc.h>
+
+class SlFileNameValidator : public QValidator
+{
+ Q_OBJECT
+public:
+ SlFileNameValidator( QWidget * parent, const char * name = 0 ) : QValidator(parent,name) {};
+ virtual State validate(QString&,int&) const;
+ virtual void fixup(QString&) const;
+};
+
+class SlFileDialogPrivate;
+class SlFileDialog : public QDialog
+{
+ Q_OBJECT
+public:
+
+
+ SlFileDialog(bool bSaveAs = FALSE, QWidget * parent=0, const char * name=0, bool modal=TRUE, WFlags f=0 );
+
+
+ virtual ~SlFileDialog();
+
+
+ void setNewDirEnabled(bool);
+
+
+ void setDefaultFile( QString path );
+ void setDefaultName( QString name );
+
+
+ void setMimeType( QString mime );
+
+
+ void setComplementExt( QString ext );
+
+
+ void setIconViewType(bool isIcon);
+
+
+ QString &getFilePath();
+ QString &getFileName();
+
+ int exec();
+
+protected slots:
+ virtual void accept();
+
+ void fileSelected(const QFileInfo &fInfo);
+ void slotNewDir();
+ void rotateChanged();
+ void keyPressed(QKeyEvent*,bool&);
+
+protected:
+ void getDefaultColumnWidth(SlMisc::SlListColumnInfos &infos);
+
+ SlFileDialogPrivate *m_pD;
+
+};
+
+#endif