18#ifndef PROJECTDATABASE_H
19#define PROJECTDATABASE_H
22#include <QSqlDatabase>
49 QSqlQuery
newQuery(
const QString &query = QString());
91#ifdef QET_EXPORT_PROJECT_DB
93 static sqlite3 *sqliteHandle(QSqlDatabase *db);
95 QWidget *parent =
nullptr,
96 const QString &caption = QString(),
97 const QString &dir = QString());
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition qetproject.h:62
The projectDataBase class This class wraps a sqlite data base where you can find several things about...
Definition projectdatabase.h:40
QSqlQuery m_diagram_info_order_changed
Definition projectdatabase.h:89
QSqlQuery newQuery(const QString &query=QString())
projectDataBase::newQuery
Definition projectdatabase.cpp:107
void populateDiagramInfoTable()
Definition projectdatabase.cpp:464
QSqlQuery m_update_diagram_info_query
Definition projectdatabase.h:87
QSqlQuery m_insert_diagram_query
Definition projectdatabase.h:84
void addElement(Element *element)
projectDataBase::addElement
Definition projectdatabase.cpp:115
QSqlQuery m_remove_diagram_query
Definition projectdatabase.h:85
void createSummaryView()
projectDataBase::createSummaryView
Definition projectdatabase.cpp:367
void bindDiagramInfoValues(QSqlQuery &query, Diagram *diagram)
Definition projectdatabase.cpp:574
void createElementNomenclatureView()
projectDataBase::createElementNomenclatureView
Definition projectdatabase.cpp:331
void populateElementTable()
projectDataBase::populateElementTable Populate the element table
Definition projectdatabase.cpp:406
void populateDiagramTable()
Definition projectdatabase.cpp:387
QSqlDatabase m_data_base
Definition projectdatabase.h:79
void addDiagram(Diagram *diagram)
Definition projectdatabase.cpp:190
void removeElement(Element *element)
projectDataBase::removeElement
Definition projectdatabase.cpp:146
QSqlQuery m_insert_elements_query
Definition projectdatabase.h:80
QSqlQuery m_remove_element_query
Definition projectdatabase.h:82
void elementInfoChanged(Element *element)
projectDataBase::elementInfoChanged
Definition projectdatabase.cpp:160
void diagramInfoChanged(Diagram *diagram)
Definition projectdatabase.cpp:228
void removeDiagram(Diagram *diagram)
Definition projectdatabase.cpp:218
QSqlQuery m_insert_element_info_query
Definition projectdatabase.h:81
static QHash< QString, QString > elementInfoToString(Element *elmt)
projectDataBase::elementInfoToString
Definition projectdatabase.cpp:558
QPointer< QETProject > m_project
Definition projectdatabase.h:78
void populateElementInfoTable()
projectDataBase::populateElementInfoTable Populate the element info table
Definition projectdatabase.cpp:435
QSqlQuery m_insert_diagram_info_query
Definition projectdatabase.h:86
QSqlQuery m_diagram_order_changed
Definition projectdatabase.h:88
void updateDB()
projectDataBase::updateDB Up to date the content of the data base. Emit the signal dataBaseUpdated
Definition projectdatabase.cpp:84
QETProject * project() const
projectDataBase::project
Definition projectdatabase.cpp:97
bool createDataBase()
projectDataBase::createDataBase Create the data base
Definition projectdatabase.cpp:248
void prepareQuery()
Definition projectdatabase.cpp:479
void diagramOrderChanged()
Definition projectdatabase.cpp:239
QSqlQuery m_update_element_query
Definition projectdatabase.h:83
virtual ~projectDataBase() override
projectDataBase::~projectDataBase Destructor
Definition projectdatabase.cpp:74