Q4Wine  2.0
Q4Wine is a Qt GUI for Wine.
prefix.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008-2016 by Alexey S. Malakhov <brezerk@gmail.com> *
3  * *
4  * This program is free software: you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation, either version 3 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
16  * *
17  ***************************************************************************/
18 
19 #pragma once
20 
21 #include <QWidget>
22 #include <QAction>
23 #include <QMenu>
24 #include <QToolBar>
25 #include <QVBoxLayout>
26 #include <QSplitter>
27 #include <QStandardItemModel>
28 #include <QTableView>
29 #include <QTableWidgetItem>
30 #include <QHeaderView>
31 #include <QLineEdit>
32 #include <QLabel>
33 
34 #include <memory>
35 
36 class PrefixConfigWidget : public QWidget
37 {
38  Q_OBJECT
39 
40  public:
41  explicit PrefixConfigWidget(QWidget *parent = 0);
43 
44  private:
45  void createActions();
46  void createWidgets();
47  const QIcon getIcon(QString name) const;
48 
49  std::shared_ptr<QToolBar> m_ToolBar;
50 
51  std::shared_ptr<QAction> a_Clear,
52  a_SortAlpha,
53  a_New,
54  a_Import,
55  a_Export,
56  a_Delete,
57  a_Edit,
58  a_Configure,
59  a_ConfigureVersions;
60 
61  std::shared_ptr<QLineEdit> txt_Filter;
62 
63  std::shared_ptr<QTableView> tbl_Prefixes;
64 
65  std::shared_ptr<QVBoxLayout> layout_;
66  std::shared_ptr<QStandardItemModel> model_;
67 
68  private slots:
69  void a_Clear_Click();
70  void a_SortAlpha_Click();
71  void a_New_Click();
72  void a_Import_Click();
73  void a_Export_Click();
74  void a_Delete_Click();
75  void a_Edit_Click();
76  void a_Configure_Click();
77  void a_ConfigureVersions_Click();
78 
79 };
~PrefixConfigWidget()
Definition: prefix.cpp:30
Definition: prefix.hpp:36
PrefixConfigWidget(QWidget *parent=0)
Definition: prefix.cpp:21