ConfigDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : ConfigDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00007     Description          : Preferences dialog
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
00027  *                                                                         *
00028  ***************************************************************************/
00029 #ifndef ConfigDialog_H
00030 #define ConfigDialog_H
00031 
00032 #include <QDialog>
00033 #include <QCheckBox>
00034 
00035 class QLineEdit;
00036 class QGroupBox;
00037 class QPushButton;
00038 class QTabWidget;
00039 class QStackedWidget;
00040 class QWidget;
00041 class QComboBox;
00042 class QSpinBox;
00043 class QLabel;
00044 class QRadioButton;
00045 class QListWidget;
00046 class ColorButton;
00047 class ColorBox;
00048 class DoubleSpinBox;
00049 
00051 class ConfigDialog : public QDialog
00052 {
00053     Q_OBJECT
00054 
00055 public:
00057 
00061     ConfigDialog( QWidget* parent, Qt::WFlags fl = 0 );
00062     void setColumnSeparator(const QString& sep);
00063 
00064 private slots:
00065     virtual void languageChange();
00066     void insertLanguagesList();
00067 
00068     void accept();
00069     void apply();
00070 
00071     void setCurrentPage(int index);
00072 
00073     //table fonts
00074     void pickTextFont();
00075     void pickHeaderFont();
00076 
00077     //graph fonts
00078     void pickAxesFont();
00079     void pickNumbersFont();
00080     void pickLegendFont();
00081     void pickTitleFont();
00082 
00083     void showFrameWidth(bool ok);
00084 
00085     //application
00086     void pickApplicationFont();
00087 
00088     //2D curves
00089     int curveStyle();
00090     void pick3DTitleFont();
00091     void pick3DNumbersFont();
00092     void pick3DAxesFont();
00093 
00094     //Fitting
00095     void showPointsBox(bool);
00096 
00097     void switchToLanguage(int param);
00098 
00099     void chooseTranslationsFolder();
00100     void chooseHelpFolder();
00101 #ifdef SCRIPTING_PYTHON
00102     void choosePythonConfigFolder();
00103 #endif
00104 
00105 private:
00106     void initPlotsPage();
00107     void initAppPage();
00108     void initCurvesPage();
00109     void initPlots3DPage();
00110     void initTablesPage();
00111     void initConfirmationsPage();
00112     void initFileLocationsPage();
00113     void initFittingPage();
00114 
00115     QFont textFont, headerFont, axesFont, numbersFont, legendFont, titleFont, appFont;
00116     QFont plot3DTitleFont, plot3DNumbersFont, plot3DAxesFont;
00117 
00118     QCheckBox *boxScaleLayersOnPrint, *boxPrintCropmarks, *linearFit2PointsBox;
00119     QTabWidget *plotsTabWidget, *appTabWidget;
00120     ColorButton *btnBackground3D, *btnMesh, *btnAxes, *btnLabels, *btnNumbers;
00121     ColorButton *btnFromColor, *btnToColor, *btnGrid;
00122     QPushButton *btnTitleFnt, *btnLabelsFnt, *btnNumFnt;
00123     ColorButton *buttonBackground, *buttonText, *buttonHeader;
00124     QPushButton *buttonOk, *buttonCancel, *buttonApply;
00125     QPushButton* buttonTextFont, *buttonHeaderFont;
00126     QStackedWidget * generalDialog;
00127     QWidget *appColors, *tables, *plotOptions, *plotTicks, *plotFonts, *confirm, *plotPrint;
00128     QWidget *application, *curves, *plots3D, *fitPage, *numericFormatPage;
00129     QPushButton* buttonAxesFont, *buttonNumbersFont, *buttonLegendFont, *buttonTitleFont, *fontsBtn;
00130     QCheckBox *boxSearchUpdates, *boxOrthogonal, *logBox, *plotLabelBox, *scaleErrorsBox;
00131     QCheckBox *boxTitle, *boxFrame, *boxPlots3D, *boxPlots2D, *boxTables, *boxNotes, *boxFolders;
00132     QCheckBox *boxSave, *boxBackbones, *boxAllAxes, *boxShowLegend, *boxSmoothMesh;
00133     QCheckBox *boxAutoscaling, *boxShowProjection, *boxMatrices, *boxScaleFonts, *boxResize;
00134     QComboBox *boxMajTicks, *boxMinTicks, *boxStyle, *boxCurveStyle, *boxSeparator, *boxLanguage, *boxDecimalSeparator;
00135     QComboBox *boxClipboardLocale;
00136     QLabel *lblClipboardSeparator;
00137     QSpinBox *boxMinutes, *boxLineWidth, *boxFrameWidth, *boxResolution, *boxMargin, *boxPrecision, *boxAppPrecision;
00138     QSpinBox *boxSymbolSize, *boxMinTicksLength, *boxMajTicksLength, *generatePointsBox;
00139     DoubleSpinBox *boxCurveLineWidth;
00140     ColorButton *btnWorkspace, *btnPanels, *btnPanelsText;
00141     QListWidget * itemsList;
00142     QLabel *labelFrameWidth, *lblLanguage, *lblWorkspace, *lblPanels, *lblPageHeader;
00143     QLabel *lblPanelsText, *lblFonts, *lblStyle, *lblDecimalSeparator, *lblAppPrecision;
00144     QGroupBox *groupBoxConfirm;
00145     QGroupBox *groupBoxTableFonts, *groupBoxTableCol;
00146     QLabel *lblSeparator, *lblTableBackground, *lblTextColor, *lblHeaderColor;
00147     QLabel *lblSymbSize, *lblAxesLineWidth, *lblCurveStyle, *lblResolution, *lblPrecision;
00148     QGroupBox *groupBox3DFonts, *groupBox3DCol;
00149     QLabel *lblMargin, *lblMajTicks, *lblMajTicksLength, *lblLineWidth, *lblMinTicks, *lblMinTicksLength, *lblPoints, *lblPeaksColor;
00150     QGroupBox *groupBoxFittingCurve, *groupBoxFitParameters;
00151     QRadioButton *samePointsBtn, *generatePointsBtn;
00152     QGroupBox *groupBoxMultiPeak;
00153     ColorBox *boxPeaksColor;
00154     QLabel *lblScriptingLanguage, *lblInitWindow;
00155     QComboBox *boxScriptingLanguage, *boxInitWindow;
00156     QCheckBox *boxAntialiasing, *boxAutoscale3DPlots, *boxTableComments, *boxThousandsSeparator;
00157     QCheckBox *boxPromptRenameTables, *boxBackupProject, *boxLabelsEditing;
00158     QWidget *fileLocationsPage;
00159     QLabel *lblTranslationsPath, *lblHelpPath, *lblUndoStackSize, *lblEndOfLine;
00160     QLineEdit *translationsPathLine, *helpPathLine;
00161     QSpinBox *undoStackSizeBox;
00162     QComboBox *boxEndLine;
00163 #ifdef SCRIPTING_PYTHON
00164     QLabel *lblPythonConfigDir;
00165     QLineEdit *pythonConfigDirLine;
00166 #endif
00167     QCheckBox *boxUpdateTableValues;
00168     QGroupBox *groupBackgroundOptions;
00169     QLabel *labelGraphFrameColor, *labelGraphFrameWidth;
00170     QLabel *labelGraphBkgColor, *labelGraphCanvasColor;
00171     QLabel *labelGraphBkgOpacity, *labelGraphCanvasOpacity;
00172     ColorButton *boxBackgroundColor, *boxCanvasColor, *boxBorderColor;
00173     QSpinBox *boxBackgroundTransparency, *boxCanvasTransparency, *boxBorderWidth;
00174     QCheckBox *completionBox, *lineNumbersBox;
00175 };
00176 
00177 #endif // CONFIGDIALOG_H

Generated on Fri Nov 7 03:36:51 2008 for QtiPlot by  doxygen 1.5.6