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 "scribus.h" 00012 #include "prefsdialogbase.h" 00013 00014 class TabTypograpy; 00015 class HySettings; 00016 class CMSPrefs; 00017 class TabGuides; 00018 class TabTools; 00019 class TabCheckDoc; 00020 class TabPDFOptions; 00021 class FontPrefs; 00022 class DocumentItemAttributes; 00023 class TOCIndexPrefs; 00024 class MarginWidget; 00025 class PrefsManager; 00026 class PageLayouts; 00027 class TabExternalToolsWidget; 00028 class TabKeyboardShortcutsWidget; 00029 class PluginManagerPrefsGui; 00030 class TabGeneral; 00031 class TabDisplay; 00032 class TabDocument; 00033 class TabMiscellaneous; 00034 class TabScrapbook; 00035 class TabPrinter; 00036 00037 00045 class SCRIBUS_API Preferences : public PrefsDialogBase 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 00056 Preferences( QWidget* parent); 00057 ~Preferences(){}; 00058 00059 void updatePreferences(); 00060 00061 public slots: 00063 void accept(); 00064 00069 void setDS(int layout); 00074 void unitChange(); 00075 00076 void switchCMS(bool enable); 00077 00078 protected: 00079 TabGeneral* tabGeneral; 00080 TabGuides* tabGuides; 00081 TabTypograpy* tabTypo; 00082 TabDisplay* tabView; 00083 TabTools* tabTools; 00084 HySettings* tabHyphenator; 00085 FontPrefs* tabFonts; 00086 TabPrinter* tabPrinter; 00087 TabCheckDoc* tabDocChecker; 00088 CMSPrefs* tabColorManagement; 00089 TabPDFOptions* tabPDF; 00090 DocumentItemAttributes* tabDefaultItemAttributes; 00091 TOCIndexPrefs* tabDefaultTOCIndexPrefs; 00092 TabExternalToolsWidget* tabExtTools; 00093 TabKeyboardShortcutsWidget* tabKeyboardShortcuts; 00094 TabScrapbook* tabScrapbook; 00095 TabDocument* tabDocument; 00096 TabMiscellaneous* tabMiscellaneous; 00097 PluginManagerPrefsGui* pluginManagerPrefsGui; 00098 00099 double unitRatio; 00100 int docUnitIndex; 00101 ScribusMainWindow *ap; 00102 PrefsManager* prefsManager; 00103 00106 void addPlugins(); 00107 00109 void restoreDefaults(); 00111 void setupGui(); 00112 void enableSignals(bool); 00113 00114 protected slots: 00116 virtual void showWidgetInStack(QWidget *widgetToShow); 00117 void setActionHistoryLength(); 00118 virtual void applyChangesButton_clicked(); 00119 virtual void backToDefaults_clicked(); 00120 }; 00121 00122 #endif // PREFS_H
