QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
summaryquerywidget.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 SUMMARYQUERYWIDGET_H
19#define SUMMARYQUERYWIDGET_H
20
21#include <QWidget>
22
23class QListWidgetItem;
24
25namespace Ui {
27}
28
29class SummaryQueryWidget : public QWidget
30{
31 Q_OBJECT
32
33 public:
34 explicit SummaryQueryWidget(QWidget *parent = nullptr);
36
37 static QString modelIdentifier() {return "summary";}
38 QString queryStr() const;
39 void setQuery(const QString &query);
40
41 private:
42 void setUpItems();
43 void fillSavedQuery();
44 void updateQueryLine();
45 QStringList selectedKeys() const;
46
47 private slots:
48 void on_m_available_list_itemDoubleClicked(QListWidgetItem *item);
49 void on_m_choosen_list_itemDoubleClicked(QListWidgetItem *item);
50 void on_m_up_pb_clicked();
55 void reset();
56 void saveConfig();
57 void loadConfig();
58
59 private:
60 Ui::SummaryQueryWidget *ui;
61 QList <QListWidgetItem *> m_items_list;
63};
64
65#endif // SUMMARYQUERYWIDGET_H
Definition summaryquerywidget.h:30
void on_m_available_list_itemDoubleClicked(QListWidgetItem *item)
SummaryQueryWidget::on_m_available_list_itemDoubleClicked.
Definition summaryquerywidget.cpp:188
void setQuery(const QString &query)
SummaryQueryWidget::setQuery.
Definition summaryquerywidget.cpp:93
void on_m_choosen_list_itemDoubleClicked(QListWidgetItem *item)
SummaryQueryWidget::on_m_choosen_list_itemDoubleClicked.
Definition summaryquerywidget.cpp:198
void on_m_up_pb_clicked()
SummaryQueryWidget::on_m_up_pb_clicked.
Definition summaryquerywidget.cpp:207
void on_m_edit_sql_query_cb_clicked()
SummaryQueryWidget::on_m_edit_sql_query_cb_clicked.
Definition summaryquerywidget.cpp:265
void reset()
SummaryQueryWidget::reset Clear this widget aka set to initial state.
Definition summaryquerywidget.cpp:285
void setUpItems()
SummaryQueryWidget::setUpItems.
Definition summaryquerywidget.cpp:124
~SummaryQueryWidget()
SummaryQueryWidget::~SummaryQueryWidget.
Definition summaryquerywidget.cpp:46
QString m_custom_query
Definition summaryquerywidget.h:62
void on_m_remove_pb_clicked()
SummaryQueryWidget::on_m_remove_pb_clicked.
Definition summaryquerywidget.cpp:236
void saveConfig()
SummaryQueryWidget::saveConfig.
Definition summaryquerywidget.cpp:297
void on_m_down_pb_clicked()
SummaryQueryWidget::on_m_down_pb_clicked.
Definition summaryquerywidget.cpp:248
void fillSavedQuery()
SummaryQueryWidget::fillSavedQuery Fill the combo box of the saved query.
Definition summaryquerywidget.cpp:144
QString queryStr() const
SummaryQueryWidget::queryStr.
Definition summaryquerywidget.cpp:55
QList< QListWidgetItem * > m_items_list
Definition summaryquerywidget.h:61
Ui::SummaryQueryWidget * ui
Definition summaryquerywidget.h:60
void updateQueryLine()
SummaryQueryWidget::updateQueryLine.
Definition summaryquerywidget.cpp:161
void loadConfig()
SummaryQueryWidget::loadConfig.
Definition summaryquerywidget.cpp:327
QStringList selectedKeys() const
SummaryQueryWidget::selectedKeys.
Definition summaryquerywidget.cpp:170
static QString modelIdentifier()
Definition summaryquerywidget.h:37
void on_m_add_pb_clicked()
SummaryQueryWidget::on_m_add_pb_clicked.
Definition summaryquerywidget.cpp:224
Definition autonumberingdockwidget.h:26