aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/mainwnd.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-05-17 13:24:19 +0000
committerMike Buland <eichlan@xagasoft.com>2011-05-17 13:24:19 +0000
commitd269a39f27e2dcd57d0e3362ef3a7fd9ad3f3639 (patch)
tree8fa45d8c6dd61e3949ecf1727c6facb78bfe5305 /src/gatscon/mainwnd.cpp
parent6aefa6632023c99c5b91bae0e099df94fa69d890 (diff)
downloadlibgats-d269a39f27e2dcd57d0e3362ef3a7fd9ad3f3639.tar.gz
libgats-d269a39f27e2dcd57d0e3362ef3a7fd9ad3f3639.tar.bz2
libgats-d269a39f27e2dcd57d0e3362ef3a7fd9ad3f3639.tar.xz
libgats-d269a39f27e2dcd57d0e3362ef3a7fd9ad3f3639.zip
GatsCon can read files now, but it can't save them, or edit them yet. That'll
be coming eventually.
Diffstat (limited to 'src/gatscon/mainwnd.cpp')
-rw-r--r--src/gatscon/mainwnd.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gatscon/mainwnd.cpp b/src/gatscon/mainwnd.cpp
index f20a531..628988e 100644
--- a/src/gatscon/mainwnd.cpp
+++ b/src/gatscon/mainwnd.cpp
@@ -2,10 +2,13 @@
2 2
3#include "clientwidget.h" 3#include "clientwidget.h"
4#include "proxywidget.h" 4#include "proxywidget.h"
5#include "filewidget.h"
5 6
6#include "connectdlg.h" 7#include "connectdlg.h"
7#include "setupproxydlg.h" 8#include "setupproxydlg.h"
8 9
10#include <QFileDialog>
11
9MainWnd::MainWnd() 12MainWnd::MainWnd()
10{ 13{
11 setupUi( this ); 14 setupUi( this );
@@ -44,5 +47,14 @@ void MainWnd::proxy()
44 47
45void MainWnd::open() 48void MainWnd::open()
46{ 49{
50 QString sFile = QFileDialog::getOpenFileName(
51 this, "GatsCon - open gats file"
52 );
53 if( sFile.isEmpty() )
54 return;
55
56 setCentralWidget(
57 new FileWidget( this, sFile )
58 );
47} 59}
48 60