|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef PROJECTDATABASE_H
19 #define PROJECTDATABASE_H
22 #include <QSqlDatabase>
25 #include <QFileDialog>
46 const QString &connection_name,
48 QObject *parent =
nullptr);
54 QSqlQuery
newQuery(
const QString &query = QString());
66 const QString &name = QString());
90 QWidget *parent =
nullptr,
91 const QString &caption = QString(),
92 const QString &dir = QString());
95 #endif // PROJECTDATABASE_H
@ Terminale
Definition: element.h:57
QETProject * project() const
projectDataBase::project
Definition: projectdatabase.cpp:74
QSqlQuery newQuery(const QString &query=QString())
projectDataBase::newQuery
Definition: projectdatabase.cpp:83
virtual ~projectDataBase() override
projectDataBase::~projectDataBase Destructor
Definition: projectdatabase.cpp:52
bool createDataBase(const QString &connection_name=QString(), const QString &name=QString())
projectDataBase::createDataBase Create the data base
Definition: projectdatabase.cpp:194
DiagramContext titleblockInformation() const
BorderTitleBlock::titleblockInformation.
Definition: bordertitleblock.cpp:99
Definition: elementprovider.h:37
DiagramContext elementInformations() const
Definition: element.h:97
Diagram * diagram() const
Definition: qetgraphicsitem.cpp:40
void populateDiagramInfoTable()
Definition: projectdatabase.cpp:426
QUuid uuid() const
Element::uuid.
Definition: element.h:250
QPointer< QETProject > m_project
Definition: projectdatabase.h:78
QString linkTypeToString() const
Definition: element.cpp:1520
QList< Element * > find(const int filter) const
ElementProvider::find Search and return the asked element corresponding with the given filter.
Definition: elementprovider.cpp:96
QString actualLabel()
Element::actualLabel Always return the current label to be displayed. This function is usefull when l...
Definition: element.cpp:1738
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
Definition: qetapp.cpp:366
QSqlQuery m_insert_elements_query
Definition: projectdatabase.h:80
@ Simple
Definition: element.h:51
QSqlQuery m_insert_element_info_query
Definition: projectdatabase.h:81
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
QSqlDatabase m_data_base
Definition: projectdatabase.h:79
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
DiagramContext kindInformations() const
Definition: element.h:100
void addElement(Element *element)
projectDataBase::addElement
Definition: projectdatabase.cpp:91
QSqlQuery m_remove_diagram_query
Definition: projectdatabase.h:85
static void exportDb(projectDataBase *db, QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString())
projectDataBase::exportDb
Definition: projectdatabase.cpp:539
QSqlQuery m_update_element_query
Definition: projectdatabase.h:83
void populateDiagramTable()
Definition: projectdatabase.cpp:350
@ Master
Definition: element.h:55
DiagramPosition convertPosition(const QPointF &)
Diagram::convertPosition.
Definition: diagram.cpp:2223
static QStringList diagramInfoKeys()
QETApp::diagramInfoKeys.
Definition: qetapp.cpp:480
QString filePath()
Definition: qetproject.cpp:250
void elementInfoChanged(Element *element)
projectDataBase::elementInfoChanged
Definition: projectdatabase.cpp:136
void populateElementInfoTable()
projectDataBase::populateElementsTable Populate the elements table
Definition: projectdatabase.cpp:397
void removeElement(Element *element)
projectDataBase::removeElement
Definition: projectdatabase.cpp:122
void createSummaryView()
projectDataBase::createSummaryView
Definition: projectdatabase.cpp:330
QString toString()
Definition: diagramposition.cpp:59
void updateDB()
projectDataBase::updateDB Up to date the content of the data base. Emit the signal dataBaseUpdated
Definition: projectdatabase.cpp:61
Definition: qetproject.h:51
projectDataBase(QETProject *project, QObject *parent=nullptr)
projectDataBase::projectDataBase Default constructor
Definition: projectdatabase.cpp:34
void populateElementTable()
projectDataBase::populateElementTable Populate the element table
Definition: projectdatabase.cpp:369
QSqlQuery m_insert_diagram_info_query
Definition: projectdatabase.h:86
QUuid uuid() const
QETProject::uuid.
Definition: qetproject.cpp:132
QUuid uuid()
Diagram::uuid.
Definition: diagram.cpp:519
static QHash< QString, QString > elementInfoToString(Element *elmt)
projectDataBase::elementInfoToString
Definition: projectdatabase.cpp:516
void createElementNomenclatureView()
projectDataBase::createElementNomenclatureView
Definition: projectdatabase.cpp:291
void removeDiagram(Diagram *diagram)
Definition: projectdatabase.cpp:179
The projectDataBase class This class wrap a sqlite data base where you can find several thing about t...
Definition: projectdatabase.h:39
void prepareQuery()
Definition: projectdatabase.cpp:453
void addDiagram(Diagram *diagram)
Definition: projectdatabase.cpp:150
QSqlQuery m_insert_diagram_query
Definition: projectdatabase.h:84
QIcon tr
Definition: qeticons.cpp:206
QSqlQuery m_remove_element_query
Definition: projectdatabase.h:82