mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
119 lines
3.6 KiB
C++
119 lines
3.6 KiB
C++
/***************************************************************************
|
|
qucssettingsdialog.h
|
|
----------------------
|
|
begin : Sun May 23 2004
|
|
copyright : (C) 2003 by Michael Margraf
|
|
email : michael.margraf@alumni.tu-berlin.de
|
|
copyright : (C) 2016 by Qucs Team (see AUTHORS file)
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef QUCSSETTINGSDIALOG_H
|
|
#define QUCSSETTINGSDIALOG_H
|
|
|
|
#include "qucs.h"
|
|
|
|
#include <QDialog>
|
|
#include <QFont>
|
|
#include <QRegularExpression>
|
|
#include <QRegularExpressionValidator>
|
|
#include <QVBoxLayout>
|
|
|
|
class QLineEdit;
|
|
class QCheckBox;
|
|
class QVBoxLayout;
|
|
class QPushButton;
|
|
class QComboBox;
|
|
class QIntValidator;
|
|
class QRegExpValidator;
|
|
class QStandardItemModel;
|
|
class QTableWidget;
|
|
|
|
class QucsSettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QucsSettingsDialog(QucsApp *parent=0);
|
|
~QucsSettingsDialog();
|
|
|
|
private slots:
|
|
void slotOK();
|
|
void slotApply();
|
|
void slotFontDialog();
|
|
void slotAppFontDialog();
|
|
void slotTextFontDialog();
|
|
void slotBGColorDialog();
|
|
void slotDefaultValues();
|
|
void slotAddFileType();
|
|
void slotRemoveFileType();
|
|
void slotColorComment();
|
|
void slotColorString();
|
|
void slotColorInteger();
|
|
void slotColorReal();
|
|
void slotColorCharacter();
|
|
void slotColorDataType();
|
|
void slotColorAttribute();
|
|
void slotColorDirective();
|
|
void slotColorTask();
|
|
void slotTableClicked(int,int);
|
|
void slotPathTableClicked(int,int);
|
|
|
|
void slotHomeDirBrowse();
|
|
void slotAdmsXmlDirBrowse();
|
|
void slotAscoDirBrowse();
|
|
void slotOctaveDirBrowse();
|
|
void slotOpenVAFDirBrowse();
|
|
void slotRFLayoutDirBrowse();
|
|
|
|
void slotAddPath();
|
|
void slotAddPathWithSubFolders();
|
|
void slotRemovePath();
|
|
void slotPathSelectionChanged();
|
|
|
|
public:
|
|
QucsApp *App;
|
|
|
|
QFont Font;
|
|
QFont AppFont;
|
|
QFont TextFont;
|
|
QCheckBox *checkWiring, *checkLoadFromFutureVersions,
|
|
*checkAntiAliasing, *checkTextAntiAliasing,
|
|
*checkFullTraceNames;
|
|
QComboBox *LanguageCombo;
|
|
QComboBox *PanelIconsCombo, *CompIconsCombo;
|
|
QPushButton *FontButton, *AppFontButton, *TextFontButton, *BGColorButton;
|
|
QLineEdit *LargeFontSizeEdit, *undoNumEdit, *editorEdit, *Input_Suffix,
|
|
*Input_Program, *homeEdit, *admsXmlEdit, *ascoEdit, *octaveEdit,
|
|
*OpenVAFEdit, *RFLayoutEdit;
|
|
QTableWidget *fileTypesTableWidget, *pathsTableWidget;
|
|
QStandardItemModel *model;
|
|
QPushButton *ColorComment, *ColorString, *ColorInteger,
|
|
*ColorReal, *ColorCharacter, *ColorDataType, *ColorAttribute,
|
|
*ColorDirective, *ColorTask;
|
|
QPushButton *RemovePathButt;
|
|
|
|
QVBoxLayout *all;
|
|
QIntValidator *val50;
|
|
QIntValidator *val200;
|
|
QRegularExpression Expr;
|
|
QRegularExpressionValidator *Validator;
|
|
|
|
private:
|
|
QStringList currentPaths;
|
|
|
|
|
|
private:
|
|
void makePathTable();
|
|
|
|
};
|
|
|
|
#endif
|