44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#ifndef SELECTFILESFRAGMENT_H
|
|
#define SELECTFILESFRAGMENT_H
|
|
|
|
class WizardPageModel;
|
|
class QuartsButton;
|
|
|
|
#include <QQuickItem>
|
|
#include "wizardfragmentbase.h"
|
|
|
|
class SelectFilesFragment : public WizardFragmentBase {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SelectFilesFragment(QQuickItem * root, WizardPageModel* model) : WizardFragmentBase(root), root(root) {
|
|
|
|
WizardFragmentBase::model = model;
|
|
init();
|
|
}
|
|
|
|
private:
|
|
const QString FILED_LIST_FILES_CONTENT = "ColumnLeft";
|
|
const QString FILED_BUTTON_CONTENT = "ButtonChooseFiles";
|
|
const QString FILED_FILE_COUNT_LABEL = "ChosenFileCountLabel";
|
|
const QString FILED_CANCEL_BUTTON = "CancelButton";
|
|
const QString FILED_NEXT_BUTTON = "NextButton";
|
|
const QString FILED_NEXT_BUTTON_LABEL = "NextLabel";
|
|
const QString FILED_CANCEL_BUTTON_LABEL = "CancelLabel";
|
|
|
|
bool isAllElementsFound();
|
|
void init();
|
|
void handleNewFiles();
|
|
void handleChooseFiles();
|
|
|
|
QuartsButton *buttonCancel = 0, *buttonNext = 0;
|
|
QQuickItem *buttonChooseFiles = 0;
|
|
QQuickItem * listFilesItem = 0;
|
|
QQuickItem * listFilesContent = 0;
|
|
QQuickItem * root;
|
|
QQuickItem * fieldCountLabel = 0;
|
|
};
|
|
|
|
|
|
#endif // SELECTFILESFRAGMENT_H
|