umbrello 2.32.3 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);
40 ~CodeImpSelectPage();
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();
71 void updateSelectionCounter();
72
73 signals:
74 void applyClicked();
75 void languageChanged();
76 void syncCodeDocumentsToParent();
77 void selectionChanged();
78 };
79
80 #endif
CodeImpSelectPage::validatePage
bool validatePage()
Definition: codeimpselectpage.cpp:296
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
CodeImpSelectPage::m_fileExtensions
QStringList m_fileExtensions
Definition: codeimpselectpage.h:51
Ui_CodeImpSelectPage::ui_deselectAllButton
QPushButton * ui_deselectAllButton
Definition: ui_codeimpselectpage.h:48
CodeImpSelectPage::language
QString language()
Definition: codeimpselectpage.cpp:344
CodeImpSelectPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
Definition: moc_codeimpselectpage.cpp:222
CodeImpSelectPage::selectAll
void selectAll()
Definition: codeimpselectpage.cpp:377
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
Ui_CodeImpSelectPage::ui_filesNumLabel
QLabel * ui_filesNumLabel
Definition: ui_codeimpselectpage.h:52
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:975
CodeImpSelectPage::treeEntered
void treeEntered(const QModelIndex &index)
Definition: codeimpselectpage.cpp:286
ui_codeimpselectpage.h
CodeImpSelectPage::subdirStateChanged
void subdirStateChanged(int state)
Definition: codeimpselectpage.cpp:208
model_utils.h
CodeImpSelectPage::treeClicked
void treeClicked(const QModelIndex &index)
Definition: codeimpselectpage.cpp:243
codeimpselectpage.h
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
Ui_CodeImpSelectPage::ui_selectAllButton
QPushButton * ui_selectAllButton
Definition: ui_codeimpselectpage.h:49
CodeImpSelectPage::changeLanguage
void changeLanguage()
Definition: codeimpselectpage.cpp:319
CodeImpSelectPage::CodeImpSelectPage
CodeImpSelectPage(QWidget *parent=0)
Definition: codeimpselectpage.cpp:42
Uml::ProgrammingLanguage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:925
uWarning
#define uWarning()
Definition: debug_utils.h:124
CodeImpSelectPage::setupFileExtEdit
void setupFileExtEdit()
Definition: codeimpselectpage.cpp:136
i18n
#define i18n
Definition: main.cpp:39
CodeImpSelectPage::s_recentPath
static QString s_recentPath
Definition: codeimpselectpage.h:53
uDebug
#define uDebug()
Definition: debug_utils.h:122
Ui_CodeImpSelectPage::setupUi
void setupUi(QWidget *CodeImpSelectPage)
Definition: ui_codeimpselectpage.h:54
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2514
CodeImpSelectPage::m_fileList
QList< QFileInfo > m_fileList
Definition: codeimpselectpage.h:50
CodeImpSelectPage
Definition: codeimpselectpage.h:36
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
CodeImpSelectPage::~CodeImpSelectPage
~CodeImpSelectPage()
Definition: codeimpselectpage.cpp:75
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
CodeImpSelectPage::deselectAll
void deselectAll()
Definition: codeimpselectpage.cpp:406
CodeImpSelectPage::setupLanguageBox
void setupLanguageBox()
Definition: codeimpselectpage.cpp:83
Ui_CodeImpSelectPage::ui_languageBox
KComboBox * ui_languageBox
Definition: ui_codeimpselectpage.h:39
CodeImpSelectPage::fileExtChanged
void fileExtChanged()
Definition: codeimpselectpage.cpp:228
CodeImpSelectPage::selectionChanged
void selectionChanged()
Definition: moc_codeimpselectpage.cpp:228
uml.h
debug_utils.h
Uml::ProgrammingLanguage::toExtensions
QStringList toExtensions(Enum item)
Definition: basictypes.cpp:985
CodeImpSelectPage::updateSelectionCounter
void updateSelectionCounter()
Definition: codeimpselectpage.cpp:415
CodeImpSelectPage::applyClicked
void applyClicked()
Definition: moc_codeimpselectpage.cpp:210
Ui_CodeImpSelectPage::ui_treeView
QTreeView * ui_treeView
Definition: ui_codeimpselectpage.h:46
CodeImpSelectPage::languageChanged
void languageChanged()
Definition: moc_codeimpselectpage.cpp:216
Ui_CodeImpSelectPage::ui_subdirCheckBox
QCheckBox * ui_subdirCheckBox
Definition: ui_codeimpselectpage.h:41
CodeImpSelectPage::setupToolTips
void setupToolTips()
Definition: codeimpselectpage.cpp:145
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2523
CodeImpSelectPage::setupTreeView
void setupTreeView()
Definition: codeimpselectpage.cpp:98
CodeImpSelectPage::selectedFiles
QList< QFileInfo > selectedFiles()
Definition: codeimpselectpage.cpp:353
CodeImpSelectPage::matchFilter
bool matchFilter(const QFileInfo &path)
Definition: codeimpselectpage.cpp:159
Ui_CodeImpSelectPage::ui_fileExtLineEdit
QLineEdit * ui_fileExtLineEdit
Definition: ui_codeimpselectpage.h:44
Ui::CodeImpSelectPage
Definition: ui_codeimpselectpage.h:180