Second wizard page for selecting files to upload. More...
#include <fileuploadwizard.h>
Public Member Functions | |
FileSelectionPage (QWidget *parent=0) | |
void | setLayout (WizardColumnLayout *layout) |
WizardColumnLayout * | layout () const |
Second wizard page for selecting files to upload.
Implemented as one of the 6 wizard pages.
FileSelectionPage::FileSelectionPage | ( | QWidget * | parent = 0 |
) |
: FileUploadWizardPage(parent) { setTitle("File selection"); setSubTitle("Select all the files you wish to upload."); QLabel *importantLabel = new QLabel("ATTENTION! Make sure the files you select are from the same source!" "(i.e. logger, etc.)" "\n\n" "You can remove files by selecting them and pressing the \"delete\" button." "\n\n" "NOTE on colors:\n" "Green: file has never been successfully uploaded\n" "Yellow: file has once been successfully uploaded\n" "Red: uploader failed to upload the file" "\n\n" "Doubleclick for preview in wordpad."); importantLabel->setWordWrap(true); addFilesButton = new QPushButton("Add files", this); addFilesButton->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); setLayout(new WizardColumnLayout(importantLabel, addFilesButton)); }
WizardColumnLayout * FileSelectionPage::layout | ( | ) | const |
{ return dynamic_cast<WizardColumnLayout*>(FileUploadWizardPage::layout()); }
void FileSelectionPage::setLayout | ( | WizardColumnLayout * | layout | ) |
Referenced by FileSelectionPage().
{ FileUploadWizardPage::setLayout(layout); }