#include <codeimpselectpage.h>
This class is used in the code importing wizard. It represents the first page where files are selected for importing.
- Author
- Andi Fischer
◆ CodeImpSelectPage()
CodeImpSelectPage::CodeImpSelectPage |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructor.
- Parameters
-
parent | the parent (wizard) of this wizard page |
◆ ~CodeImpSelectPage()
CodeImpSelectPage::~CodeImpSelectPage |
( |
| ) |
|
◆ applyClicked
void CodeImpSelectPage::applyClicked |
( |
| ) |
|
|
signal |
◆ changeLanguage
void CodeImpSelectPage::changeLanguage |
( |
| ) |
|
|
privateslot |
When the user changes the language, the codegenoptions page language-dependent stuff has to be updated.
◆ deselectAll
void CodeImpSelectPage::deselectAll |
( |
| ) |
|
|
privateslot |
Slot for clicked event on the button widget. Deselects all items in the entire tree.
◆ fileExtChanged
void CodeImpSelectPage::fileExtChanged |
( |
| ) |
|
|
privateslot |
Slot for the editingFinished event of the line edit widget for the extensions.
◆ language()
QString CodeImpSelectPage::language |
( |
| ) |
|
Returns the user selected language used for code generation.
- Returns
- the programming language name
◆ languageChanged [1/2]
void CodeImpSelectPage::languageChanged |
( |
| ) |
|
|
signal |
◆ languageChanged [2/2]
void CodeImpSelectPage::languageChanged |
( |
int |
id | ) |
|
|
protectedslot |
Slot of the activated event of the combo box widget. Transform signal.
- Parameters
-
◆ matchFilter()
bool CodeImpSelectPage::matchFilter |
( |
const QFileInfo & |
path | ) |
|
|
private |
Decide if the given file has one of the set extensions.
- Parameters
-
path | file info to be examined |
- Returns
- status if found or not
◆ selectAll
void CodeImpSelectPage::selectAll |
( |
| ) |
|
|
privateslot |
Slot for clicked event on the button widget. Select all items in the current selected directory. If the checkbox 'ui_subdirCheckBox' is selected also all the files in the subdirectories are selected.
◆ selectedFiles()
QList< QFileInfo > CodeImpSelectPage::selectedFiles |
( |
| ) |
|
Returns the list of files, which will be used for code import.
- Returns
- the list of the selected files
◆ selectionChanged
void CodeImpSelectPage::selectionChanged |
( |
| ) |
|
|
signal |
◆ setupFileExtEdit()
void CodeImpSelectPage::setupFileExtEdit |
( |
| ) |
|
|
private |
Setup the tree view and file extension widget. Call it after setupTreeView(), because the extensions are set there.
◆ setupLanguageBox()
void CodeImpSelectPage::setupLanguageBox |
( |
| ) |
|
|
private |
Fills the language combo box with items and sets the currently selected value.
◆ setupToolTips()
void CodeImpSelectPage::setupToolTips |
( |
| ) |
|
|
private |
Setup the tool tips for every widget. TODO: Do it here or in the ui file?
◆ setupTreeView()
void CodeImpSelectPage::setupTreeView |
( |
| ) |
|
|
private |
Setup the tree view widget.
◆ subdirStateChanged
void CodeImpSelectPage::subdirStateChanged |
( |
int |
state | ) |
|
|
privateslot |
Slot for the stateChanged event of the subdirectory check box.
- Parameters
-
state | check box state (Qt::Checked / Qt::Unchecked) |
◆ syncCodeDocumentsToParent
void CodeImpSelectPage::syncCodeDocumentsToParent |
( |
| ) |
|
|
signal |
◆ treeClicked
void CodeImpSelectPage::treeClicked |
( |
const QModelIndex & |
index | ) |
|
|
protectedslot |
Slot for the clicked event on one of the items of the tree view widget.
- Parameters
-
index | the index of the item on which was clicked |
◆ treeEntered
void CodeImpSelectPage::treeEntered |
( |
const QModelIndex & |
index | ) |
|
|
protectedslot |
◆ updateSelectionCounter
void CodeImpSelectPage::updateSelectionCounter |
( |
| ) |
|
|
privateslot |
Utility method for setting the selection counter.
◆ validatePage()
bool CodeImpSelectPage::validatePage |
( |
| ) |
|
Reimplemented QWizardPage method to validate page when user clicks next button.
- Returns
- the validation state
◆ m_fileExtensions
QStringList CodeImpSelectPage::m_fileExtensions |
|
private |
◆ m_fileList
QList<QFileInfo> CodeImpSelectPage::m_fileList |
|
private |
◆ s_recentPath
QString CodeImpSelectPage::s_recentPath |
|
staticprivate |
Keep the last clicked directory for setting it the next time.
The documentation for this class was generated from the following files: