QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
addtabledialog.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef ADDTABLEDIALOG_H
19#define ADDTABLEDIALOG_H
20
21#include "../../qetapp.h"
22
23#include <QDialog>
24
25namespace Ui {
26class AddTableDialog;
27}
28
37class AddTableDialog : public QDialog
38{
39 Q_OBJECT
40
41 public:
42 explicit AddTableDialog(QWidget *content_widget, QWidget *parent = nullptr);
44
45 void setQueryWidget(QWidget *widget);
46 bool adjustTableToFolio() const;
47 bool addNewTableToNewDiagram() const;
48
49 QString tableName() const;
50
51 QMargins headerMargins() const;
52 Qt::Alignment headerAlignment() const;
53 QFont headerFont() const;
54
55 QMargins tableMargins() const;
56 Qt::Alignment tableAlignment() const;
57 QFont tableFont() const;
58 QWidget *contentWidget() const;
59
60 private slots:
65 void saveConfig();
66 void loadConfig();
67 void fillSavedQuery();
68
69 private:
70 Ui::AddTableDialog *ui;
71
72 QWidget *m_content_widget = nullptr;
73
74 QMargins m_header_margins = QMargins(5,5,10,5),
75 m_table_margins = QMargins(5,5,10,5);
76
79
80 QString m_identifier;
81
82};
83
84#endif // ADDTABLEDIALOG_H
The AddTableDialog class Provide a dialog used to edit the properties of table before adding to a dia...
Definition addtabledialog.h:38
bool addNewTableToNewDiagram() const
AddTableDialog::addNewTableToNewDiagram.
Definition addtabledialog.cpp:79
QMargins headerMargins() const
AddTableDialog::headerMargins.
Definition addtabledialog.cpp:97
bool adjustTableToFolio() const
AddTableDialog::adjustTableToFolio.
Definition addtabledialog.cpp:70
void on_m_table_margins_pb_clicked()
Definition addtabledialog.cpp:195
QFont m_header_font
Definition addtabledialog.h:77
Qt::Alignment headerAlignment() const
AddTableDialog::headerAlignment.
Definition addtabledialog.cpp:106
QFont headerFont() const
AddTableDialog::headerFont.
Definition addtabledialog.cpp:122
QFont tableFont() const
AddTableDialog::tableFont.
Definition addtabledialog.cpp:156
void on_m_table_font_pb_clicked()
Definition addtabledialog.cpp:177
Qt::Alignment tableAlignment() const
AddTableDialog::tableAlignment.
Definition addtabledialog.cpp:140
Ui::AddTableDialog * ui
Definition addtabledialog.h:70
QString m_identifier
Definition addtabledialog.h:80
~AddTableDialog()
AddTableDialog::~AddNomenclatureDialog.
Definition addtabledialog.cpp:52
void fillSavedQuery()
Definition addtabledialog.cpp:298
QMargins tableMargins() const
AddTableDialog::tableMargins.
Definition addtabledialog.cpp:131
QWidget * contentWidget() const
Definition addtabledialog.cpp:161
void setQueryWidget(QWidget *widget)
AddTableDialog::setQueryWidget Not implemented yet.
Definition addtabledialog.cpp:62
QMargins m_header_margins
Definition addtabledialog.h:74
void on_m_header_font_pb_clicked()
Definition addtabledialog.cpp:166
void loadConfig()
Definition addtabledialog.cpp:243
QString tableName() const
AddTableDialog::tableName.
Definition addtabledialog.cpp:88
QMargins m_table_margins
Definition addtabledialog.h:75
void on_m_edit_header_margins_pb_clicked()
Definition addtabledialog.cpp:187
QWidget * m_content_widget
Definition addtabledialog.h:72
QFont m_table_font
Definition addtabledialog.h:78
void saveConfig()
Definition addtabledialog.cpp:203
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
Definition qetapp.cpp:1160
Definition autonumberingdockwidget.h:26