openscad/src/launchingscreen.h

38 lines
836 B
C
Raw Permalink Normal View History

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