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
RevLine 
[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
22using namespace std;
[5000]23using namespace GnssCenter;
[4823]24
[5051]25Q_EXPORT_PLUGIN2(gnsscenter_inpedit, GnssCenter::t_inpEditFactory)
[5017]26
[4823]27// Constructor
28////////////////////////////////////////////////////////////////////////////
[5088]29t_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]42t_inpEdit::~t_inpEdit() {
[4823]43}
[5089]44
45//
46////////////////////////////////////////////////////////////////////////////
47void 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.