aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets/tab_welcome.h
blob: 497aae2e2b41ddfc6b971b7b1bf1db12094255ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <QWidget>
#include "./ui_tab_welcome.h"
#include "../recent_files.h"

QT_BEGIN_NAMESPACE
namespace Ui { class TabWelcome; }
QT_END_NAMESPACE

class TabWelcome : public QWidget {
    Q_OBJECT

public:
    TabWelcome(RecentFiles::QMenuPtr recent_files_menu = nullptr, QWidget* parent = nullptr);
    ~TabWelcome();

signals:
    // Show Open file dialog
    void show_file_open_dialog();
    // Open this file path
    void open_file(const QString& path);

private slots:
    void on_openFileButton_clicked(bool checked);
    void on_openRecentButton_clicked(bool checked);

private:
    Ui::TabWelcome* ui;
    RecentFiles::QMenuPtr recent_files_menu;
};