summaryrefslogtreecommitdiffstats
path: root/scribus/prefs.h
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-01-01 11:40:09 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-01-01 11:40:09 +0000
commit7ed83b6c6666eb8b6b104c211ae7e52907350372 (patch)
tree4430b556abac0ad660a0aacf1887d77f85d8be02 /scribus/prefs.h
downloadscribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.gz
scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.xz
scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.zip
Branch 1.3.5 tree to 1.4.x tree, goodbye 1.3.x
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17163 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/prefs.h')
-rw-r--r--scribus/prefs.h122
1 files changed, 122 insertions, 0 deletions
diff --git a/scribus/prefs.h b/scribus/prefs.h
new file mode 100644
index 0000000..c7b5d18
--- /dev/null
+++ b/scribus/prefs.h
@@ -0,0 +1,122 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+to the COPYING file provided with the program. Following this notice may exist
+a copyright and/or license notice that predates the release of Scribus 1.3.2
+for which a new license (GPL+exception) is in place.
+*/
+#ifndef PREFS_H
+#define PREFS_H
+
+#include "scribusapi.h"
+#include "scribus.h"
+#include "prefsdialogbase.h"
+
+class TabTypograpy;
+class HySettings;
+class CMSPrefs;
+class TabGuides;
+class TabTools;
+class TabCheckDoc;
+class TabPDFOptions;
+class FontPrefs;
+class DocumentItemAttributes;
+class TOCIndexPrefs;
+class MarginWidget;
+class PrefsManager;
+class PageLayouts;
+class TabExternalToolsWidget;
+class TabKeyboardShortcutsWidget;
+class PluginManagerPrefsGui;
+class TabGeneral;
+class TabDisplay;
+class TabDocument;
+class TabMiscellaneous;
+class TabScrapbook;
+class TabPrinter;
+
+
+/*! \brief A Preferences dialog.
+It's modular now. You can see a lot of special widgets here
+but no QWidget itself. Most of the "panels" are converted
+into UI files with Scribus's standard convention:
+foobase - foo inherited.
+\author Petr Vanek <petr@scribus.info>
+*/
+class SCRIBUS_API Preferences : public PrefsDialogBase
+{
+ Q_OBJECT
+
+public:
+
+ /*!
+ \author Franz Schmid
+ \brief Constructor for Preferences dialog box
+ \param parent QWidget pointer to parent window
+ */
+ Preferences( QWidget* parent);
+ ~Preferences(){};
+
+ void updatePreferences();
+
+public slots:
+ /// \brief Overridden to emit accepted(), which plugin panels use
+ void accept();
+
+ /*!
+ \author Franz Schmid
+ \brief Preferences (Document / Page Size), switches default between Facing Pages and swaps text labels for margin guides
+ */
+ void setDS(int layout);
+ /*!
+ \author Franz Schmid
+ \brief Preferences (General, Units). Sets scaling factors and units descriptions when default units are changed. Updates preference values
+ */
+ void unitChange();
+
+ void switchCMS(bool enable);
+
+protected:
+ TabGeneral* tabGeneral;
+ TabGuides* tabGuides;
+ TabTypograpy* tabTypo;
+ TabDisplay* tabView;
+ TabTools* tabTools;
+ HySettings* tabHyphenator;
+ FontPrefs* tabFonts;
+ TabPrinter* tabPrinter;
+ TabCheckDoc* tabDocChecker;
+ CMSPrefs* tabColorManagement;
+ TabPDFOptions* tabPDF;
+ DocumentItemAttributes* tabDefaultItemAttributes;
+ TOCIndexPrefs* tabDefaultTOCIndexPrefs;
+ TabExternalToolsWidget* tabExtTools;
+ TabKeyboardShortcutsWidget* tabKeyboardShortcuts;
+ TabScrapbook* tabScrapbook;
+ TabDocument* tabDocument;
+ TabMiscellaneous* tabMiscellaneous;
+ PluginManagerPrefsGui* pluginManagerPrefsGui;
+
+ double unitRatio;
+ int docUnitIndex;
+ ScribusMainWindow *ap;
+ PrefsManager* prefsManager;
+
+ /*! \brief Scans plugins for those that want to add a prefs widget and
+ hooks them up to the dialog. */
+ void addPlugins();
+
+ //! \brief Resets the PrefsManager. Then call setupGui().
+ void restoreDefaults();
+ //! \brief Setup the GUI widgets by values taken from PrefsManager.
+ void setupGui();
+ void enableSignals(bool);
+
+protected slots:
+ //! \brief Method to be called when user selects the icon.
+ virtual void showWidgetInStack(QWidget *widgetToShow);
+ void setActionHistoryLength();
+ virtual void applyChangesButton_clicked();
+ virtual void backToDefaults_clicked();
+};
+
+#endif // PREFS_H