Back to index

scribus-ng  1.3.4.dfsg+svn20071115
prefs.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef PREFS_H
00008 #define PREFS_H
00009 
00010 #include "scribusapi.h"
00011 #include "scribusstructs.h"
00012 #include "scribus.h"
00013 #include "prefsdialogbase.h"
00014 
00015 class TabTypograpy;
00016 class HySettings;
00017 class CMSPrefs;
00018 class TabGuides;
00019 class TabTools;
00020 class TabCheckDoc;
00021 class TabPDFOptions;
00022 class FontPrefs;
00023 class DocumentItemAttributes;
00024 class TOCIndexPrefs;
00025 class MarginWidget;
00026 class PrefsManager;
00027 class PageLayouts;
00028 class TabExternalToolsWidget;
00029 class TabKeyboardShortcutsWidget;
00030 class PluginManagerPrefsGui;
00031 class TabGeneral;
00032 class TabDisplay;
00033 class TabDocument;
00034 class TabMiscellaneous;
00035 class TabScrapbook;
00036 class TabPrinter;
00037 
00038 
00046 class SCRIBUS_API Preferences : public PrefsDialogBase
00047 {
00048        Q_OBJECT
00049 
00050 public:
00051        
00057        Preferences( QWidget* parent);
00058        ~Preferences(){};
00059 
00060        void updatePreferences();
00061 
00062 signals:
00064        void accepted();
00065 
00066 public slots:
00068        void accept();
00069 
00074        void setDS(int layout);
00079        void unitChange();
00080 
00081        void switchCMS(bool enable);
00082 
00083 protected:
00084        TabGeneral* tabGeneral;
00085        TabGuides* tabGuides;
00086        TabTypograpy* tabTypo;
00087        TabDisplay* tabView;
00088        TabTools* tabTools;
00089        HySettings* tabHyphenator;
00090        FontPrefs* tabFonts;
00091        TabPrinter* tabPrinter;
00092        TabCheckDoc* tabDocChecker;
00093        CMSPrefs* tabColorManagement;
00094        TabPDFOptions* tabPDF;
00095        DocumentItemAttributes* tabDefaultItemAttributes;
00096        TOCIndexPrefs* tabDefaultTOCIndexPrefs;
00097        TabExternalToolsWidget* tabExtTools;
00098        TabKeyboardShortcutsWidget* tabKeyboardShortcuts;
00099        TabScrapbook* tabScrapbook;
00100        TabDocument* tabDocument;
00101        TabMiscellaneous* tabMiscellaneous;
00102        PluginManagerPrefsGui* pluginManagerPrefsGui;
00103 
00104        double unitRatio;
00105        int docUnitIndex;
00106        ScribusMainWindow *ap;
00107        PrefsManager* prefsManager;
00108 
00111        void addPlugins();
00112 
00114        void restoreDefaults();
00116        void setupGui();
00117        void enableSignals(bool);
00118 
00119 protected slots:
00121        virtual void showWidgetInStack(QWidget *widgetToShow);
00122        void setActionHistoryLength();
00123        virtual void applyChangesButton_clicked();
00124        virtual void backToDefaults_clicked();
00125 };
00126 
00127 #endif // PREFS_H