umbrello  2.32.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
codeimpselectpage.h
Go to the documentation of this file.
1 /*
2  Copyright 2011 Andi Fischer <andi.fischer@hispeed.ch>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of
7  the License or (at your option) version 3 or any later version
8  accepted by the membership of KDE e.V. (or its successor approved
9  by the membership of KDE e.V.), which shall act as a proxy
10  defined in Section 14 of version 3 of the license.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef CODEIMPSELECTPAGE_H
21 #define CODEIMPSELECTPAGE_H
22 
23 // qt includes
24 #include <QFileInfo>
25 #include <QWizardPage>
26 
27 // app includes
28 #include "ui_codeimpselectpage.h"
29 
35 class CodeImpSelectPage : public QWizardPage, private Ui::CodeImpSelectPage
36 {
37  Q_OBJECT
38 public:
39  explicit CodeImpSelectPage(QWidget *parent = 0);
41 
42  QString language();
43  bool validatePage();
44 
45  QList<QFileInfo> selectedFiles();
46 
47 private:
48  bool matchFilter(const QFileInfo& path);
49 
50  QList<QFileInfo> m_fileList;
51  QStringList m_fileExtensions;
52 
53  static QString s_recentPath;
54 
55  void setupLanguageBox();
56  void setupTreeView();
57  void setupFileExtEdit();
58  void setupToolTips();
59 
60 protected slots:
61  void languageChanged(int id);
62  void treeClicked(const QModelIndex& index);
63  void treeEntered(const QModelIndex& index);
64 
65 private slots:
66  void changeLanguage();
67  void subdirStateChanged(int state);
68  void fileExtChanged();
69  void selectAll();
70  void deselectAll();
72 
73 signals:
74  void applyClicked();
78 };
79 
80 #endif
Definition: codeimpselectpage.h:36
QList< QFileInfo > m_fileList
Definition: codeimpselectpage.h:50
QList< QFileInfo > selectedFiles()
Definition: codeimpselectpage.cpp:353
bool matchFilter(const QFileInfo &path)
Definition: codeimpselectpage.cpp:159
void updateSelectionCounter()
Definition: codeimpselectpage.cpp:415
void setupTreeView()
Definition: codeimpselectpage.cpp:98
void syncCodeDocumentsToParent()
void fileExtChanged()
Definition: codeimpselectpage.cpp:228
void setupFileExtEdit()
Definition: codeimpselectpage.cpp:136
void setupLanguageBox()
Definition: codeimpselectpage.cpp:83
bool validatePage()
Definition: codeimpselectpage.cpp:296
void selectAll()
Definition: codeimpselectpage.cpp:377
void changeLanguage()
Definition: codeimpselectpage.cpp:319
static QString s_recentPath
Definition: codeimpselectpage.h:53
QStringList m_fileExtensions
Definition: codeimpselectpage.h:51
void subdirStateChanged(int state)
Definition: codeimpselectpage.cpp:208
QString language()
Definition: codeimpselectpage.cpp:344
void treeClicked(const QModelIndex &index)
Definition: codeimpselectpage.cpp:243
CodeImpSelectPage(QWidget *parent=0)
Definition: codeimpselectpage.cpp:42
void treeEntered(const QModelIndex &index)
Definition: codeimpselectpage.cpp:286
void deselectAll()
Definition: codeimpselectpage.cpp:406
~CodeImpSelectPage()
Definition: codeimpselectpage.cpp:75
void setupToolTips()
Definition: codeimpselectpage.cpp:145