blob: 49b4f2a5ccff90d5a53134884556ccbfd86a1488 (
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
|
#include "tab_welcome.h"
#include <QAction>
TabWelcome::TabWelcome(RecentFiles::QMenuPtr recent_files_menu, QWidget* parent)
: recent_files_menu(recent_files_menu), QWidget(parent), ui(new Ui::TabWelcome)
{
ui->setupUi(this);
ui->horizontalLayout->setContentsMargins(0, 0, 0, 0);
ui->welcomeLabel->setText(ui->welcomeLabel->text()
.arg(tr("Welcome to ActorViewer!"))
.arg(tr("Start by opening a Fediverse data export, using a button below.")));
}
TabWelcome::~TabWelcome() {
delete ui;
}
void TabWelcome::on_openFileButton_clicked(bool checked) {
emit show_file_open_dialog();
}
void TabWelcome::on_openRecentButton_clicked(bool checked) {
if (recent_files_menu)
recent_files_menu->popup(ui->openRecentButton->mapToGlobal(QPoint(0,0)));
}
|