Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qucssettingsdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qucssettingsdialog.h
3  ----------------------
4  begin : Sun May 23 2004
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QUCSSETTINGSDIALOG_H
19 #define QUCSSETTINGSDIALOG_H
20 
21 #include "qucs.h"
22 
23 #include <QDialog>
24 #include <QFont>
25 #include <QRegExp>
26 #include <QVBoxLayout>
27 
28 class QListView;
29 //class Q3ListViewItem;
30 class QLineEdit;
31 class QCheckBox;
32 class QVBoxLayout;
33 class QPushButton;
34 class QComboBox;
35 class QIntValidator;
36 class QRegExpValidator;
37 class QTableView;
38 class QStandardItemModel;
39 
40 class QucsSettingsDialog : public QDialog
41 {
42  Q_OBJECT
43 public:
44  QucsSettingsDialog(QucsApp *parent=0, const char *name=0);
46 
47 private slots:
48  void slotOK();
49  void slotApply();
50  void slotFontDialog();
51  void slotBGColorDialog();
52  void slotDefaultValues();
53  void slotAddFileType();
54  void slotRemoveFileType();
55  void slotColorComment();
56  void slotColorString();
57  void slotColorInteger();
58  void slotColorReal();
59  void slotColorCharacter();
60  void slotColorDataType();
61  void slotColorAttribute();
62  void slotColorDirective();
63  void slotColorTask();
64  void slotTableClicked(int,int);
65  void slotPathTableClicked(int,int);
66 
67  void slotHomeDirBrowse();
68  void slotAdmsXmlDirBrowse();
69  void slotAscoDirBrowse();
70  void slotOctaveDirBrowse();
71 
72  void slotAddPath();
74  void slotRemovePath();
75 
76 
77 public:
79 
80  QFont Font;
82  QComboBox *LanguageCombo;
83  QPushButton *FontButton, *BGColorButton;
87  QStandardItemModel *model;
91 
92  QVBoxLayout *all;
93  QIntValidator *val200;
94  QRegExp Expr;
95  QRegExpValidator *Validator;
96 
97 private:
98  QStringList currentPaths;
99 
100 private:
101  void makePathTable();
102 
103 };
104 
105 #endif
QTableWidget * pathsTableWidget
QIntValidator * val200
QPushButton * ColorInteger
QPushButton * ColorTask
QucsSettingsDialog(QucsApp *parent=0, const char *name=0)
QPushButton * BGColorButton
QPushButton * ColorReal
QPushButton * ColorCharacter
QPushButton * ColorComment
void slotTableClicked(int, int)
QStandardItemModel * model
QPushButton * ColorAttribute
QPushButton * ColorDirective
QPushButton * ColorDataType
QRegExpValidator * Validator
QTableWidget * fileTypesTableWidget
void slotPathTableClicked(int, int)
QCheckBox * checkLoadFromFutureVersions
QPushButton * FontButton
Definition: qucs.h:61
QPushButton * ColorString