Q4Wine  2.0
Q4Wine is a Qt GUI for Wine.
iconlist.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 <QListWidget>
28 #include <QLineEdit>
29 #include <QLabel>
30 
31 #include <memory>
32 
33 class IconListWidget : public QWidget
34 {
35  Q_OBJECT
36 
37  public:
38  explicit IconListWidget(QWidget *parent = 0);
40 
41  private:
42  void createActions();
43  void createWidgets();
44  const QIcon getIcon(QString name) const;
45 
46  std::shared_ptr<QToolBar> m_ToolBar;
47 
48  std::shared_ptr<QAction> a_Clear,
49  a_Mode,
50  a_ZoomIn,
51  a_ZoomOut,
52  a_SortAlpha,
53  a_SortDate;
54 
55  std::shared_ptr<QLineEdit> txt_Filter;
56 
57  std::shared_ptr<QListWidget> w_IconsList;
58 
59  std::shared_ptr<QVBoxLayout> layout_;
60 
61  private slots:
62  void a_Clear_Click();
63  void a_Mode_Click();
64  void a_ZoomIn_Click();
65  void a_ZoomOut_Click();
66  void a_SortAlpha_Click();
67  void a_SortDate_Click();
68 };
~IconListWidget()
Definition: iconlist.cpp:29
IconListWidget(QWidget *parent=0)
Definition: iconlist.cpp:21
Definition: iconlist.hpp:33