source: ntrip/trunk/GnssCenter/inpedit/inpedit.cpp@ 5092

Last change on this file since 5092 was 5090, checked in by mervart, 11 years ago
File size: 1.3 KB
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
22using namespace std;
23using namespace GnssCenter;
24
25Q_EXPORT_PLUGIN2(gnsscenter_inpedit, GnssCenter::t_inpEditFactory)
26
27// Constructor
28////////////////////////////////////////////////////////////////////////////
29t_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////////////////////////////////////////////////////////////////////////////
42t_inpEdit::~t_inpEdit() {
43}
44
45//
46////////////////////////////////////////////////////////////////////////////
47void 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.