2007-12-01 10:47:15 +00:00
|
|
|
/*
|
2016-05-13 17:40:36 +00:00
|
|
|
Copyright 2006-2016 The QElectroTech Team
|
2007-12-01 10:47:15 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech 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.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2007-11-18 00:22:19 +00:00
|
|
|
#ifndef CONFIG_PAGES_H
|
|
|
|
#define CONFIG_PAGES_H
|
2015-03-02 20:14:56 +00:00
|
|
|
#include <QtWidgets>
|
2012-06-29 05:21:34 +00:00
|
|
|
#include "configpage.h"
|
2016-05-17 19:19:11 +00:00
|
|
|
#include "projectpropertiesdialog.h"
|
|
|
|
#include "titleblockpropertieswidget.h"
|
2008-08-14 22:51:08 +00:00
|
|
|
class BorderPropertiesWidget;
|
2008-07-30 12:44:57 +00:00
|
|
|
class ConductorPropertiesWidget;
|
2010-12-20 02:45:36 +00:00
|
|
|
class TitleBlockPropertiesWidget;
|
2009-08-09 12:51:02 +00:00
|
|
|
class ExportPropertiesWidget;
|
2014-01-18 19:04:39 +00:00
|
|
|
class ReportPropertieWidget;
|
2014-04-11 09:51:21 +00:00
|
|
|
class XRefPropertiesWidget;
|
2014-09-20 20:04:02 +00:00
|
|
|
class QETProject;
|
2016-05-13 15:00:22 +00:00
|
|
|
class TitleBlockProperties;
|
2007-11-18 00:22:19 +00:00
|
|
|
|
|
|
|
/**
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to define the properties of new
|
|
|
|
diagrams to come.
|
2007-11-18 00:22:19 +00:00
|
|
|
*/
|
|
|
|
class NewDiagramPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2007-11-18 00:22:19 +00:00
|
|
|
public:
|
2016-05-13 15:00:22 +00:00
|
|
|
NewDiagramPage(QETProject *project = 0, QWidget * = 0, ProjectPropertiesDialog *teste = NULL);
|
2007-11-18 00:22:19 +00:00
|
|
|
virtual ~NewDiagramPage();
|
|
|
|
private:
|
|
|
|
NewDiagramPage(const NewDiagramPage &);
|
2016-05-13 15:00:22 +00:00
|
|
|
public slots:
|
|
|
|
void changeToAutoFolioTab();
|
|
|
|
void setFolioAutonum(QString);
|
|
|
|
void saveCurrentTbp();
|
|
|
|
void loadSavedTbp();
|
|
|
|
|
2007-11-18 00:22:19 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2007-11-18 00:22:19 +00:00
|
|
|
public:
|
|
|
|
void applyConf();
|
|
|
|
QString title() const;
|
|
|
|
QIcon icon() const;
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2014-01-18 19:04:39 +00:00
|
|
|
private:
|
2016-05-13 15:00:22 +00:00
|
|
|
ProjectPropertiesDialog *ppd_;
|
2014-09-20 20:04:02 +00:00
|
|
|
QETProject *m_project; ///< Project to edit propertie
|
|
|
|
BorderPropertiesWidget *bpw; ///< Widget to edit default diagram dimensions
|
|
|
|
TitleBlockPropertiesWidget *ipw; ///< Widget to edit default title block properties
|
|
|
|
ConductorPropertiesWidget *cpw; ///< Widget to edit default conductor properties
|
|
|
|
ReportPropertieWidget *rpw; ///< Widget to edit default report label
|
|
|
|
XRefPropertiesWidget *xrefpw; ///< Widget to edit default xref properties
|
2016-05-13 15:00:22 +00:00
|
|
|
TitleBlockProperties savedTbp; ///< Used to save current TBP and retrieve later
|
2014-04-11 09:51:21 +00:00
|
|
|
|
2007-11-18 00:22:19 +00:00
|
|
|
};
|
2009-04-03 19:30:25 +00:00
|
|
|
|
|
|
|
/**
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to specify various options,most of
|
|
|
|
them applying to the whole application.
|
2009-04-03 19:30:25 +00:00
|
|
|
*/
|
|
|
|
class GeneralConfigurationPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2009-04-03 19:30:25 +00:00
|
|
|
public:
|
|
|
|
GeneralConfigurationPage(QWidget * = 0);
|
|
|
|
virtual ~GeneralConfigurationPage();
|
|
|
|
private:
|
|
|
|
GeneralConfigurationPage(const GeneralConfigurationPage &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-04-03 19:30:25 +00:00
|
|
|
public:
|
|
|
|
void applyConf();
|
|
|
|
QString title() const;
|
|
|
|
QIcon icon() const;
|
2014-01-21 19:23:44 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void fillLang(QSettings &);
|
2009-04-03 19:30:25 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2014-01-21 19:23:44 +00:00
|
|
|
private:
|
2009-04-03 19:30:25 +00:00
|
|
|
QLabel *title_label_;
|
|
|
|
QFrame *horiz_line_;
|
2009-05-24 17:46:44 +00:00
|
|
|
QGroupBox *appearance_;
|
|
|
|
QCheckBox *use_system_colors_;
|
2014-08-29 02:33:38 +00:00
|
|
|
QCheckBox *use_trackpad_;
|
2016-08-04 09:54:43 +00:00
|
|
|
QCheckBox *save_label_paste_;
|
2016-08-19 14:55:28 +00:00
|
|
|
QCheckBox *folio_panel_;
|
2016-09-04 15:19:36 +00:00
|
|
|
QCheckBox *terminal_exportlist_;
|
2009-04-03 19:30:25 +00:00
|
|
|
QGroupBox *projects_view_mode_;
|
|
|
|
QRadioButton *windowed_mode_;
|
|
|
|
QRadioButton *tabbed_mode_;
|
2015-03-29 12:15:25 +00:00
|
|
|
QCheckBox *m_zoom_out_beyond_folio;
|
2009-04-03 19:30:25 +00:00
|
|
|
QLabel *warning_view_mode_;
|
|
|
|
QGroupBox *elements_management_;
|
2012-04-29 20:29:40 +00:00
|
|
|
QCheckBox *highlight_integrated_elements_;
|
2010-02-14 16:28:45 +00:00
|
|
|
QLabel *default_element_infos_label_;
|
|
|
|
QTextEdit *default_element_infos_textfield_;
|
2014-01-21 19:23:44 +00:00
|
|
|
QGroupBox *lang_group_box;
|
|
|
|
QComboBox *lang_combo_box;
|
|
|
|
QLabel *lang_label;
|
2009-04-03 19:30:25 +00:00
|
|
|
};
|
2009-08-09 12:51:02 +00:00
|
|
|
|
|
|
|
/**
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to set default export options.
|
2009-08-09 12:51:02 +00:00
|
|
|
*/
|
|
|
|
class ExportConfigPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
|
|
|
ExportConfigPage(QWidget * = 0);
|
|
|
|
virtual ~ExportConfigPage();
|
|
|
|
private:
|
|
|
|
ExportConfigPage(const ExportConfigPage &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
|
|
|
void applyConf();
|
|
|
|
QString title() const;
|
|
|
|
QIcon icon() const;
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
|
|
|
ExportPropertiesWidget *epw;
|
|
|
|
};
|
2009-11-22 16:12:22 +00:00
|
|
|
|
|
|
|
/**
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to set default printing options.
|
2009-11-22 16:12:22 +00:00
|
|
|
*/
|
|
|
|
class PrintConfigPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
|
|
|
PrintConfigPage(QWidget * = 0);
|
|
|
|
virtual ~PrintConfigPage();
|
|
|
|
private:
|
|
|
|
PrintConfigPage(const PrintConfigPage &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
|
|
|
void applyConf();
|
|
|
|
QString title() const;
|
|
|
|
QIcon icon() const;
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
|
|
|
ExportPropertiesWidget *epw;
|
|
|
|
};
|
2007-11-18 00:22:19 +00:00
|
|
|
#endif
|