-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
38 lines (32 loc) · 980 Bytes
/
mainwindow.cpp
File metadata and controls
38 lines (32 loc) · 980 Bytes
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
31
32
33
34
35
36
37
38
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "graphicsview.h"
#include <QFileDialog>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_actionAbout_triggered()
{
QMessageBox::about(this, tr("About UVM Framework"),
tr("The <b>UVM Framework</b> is a graphic framework for "
"developping UVM verification environements."));
}
void MainWindow::on_actionExit_triggered()
{
QApplication::quit();
}
void MainWindow::on_actionOpen_triggered()
{
QString filter = "All File (*.*) ;; Text File (*.txt) ;; XML File (*.xml)";
QString file_name = QFileDialog::getOpenFileName(this, "Open a File", "QDir::homePath()", filter);
//QFile file (file_name);
QMessageBox::information(this, "..", file_name);
}