2014-10-10 06:13:18 +04:00
|
|
|
#pragma once
|
2014-08-01 21:02:55 +04:00
|
|
|
|
2014-09-14 04:08:57 +04:00
|
|
|
#include <QString>
|
2014-08-01 21:02:55 +04:00
|
|
|
#include <QDialog>
|
2014-09-14 04:08:57 +04:00
|
|
|
#include <QTreeWidgetItem>
|
2014-10-19 00:25:25 +04:00
|
|
|
|
|
|
|
#include "qtgettext.h"
|
2014-10-10 01:21:15 +04:00
|
|
|
#include "ui_launchingscreen.h"
|
2014-08-01 21:02:55 +04:00
|
|
|
|
2014-10-10 01:21:15 +04:00
|
|
|
class LaunchingScreen : public QDialog, public Ui::LaunchingScreen
|
2014-08-01 21:02:55 +04:00
|
|
|
{
|
2014-10-10 06:13:18 +04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2014-08-01 21:02:55 +04:00
|
|
|
public:
|
2014-10-10 06:13:18 +04:00
|
|
|
static LaunchingScreen *getDialog();
|
|
|
|
explicit LaunchingScreen(QWidget *parent = 0);
|
|
|
|
virtual ~LaunchingScreen();
|
2015-02-27 18:19:21 +03:00
|
|
|
QStringList selectedFiles();
|
2014-08-01 21:02:55 +04:00
|
|
|
|
2014-10-10 06:13:18 +04:00
|
|
|
public slots:
|
|
|
|
void openFile(const QString &filename);
|
2014-09-15 23:35:21 +04:00
|
|
|
|
2014-10-10 06:13:18 +04:00
|
|
|
private slots:
|
|
|
|
void checkboxState(bool state);
|
|
|
|
void enableRecentButton(const QModelIndex ¤t, const QModelIndex &previous);
|
|
|
|
void enableExampleButton(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
2015-02-27 18:19:21 +03:00
|
|
|
void openUserFile();
|
2014-10-10 06:13:18 +04:00
|
|
|
void openRecent();
|
|
|
|
void openExample();
|
|
|
|
void openUserManualURL();
|
|
|
|
|
2014-09-14 04:08:57 +04:00
|
|
|
private:
|
2014-10-10 06:13:18 +04:00
|
|
|
void checkOpen(const QVariant &data);
|
|
|
|
|
2015-02-27 18:19:21 +03:00
|
|
|
QStringList files;
|
2014-10-10 06:13:18 +04:00
|
|
|
static LaunchingScreen *inst;
|
2014-08-01 21:02:55 +04:00
|
|
|
};
|