Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scripterprefsgui.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 SCRIPTERPREFSGUI_H
00008 #define SCRIPTERPREFSGUI_H
00009 
00010 #include "cmdvar.h"
00011 #include "qvariant.h"
00012 #include "prefspanel.h"
00013 
00014 class QVBoxLayout;
00015 class QHBoxLayout;
00016 class QGridLayout;
00017 class QSpacerItem;
00018 class QTabWidget;
00019 class QCheckBox;
00020 class QLabel;
00021 class QLineEdit;
00022 class QPushButton;
00023 class QToolButton;
00024 
00025 class PrefsPanel;
00026 
00027 
00030 class ScripterPrefsGui : public PrefsPanel
00031 {
00032        Q_OBJECT
00033 
00034        public:
00035               ScripterPrefsGui(QWidget* parent);
00036               ~ScripterPrefsGui();
00037 
00038        public slots:
00039               void apply();
00040 
00041        protected:
00042               QTabWidget* tabWidget;
00043               QWidget* startupTab;
00044               QWidget* consoleTab;
00045               QCheckBox* extensionScriptsChk;
00046               QLabel* startupScriptEditLabel;
00047               QLineEdit* startupScriptEdit;
00048 
00049               QGridLayout* ScripterPrefsGuiBaseLayout;
00050               QVBoxLayout* extLayout;
00051               QSpacerItem* extScriptSpacer;
00052               QHBoxLayout* startupScriptLayout;
00053 
00054               // console colors
00055               QLabel* errorLabel;
00056               QLabel* commentLabel;
00057               QLabel* keywordLabel;
00058               QLabel* signLabel;
00059               QLabel* numberLabel;
00060               QLabel* stringLabel;
00061               QLabel* textLabel;
00062               QPushButton* errorButton;
00063               QPushButton* commentButton;
00064               QPushButton* keywordButton;
00065               QPushButton* signButton;
00066               QPushButton* numberButton;
00067               QPushButton* stringButton;
00068               QPushButton* textButton;
00069               QToolButton* startupScriptChangeButton;
00070               QGridLayout* colorLayout;
00071 
00072               void setupSyntaxColors();
00073        protected slots:
00074               virtual void languageChange();
00078               virtual void setColor();
00079               virtual void changeStartupScript();
00080 };
00081 
00082 #endif