summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/muse/widgets/filedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'attic/muse2-oom/muse2/muse/widgets/filedialog.h')
-rw-r--r--attic/muse2-oom/muse2/muse/widgets/filedialog.h110
1 files changed, 0 insertions, 110 deletions
diff --git a/attic/muse2-oom/muse2/muse/widgets/filedialog.h b/attic/muse2-oom/muse2/muse/widgets/filedialog.h
deleted file mode 100644
index 0d3dfc8c..00000000
--- a/attic/muse2-oom/muse2/muse/widgets/filedialog.h
+++ /dev/null
@@ -1,110 +0,0 @@
-//=========================================================
-// MusE
-// Linux Music Editor
-// $Id: filedialog.h,v 1.2.2.2 2008/01/19 13:33:46 wschweer Exp $
-// (C) Copyright 2000 Werner Schweer (ws@seh.de)
-//=========================================================
-
-#include <QFileDialog>
-
-#include "ui_fdialogbuttons.h"
-
-class QStringList;
-
-//---------------------------------------------------------
-// FileDialogButtonsWidget
-// Wrapper around Ui::FileDialogButtons
-//---------------------------------------------------------
-
-class FileDialogButtonsWidget : public QWidget, public Ui::FileDialogButtons
-{
- Q_OBJECT
-
- public:
- FileDialogButtonsWidget(QWidget *parent = 0)
- : QWidget(parent)
- { setupUi(this); }
-};
-
-//---------------------------------------------------------
-// MFileDialog
-//---------------------------------------------------------
-
-class MFileDialog : public QFileDialog {
- Q_OBJECT
-
- static QString lastUserDir, lastGlobalDir;
- bool showButtons;
- QString baseDir;
-
- private slots:
- void directoryChanged(const QString& directory);
- public slots:
- void globalToggled(bool);
- void userToggled(bool);
- void projectToggled(bool);
-
- public:
- enum ViewType { GLOBAL_VIEW, PROJECT_VIEW, USER_VIEW }; //!< The three different viewtypes
- static ViewType lastViewUsed;
- FileDialogButtonsWidget buttons;
- MFileDialog(const QString& dir, const QString& filter = QString::null,
- QWidget* parent = 0, bool writeFlag = false);
- };
-
-/* ORCAN - Disable previeww for now. It is not available in qt4. We will
- need to implement it ourselves.
-//---------------------------------------------------------
-// ContentsPreview
-//---------------------------------------------------------
-
-class ContentsPreview : public QWidget, public Q3FilePreview {
- Q_OBJECT
-
- virtual void previewUrl(const Q3Url &url);
- QString path;
- QPixmap* bg;
-
- public:
- ContentsPreview(QWidget* parent, const char* name=0)
- : QWidget(parent, name) {
- bg = 0;
- }
- ~ContentsPreview();
- };
-*/
-
-//QString getSaveFileName(const QString& startWidth, const char** filter,
-QString getSaveFileName(const QString& startWidth, const QStringList& filters,
- QWidget* parent, const QString& name);
-//QString getOpenFileName(const QString& startWidth, const char** filter,
-QString getOpenFileName(const QString& startWidth, const QStringList& filters,
- QWidget* parent, const QString& name, bool* openAll, MFileDialog::ViewType viewType = MFileDialog::PROJECT_VIEW);
-//QString getImageFileName(const QString& startWith, const char** filters,
-QString getImageFileName(const QString& startWith, const QStringList& filters,
- QWidget* parent, const QString& name);
-
-FILE* fileOpen(QWidget*, QString, const QString&,
- const char*, bool&, bool = false, bool = false);
-
-
-//---------------------------------------------------------
-// MFile
-// "Muse" File
-//---------------------------------------------------------
-
-class MFile {
- bool isPopen;
- FILE* f;
- QString path;
- QString ext;
-
- public:
- MFile(const QString& path, const QString& ext);
- ~MFile();
- //FILE* open(const char* mode, const char** pattern,
- FILE* open(const char* mode, const QStringList& pattern,
- QWidget* parent, bool noError,
- bool warnIfOverwrite, const QString& caption);
- };
-