diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:17:32 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:17:32 +0000 |
commit | e38d2351b83fa65c66ccde443777647ef5cb6cff (patch) | |
tree | 1897fc20e9f73a81c520a5b9f76f8ed042124883 /src/exportdialog.h | |
download | tellico-e38d2351b83fa65c66ccde443777647ef5cb6cff.tar.gz tellico-e38d2351b83fa65c66ccde443777647ef5cb6cff.zip |
Added KDE3 version of Tellico
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1097620 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/exportdialog.h')
-rw-r--r-- | src/exportdialog.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/exportdialog.h b/src/exportdialog.h new file mode 100644 index 0000000..2e68ca3 --- /dev/null +++ b/src/exportdialog.h @@ -0,0 +1,65 @@ +/*************************************************************************** + copyright : (C) 2003-2006 by Robby Stephenson + email : robby@periapsis.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of version 2 of the GNU General Public License as * + * published by the Free Software Foundation; * + * * + ***************************************************************************/ + +#ifndef EXPORTDIALOG_H +#define EXPORTDIALOG_H + +class QCheckBox; +class QRadioButton; + +#include "translators/translators.h" +#include "datavectors.h" + +#include <kdialogbase.h> +#include <kurl.h> + +namespace Tellico { + namespace Export { + class Exporter; + } + +/** + * @author Robby Stephenson + */ +class ExportDialog : public KDialogBase { +Q_OBJECT + +public: + ExportDialog(Export::Format format, Data::CollPtr coll, QWidget* parent, const char* name); + ~ExportDialog(); + + QString fileFilter(); + bool exportURL(const KURL& url=KURL()) const; + + static Export::Target exportTarget(Export::Format format); + static bool exportCollection(Export::Format format, const KURL& url); + +private slots: + void slotSaveOptions(); + +private: + static Export::Exporter* exporter(Export::Format format); + + void readOptions(); + + Export::Format m_format; + Data::CollPtr m_coll; + Export::Exporter* m_exporter; + QCheckBox* m_formatFields; + QCheckBox* m_exportSelected; + QRadioButton* m_encodeUTF8; + QRadioButton* m_encodeLocale; +}; + +} // end namespace +#endif |