summaryrefslogtreecommitdiffstats
path: root/vncviewer/ServerDialog.h
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2012-08-08 11:49:01 +0000
committerPeter Åstrand <astrand@cendio.se>2012-08-08 11:49:01 +0000
commit8a2b0810dc4a5ad2adc921b6b74a2d6dbdcc6f28 (patch)
treee4118453fc5774a5346b8ecf7c694fe54c8e0ce4 /vncviewer/ServerDialog.h
parent49b1157ffb3b50afcb0ccf99d7af5ee8c30e5902 (diff)
downloadtigervnc-8a2b0810dc4a5ad2adc921b6b74a2d6dbdcc6f28.tar.gz
tigervnc-8a2b0810dc4a5ad2adc921b6b74a2d6dbdcc6f28.zip
Make it possible to load and save configuration files. Also, when
connecting, the options are saved as default settings. This patch fixes SF bugs 3481470 and 3499216. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4950 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/ServerDialog.h')
-rw-r--r--vncviewer/ServerDialog.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/vncviewer/ServerDialog.h b/vncviewer/ServerDialog.h
index 052eb62f..402d8ba8 100644
--- a/vncviewer/ServerDialog.h
+++ b/vncviewer/ServerDialog.h
@@ -21,6 +21,7 @@
#include <FL/Fl_Window.H>
#include <FL/Fl_Input.H>
+#include <FL/Fl_File_Chooser.H>
class ServerDialog : public Fl_Window {
protected:
@@ -28,13 +29,15 @@ protected:
~ServerDialog();
public:
- static const char *run();
+ static const char *run(const char* servername);
protected:
- static void handleAbout(Fl_Widget *widget, void *data);
static void handleOptions(Fl_Widget *widget, void *data);
+ static void handleLoad(Fl_Widget *widget, void *data);
+ static void handleSaveAs(Fl_Widget *widget, void *data);
+ static void handleAbout(Fl_Widget *widget, void *data);
static void handleCancel(Fl_Widget *widget, void *data);
- static void handleOK(Fl_Widget *widget, void *data);
+ static void handleConnect(Fl_Widget *widget, void *data);
protected:
Fl_Input *serverName;