Line | |
---|
1 |
|
---|
2 | /* -------------------------------------------------------------------------
|
---|
3 | * RTNet GUI
|
---|
4 | * -------------------------------------------------------------------------
|
---|
5 | *
|
---|
6 | * Class: t_inpEdit
|
---|
7 | *
|
---|
8 | * Purpose: RTNet Input File
|
---|
9 | *
|
---|
10 | * Author: L. Mervart
|
---|
11 | *
|
---|
12 | * Created: 05-Jan-2013
|
---|
13 | *
|
---|
14 | * Changes:
|
---|
15 | *
|
---|
16 | * -----------------------------------------------------------------------*/
|
---|
17 |
|
---|
18 | #include "inpedit.h"
|
---|
19 | #include "keyword.h"
|
---|
20 | #include "panel.h"
|
---|
21 |
|
---|
22 | using namespace std;
|
---|
23 | using namespace GnssCenter;
|
---|
24 |
|
---|
25 | Q_EXPORT_PLUGIN2(gnsscenter_inpedit, GnssCenter::t_inpEditFactory)
|
---|
26 |
|
---|
27 | // Constructor
|
---|
28 | ////////////////////////////////////////////////////////////////////////////
|
---|
29 | t_inpEdit::t_inpEdit() : QMainWindow() {
|
---|
30 |
|
---|
31 | _tabWidget = new t_tabWidget();
|
---|
32 | setCentralWidget(_tabWidget);
|
---|
33 |
|
---|
34 | QMenu* menuFile = menuBar()->addMenu(tr("&File"));
|
---|
35 | QAction* actOpenFile = new QAction(tr("&Open"), this);
|
---|
36 | connect(actOpenFile, SIGNAL(triggered()), this, SLOT(slotOpenFile()));
|
---|
37 | menuFile->addAction(actOpenFile);
|
---|
38 | }
|
---|
39 |
|
---|
40 | // Destructor
|
---|
41 | ////////////////////////////////////////////////////////////////////////////
|
---|
42 | t_inpEdit::~t_inpEdit() {
|
---|
43 | }
|
---|
44 |
|
---|
45 | //
|
---|
46 | ////////////////////////////////////////////////////////////////////////////
|
---|
47 | void t_inpEdit::slotOpenFile() {
|
---|
48 | QString fileName = QFileDialog::getOpenFileName(this);
|
---|
49 | if (!fileName.isEmpty()) {
|
---|
50 | _tabWidget->setInputFile(fileName);
|
---|
51 | }
|
---|
52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.