umbrello: umbrello/codeimpwizard/codeimpselectpage.h Source File

umbrello 25.04.0 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 SPDX-FileCopyrightText: 2011 Andi Fischer <andi.fischer@hispeed.ch>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6#ifndef CODEIMPSELECTPAGE_H
7#define CODEIMPSELECTPAGE_H
8
9// qt includes
10#include <QFileInfo>
11#include <QWizardPage>
12
13// app includes
14#include "ui_codeimpselectpage.h"
15
21 class CodeImpSelectPage : public QWizardPage, private Ui::CodeImpSelectPage
22{
23 Q_OBJECT
24public:
25 explicit CodeImpSelectPage(QWidget *parent = nullptr);
26 ~CodeImpSelectPage();
27
28 QString language();
29 bool validatePage();
30
31 QList<QFileInfo> selectedFiles();
32
33private:
34 bool matchFilter(const QFileInfo& path);
35
36 QList<QFileInfo> m_fileList;
37 QStringList m_fileExtensions;
38
39 static QString s_recentPath;
40
41 void setupLanguageBox();
42 void setupTreeView();
43 void setupFileExtEdit();
44 void setupToolTips();
45
46protected Q_SLOTS:
47 void languageChanged(int id);
48 void treeClicked(const QModelIndex& index);
49 void treeEntered(const QModelIndex& index);
50
51private Q_SLOTS:
52 void changeLanguage();
53 void subdirStateChanged(int state);
54 void fileExtChanged();
55 void selectAll();
56 void deselectAll();
57 void updateSelectionCounter();
58
59Q_SIGNALS:
60 void applyClicked();
61 void languageChanged();
62 void syncCodeDocumentsToParent();
63 void selectionChanged();
64};
65
66#endif
CodeImpSelectPage::m_fileList
QList< QFileInfo > m_fileList
Definition codeimpselectpage.h:36
CodeImpSelectPage::selectedFiles
QList< QFileInfo > selectedFiles()
Definition codeimpselectpage.cpp:314
CodeImpSelectPage::matchFilter
bool matchFilter(const QFileInfo &path)
Definition codeimpselectpage.cpp:148
CodeImpSelectPage::updateSelectionCounter
void updateSelectionCounter()
Definition codeimpselectpage.cpp:375
CodeImpSelectPage::setupTreeView
void setupTreeView()
Definition codeimpselectpage.cpp:87
CodeImpSelectPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
CodeImpSelectPage::fileExtChanged
void fileExtChanged()
Definition codeimpselectpage.cpp:186
CodeImpSelectPage::CodeImpSelectPage
CodeImpSelectPage(QWidget *parent=nullptr)
Definition codeimpselectpage.cpp:31
CodeImpSelectPage::setupFileExtEdit
void setupFileExtEdit()
Definition codeimpselectpage.cpp:125
CodeImpSelectPage::setupLanguageBox
void setupLanguageBox()
Definition codeimpselectpage.cpp:72
CodeImpSelectPage::validatePage
bool validatePage()
Definition codeimpselectpage.cpp:256
CodeImpSelectPage::selectAll
void selectAll()
Definition codeimpselectpage.cpp:338
CodeImpSelectPage::changeLanguage
void changeLanguage()
Definition codeimpselectpage.cpp:279
CodeImpSelectPage::selectionChanged
void selectionChanged()
CodeImpSelectPage::s_recentPath
static QString s_recentPath
Definition codeimpselectpage.h:39
CodeImpSelectPage::m_fileExtensions
QStringList m_fileExtensions
Definition codeimpselectpage.h:37
CodeImpSelectPage::subdirStateChanged
void subdirStateChanged(int state)
Definition codeimpselectpage.cpp:166
CodeImpSelectPage::language
QString language()
Definition codeimpselectpage.cpp:305
CodeImpSelectPage::treeClicked
void treeClicked(const QModelIndex &index)
Definition codeimpselectpage.cpp:201
CodeImpSelectPage::applyClicked
void applyClicked()
CodeImpSelectPage::treeEntered
void treeEntered(const QModelIndex &index)
Definition codeimpselectpage.cpp:246
CodeImpSelectPage::deselectAll
void deselectAll()
Definition codeimpselectpage.cpp:366
CodeImpSelectPage::~CodeImpSelectPage
~CodeImpSelectPage()
Definition codeimpselectpage.cpp:64
CodeImpSelectPage::setupToolTips
void setupToolTips()
Definition codeimpselectpage.cpp:134
CodeImpSelectPage::languageChanged
void languageChanged()