Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/dialogs/qucssettingsdialog.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                            qucssettingsdialog.h
00003                           ----------------------
00004     begin                : Sun May 23 2004
00005     copyright            : (C) 2003 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef QUCSSETTINGSDIALOG_H
00019 #define QUCSSETTINGSDIALOG_H
00020 
00021 #include "qucs.h"
00022 
00023 #include <QDialog>
00024 #include <QFont>
00025 #include <QRegExp>
00026 #include <QVBoxLayout>
00027 
00028 class QLineEdit;
00029 class QCheckBox;
00030 class QVBoxLayout;
00031 class QPushButton;
00032 class QComboBox;
00033 class QIntValidator;
00034 class QRegExpValidator;
00035 class QStandardItemModel;
00036 class QTableWidget;
00037 
00038 class QucsSettingsDialog : public QDialog
00039 {
00040     Q_OBJECT
00041 public:
00042     QucsSettingsDialog(QucsApp *parent=0, const char *name=0);
00043     ~QucsSettingsDialog();
00044 
00045 private slots:
00046     void slotOK();
00047     void slotApply();
00048     void slotFontDialog();
00049     void slotBGColorDialog();
00050     void slotDefaultValues();
00051     void slotAddFileType();
00052     void slotRemoveFileType();
00053     void slotColorComment();
00054     void slotColorString();
00055     void slotColorInteger();
00056     void slotColorReal();
00057     void slotColorCharacter();
00058     void slotColorDataType();
00059     void slotColorAttribute();
00060     void slotColorDirective();
00061     void slotColorTask();
00062     void slotTableClicked(int,int);
00063     void slotPathTableClicked(int,int);
00064 
00065     void slotHomeDirBrowse();
00066     void slotAdmsXmlDirBrowse();
00067     void slotAscoDirBrowse();
00068     void slotOctaveDirBrowse();
00069 
00070     void slotAddPath();
00071     void slotAddPathWithSubFolders();
00072     void slotRemovePath();
00073 
00074 
00075 public:
00076     QucsApp *App;
00077 
00078     QFont Font;
00079     QCheckBox *checkWiring, *checkLoadFromFutureVersions,
00080               *checkAntiAliasing, *checkTextAntiAliasing;
00081     QComboBox *LanguageCombo;
00082     QPushButton *FontButton, *BGColorButton;
00083     QLineEdit *LargeFontSizeEdit, *undoNumEdit, *editorEdit, *Input_Suffix,
00084               *Input_Program, *homeEdit, *admsXmlEdit, *ascoEdit, *octaveEdit;
00085     QTableWidget *fileTypesTableWidget, *pathsTableWidget;
00086     QStandardItemModel *model;
00087     QPushButton *ColorComment, *ColorString, *ColorInteger,
00088                 *ColorReal, *ColorCharacter, *ColorDataType, *ColorAttribute,
00089                 *ColorDirective, *ColorTask;
00090 
00091     QVBoxLayout *all;
00092     QIntValidator *val50;
00093     QIntValidator *val200;
00094     QRegExp Expr;
00095     QRegExpValidator *Validator;
00096 
00097 private:
00098     QStringList currentPaths;
00099 
00100 private:
00101     void makePathTable();
00102 
00103 };
00104 
00105 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines