QElectroTech
0.100.0-dev
Loading...
Searching...
No Matches
sources
dataBase
ui
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
23
class
QListWidgetItem;
24
25
namespace
Ui
{
26
class
SummaryQueryWidget
;
27
}
28
29
class
SummaryQueryWidget
:
public
QWidget
30
{
31
Q_OBJECT
32
33
public
:
34
explicit
SummaryQueryWidget
(QWidget *parent =
nullptr
);
35
~SummaryQueryWidget
();
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
();
51
void
on_m_add_pb_clicked
();
52
void
on_m_remove_pb_clicked
();
53
void
on_m_down_pb_clicked
();
54
void
on_m_edit_sql_query_cb_clicked
();
55
void
reset
();
56
void
saveConfig
();
57
void
loadConfig
();
58
59
private
:
60
Ui::SummaryQueryWidget *
ui
;
61
QList <QListWidgetItem *>
m_items_list
;
62
QString
m_custom_query
;
63
};
64
65
#endif
// SUMMARYQUERYWIDGET_H
SummaryQueryWidget
Definition
summaryquerywidget.h:30
SummaryQueryWidget::on_m_available_list_itemDoubleClicked
void on_m_available_list_itemDoubleClicked(QListWidgetItem *item)
SummaryQueryWidget::on_m_available_list_itemDoubleClicked.
Definition
summaryquerywidget.cpp:188
SummaryQueryWidget::setQuery
void setQuery(const QString &query)
SummaryQueryWidget::setQuery.
Definition
summaryquerywidget.cpp:93
SummaryQueryWidget::on_m_choosen_list_itemDoubleClicked
void on_m_choosen_list_itemDoubleClicked(QListWidgetItem *item)
SummaryQueryWidget::on_m_choosen_list_itemDoubleClicked.
Definition
summaryquerywidget.cpp:198
SummaryQueryWidget::on_m_up_pb_clicked
void on_m_up_pb_clicked()
SummaryQueryWidget::on_m_up_pb_clicked.
Definition
summaryquerywidget.cpp:207
SummaryQueryWidget::on_m_edit_sql_query_cb_clicked
void on_m_edit_sql_query_cb_clicked()
SummaryQueryWidget::on_m_edit_sql_query_cb_clicked.
Definition
summaryquerywidget.cpp:265
SummaryQueryWidget::reset
void reset()
SummaryQueryWidget::reset Clear this widget aka set to initial state.
Definition
summaryquerywidget.cpp:285
SummaryQueryWidget::setUpItems
void setUpItems()
SummaryQueryWidget::setUpItems.
Definition
summaryquerywidget.cpp:124
SummaryQueryWidget::~SummaryQueryWidget
~SummaryQueryWidget()
SummaryQueryWidget::~SummaryQueryWidget.
Definition
summaryquerywidget.cpp:46
SummaryQueryWidget::m_custom_query
QString m_custom_query
Definition
summaryquerywidget.h:62
SummaryQueryWidget::on_m_remove_pb_clicked
void on_m_remove_pb_clicked()
SummaryQueryWidget::on_m_remove_pb_clicked.
Definition
summaryquerywidget.cpp:236
SummaryQueryWidget::saveConfig
void saveConfig()
SummaryQueryWidget::saveConfig.
Definition
summaryquerywidget.cpp:297
SummaryQueryWidget::on_m_down_pb_clicked
void on_m_down_pb_clicked()
SummaryQueryWidget::on_m_down_pb_clicked.
Definition
summaryquerywidget.cpp:248
SummaryQueryWidget::fillSavedQuery
void fillSavedQuery()
SummaryQueryWidget::fillSavedQuery Fill the combo box of the saved query.
Definition
summaryquerywidget.cpp:144
SummaryQueryWidget::queryStr
QString queryStr() const
SummaryQueryWidget::queryStr.
Definition
summaryquerywidget.cpp:55
SummaryQueryWidget::m_items_list
QList< QListWidgetItem * > m_items_list
Definition
summaryquerywidget.h:61
SummaryQueryWidget::ui
Ui::SummaryQueryWidget * ui
Definition
summaryquerywidget.h:60
SummaryQueryWidget::updateQueryLine
void updateQueryLine()
SummaryQueryWidget::updateQueryLine.
Definition
summaryquerywidget.cpp:161
SummaryQueryWidget::loadConfig
void loadConfig()
SummaryQueryWidget::loadConfig.
Definition
summaryquerywidget.cpp:327
SummaryQueryWidget::selectedKeys
QStringList selectedKeys() const
SummaryQueryWidget::selectedKeys.
Definition
summaryquerywidget.cpp:170
SummaryQueryWidget::modelIdentifier
static QString modelIdentifier()
Definition
summaryquerywidget.h:37
SummaryQueryWidget::on_m_add_pb_clicked
void on_m_add_pb_clicked()
SummaryQueryWidget::on_m_add_pb_clicked.
Definition
summaryquerywidget.cpp:224
Ui
Definition
autonumberingdockwidget.h:26
Generated by
1.9.8