7 #ifndef PREFERENCESDIALOG_H
8 #define PREFERENCESDIALOG_H
11 #include <QListWidgetItem>
13 #include <QStackedWidget>
15 #include "scribusapi.h"
16 #include "prefsstructs.h"
17 #include "ui_preferencesdialogbase.h"
19 #include "ui/prefs_colormanagement.h"
20 #include "ui/prefs_display.h"
21 #include "ui/prefs_documentinformation.h"
22 #include "ui/prefs_documentitemattributes.h"
23 #include "ui/prefs_documentsections.h"
24 #include "ui/prefs_documentsetup.h"
25 #include "ui/prefs_externaltools.h"
26 #include "ui/prefs_fonts.h"
27 #include "ui/prefs_guides.h"
28 #include "ui/prefs_hyphenator.h"
29 #include "ui/prefs_imagecache.h"
30 #include "ui/prefs_itemtools.h"
31 #include "ui/prefs_keyboardshortcuts.h"
32 #include "ui/prefs_miscellaneous.h"
33 #include "ui/prefs_operatortools.h"
34 #include "ui/prefs_pagesizes.h"
35 #include "ui/prefs_paths.h"
36 #include "ui/prefs_pdfexport.h"
37 #include "ui/prefs_plugins.h"
38 #include "ui/prefs_preflightverifier.h"
39 #include "ui/prefs_printer.h"
40 #include "ui/prefs_scrapbook.h"
41 #include "ui/prefs_spelling.h"
42 #include "ui/prefs_tableofcontents.h"
43 #include "ui/prefs_typography.h"
44 #include "ui/prefs_userinterface.h"
54 class SCRIBUS_API PreferencesDialog :
public QDialog, Ui::PreferencesDialog
62 virtual void changeEvent(QEvent *e);
64 void getResizeDocumentPages(
bool &resizePages,
bool &resizeMasterPages,
bool &resizePageMargins,
bool &resizeMasterPageMargins);
68 virtual void accept();
69 void itemSelected(QListWidgetItem* ic);
70 void newItemSelected();
71 void restoreDefaults();
73 void saveGuiToPrefs();
74 void setNewItemSelected(
const QString &s);
75 void changeUnits(
int u);
78 virtual void languageChange();
79 void applyButtonClicked();
83 int addItem(QString name, QPixmap icon, QWidget *tab);
84 void setupListWidget();
86 void initPreferenceValues();
91 Prefs_ColorManagement *prefs_ColorManagement;
93 Prefs_DocumentInformation *prefs_DocumentInformation;
95 Prefs_DocumentSections *prefs_DocumentSections;
97 Prefs_ExternalTools *prefs_ExternalTools;
99 Prefs_Guides *prefs_Guides;
101 Prefs_ImageCache *prefs_ImageCache;
103 Prefs_KeyboardShortcuts *prefs_KeyboardShortcuts;
105 Prefs_OperatorTools *prefs_OperatorTools;
107 Prefs_PageSizes *prefs_PageSizes;
109 Prefs_Plugins *prefs_Plugins;
111 Prefs_Printer *prefs_Printer;
113 Prefs_Spelling *prefs_Spelling;
115 Prefs_Typography *prefs_Typography;
119 QMap<QListWidgetItem*, int> stackWidgetMap;
Definition: prefsstructs.h:453
Definition: prefs_paths.h:17
Definition: prefs_display.h:17
Definition: prefs_documentitemattributes.h:16
Definition: prefs_userinterface.h:21
Definition: prefs_hyphenator.h:18
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: prefs_pdfexport.h:19
Definition: prefs_tableofcontents.h:22
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_scrapbook.h:17
Definition: prefs_documentsetup.h:18
Definition: prefs_preflightverifier.h:19
Definition: prefs_miscellaneous.h:17
Manage Scribus preferences here, and here alone Start to move the preferences out of scribus...
Definition: prefsmanager.h:43
Definition: prefs_fonts.h:21