From 5f6f3f7d9356e24ac5284b7ccc10a75451ea94ee Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 01 Mar 2004 17:36:09 +0000 Subject: some header files and glue to compile japanese apps pretty much work in progress - maybe someone wants to finish --- (limited to 'libslcompat/slfiledialog.h') 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 +#include +#include +#include + +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 -- cgit v0.9.0.2