QElectroTech  0.8-dev
qetgraphicstablefactory.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 QETGRAPHICSTABLEFACTORY_H
19 #define QETGRAPHICSTABLEFACTORY_H
20 
21 class Diagram;
23 class AddTableDialog;
24 
29 {
30  public:
32 
33  static void createAndAddNomenclature(Diagram *diagram);
34  static void createAndAddSummary(Diagram *diagram);
35  private:
36  static void create(Diagram *diagram, AddTableDialog *dialog);
38  Diagram *diagram,
39  AddTableDialog *dialog,
40  QetGraphicsTableItem *previous_table = nullptr);
41 };
42 
43 #endif // QETGRAPHICSTABLEFACTORY_H
addtabledialog.h
AddTableDialog::headerMargins
QMargins headerMargins() const
AddTableDialog::headerMargins.
Definition: addtabledialog.cpp:92
AddTableDialog
The AddTableDialog class Provide a dialog used to edit the properties of table befor adding to a diag...
Definition: addtabledialog.h:38
AddTableDialog::headerAlignment
Qt::Alignment headerAlignment() const
AddTableDialog::headerAlignment.
Definition: addtabledialog.cpp:100
QetGraphicsTableFactory::createAndAddSummary
static void createAndAddSummary(Diagram *diagram)
QetGraphicsTableFactory::createAndAddSummary Open a dialog for ask user the config of the table,...
Definition: qetgraphicstablefactory.cpp:61
AddTableDialog::tableFont
QFont tableFont() const
AddTableDialog::tableFont.
Definition: addtabledialog.cpp:148
QetGraphicsTableItem
The QetGraphicsTableItem class This item display a table destined to represent the content of a QAbst...
Definition: qetgraphicstableitem.h:43
Diagram::addItem
virtual void addItem(QGraphicsItem *item)
Diagram::addItem Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item) Do some specific ope...
Definition: diagram.cpp:1550
QetGraphicsTableFactory
The QetGraphicsTableFactory class.
Definition: qetgraphicstablefactory.h:29
ProjectDBModel
The ProjectDBModel class This model is intended to be use with the class projectDataBase and is desig...
Definition: projectdbmodel.h:44
summaryquerywidget.h
ElementQueryWidget
The ElementQueryWidget class A widget use to edit a sql query for get element information This widget...
Definition: elementquerywidget.h:36
elementquerywidget.h
Diagram::project
QETProject * project() const
Diagram::project.
Definition: diagram.cpp:2326
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
QetGraphicsTableFactory::createAndAddNomenclature
static void createAndAddNomenclature(Diagram *diagram)
QetGraphicsTableFactory::createAndAddNomenclature Open a dialog for ask user the config of the table,...
Definition: qetgraphicstablefactory.cpp:42
AddTableDialog::tableAlignment
Qt::Alignment tableAlignment() const
AddTableDialog::tableAlignment.
Definition: addtabledialog.cpp:132
QetGraphicsTableItem::adjustTableToFolio
static void adjustTableToFolio(QetGraphicsTableItem *table, QMargins margins=QMargins(20, 20, 20, 0))
QetGraphicsTableItem::adjustTableToFolio Adjust the table to fit at best the folio.
Definition: qetgraphicstableitem.cpp:42
AddTableDialog::headerFont
QFont headerFont() const
AddTableDialog::headerFont.
Definition: addtabledialog.cpp:116
SummaryQueryWidget
Definition: summaryquerywidget.h:30
QETUtils::marginsToString
QString marginsToString(const QMargins &margins)
QETUtils::marginsToString.
Definition: qetutils.cpp:27
QetGraphicsTableFactory::newTable
static QetGraphicsTableItem * newTable(Diagram *diagram, AddTableDialog *dialog, QetGraphicsTableItem *previous_table=nullptr)
QetGraphicsTableFactory::newTable Create a new table .
Definition: qetgraphicstablefactory.cpp:121
QetGraphicsTableFactory::QetGraphicsTableFactory
QetGraphicsTableFactory()
Definition: qetgraphicstablefactory.cpp:31
qetgraphicsheaderitem.h
qetgraphicstableitem.h
qetutils.h
AddTableDialog::contentWidget
QWidget * contentWidget() const
Definition: addtabledialog.cpp:152
AddTableDialog::tableName
QString tableName() const
AddTableDialog::tableName.
Definition: addtabledialog.cpp:84
QetGraphicsTableFactory::create
static void create(Diagram *diagram, AddTableDialog *dialog)
Definition: qetgraphicstablefactory.cpp:74
QET::Horizontal
@ Horizontal
Horizontal segment.
Definition: qet.h:89
projectdbmodel.h
qetgraphicstablefactory.h
AddTableDialog::addNewTableToNewDiagram
bool addNewTableToNewDiagram() const
AddTableDialog::addNewTableToNewDiagram.
Definition: addtabledialog.cpp:76
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
diagram.h
AddTableDialog::adjustTableToFolio
bool adjustTableToFolio() const
AddTableDialog::adjustTableToFolio.
Definition: addtabledialog.cpp:68