Rev | Line | |
---|
[4823] | 1 |
|
---|
| 2 | /* -------------------------------------------------------------------------
|
---|
| 3 | * RTNet GUI
|
---|
| 4 | * -------------------------------------------------------------------------
|
---|
| 5 | *
|
---|
[5015] | 6 | * Class: t_inpEdit
|
---|
[4823] | 7 | *
|
---|
| 8 | * Purpose: RTNet Input File
|
---|
| 9 | *
|
---|
| 10 | * Author: L. Mervart
|
---|
| 11 | *
|
---|
| 12 | * Created: 05-Jan-2013
|
---|
| 13 | *
|
---|
| 14 | * Changes:
|
---|
| 15 | *
|
---|
| 16 | * -----------------------------------------------------------------------*/
|
---|
| 17 |
|
---|
[5015] | 18 | #include "inpedit.h"
|
---|
[4855] | 19 | #include "keyword.h"
|
---|
| 20 | #include "panel.h"
|
---|
[4823] | 21 |
|
---|
| 22 | using namespace std;
|
---|
[5000] | 23 | using namespace GnssCenter;
|
---|
[4823] | 24 |
|
---|
[5051] | 25 | Q_EXPORT_PLUGIN2(gnsscenter_inpedit, GnssCenter::t_inpEditFactory)
|
---|
[5017] | 26 |
|
---|
[4823] | 27 | // Constructor
|
---|
| 28 | ////////////////////////////////////////////////////////////////////////////
|
---|
[5088] | 29 | t_inpEdit::t_inpEdit() : QMainWindow() {
|
---|
[5089] | 30 |
|
---|
[5088] | 31 | _tabWidget = new t_tabWidget();
|
---|
| 32 | setCentralWidget(_tabWidget);
|
---|
[5089] | 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);
|
---|
[4823] | 38 | }
|
---|
| 39 |
|
---|
| 40 | // Destructor
|
---|
| 41 | ////////////////////////////////////////////////////////////////////////////
|
---|
[5015] | 42 | t_inpEdit::~t_inpEdit() {
|
---|
[4823] | 43 | }
|
---|
[5089] | 44 |
|
---|
| 45 | //
|
---|
| 46 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 47 | void t_inpEdit::slotOpenFile() {
|
---|
[5090] | 48 | QString fileName = QFileDialog::getOpenFileName(this);
|
---|
| 49 | if (!fileName.isEmpty()) {
|
---|
| 50 | _tabWidget->setInputFile(fileName);
|
---|
| 51 | }
|
---|
[5089] | 52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.