Added Go to Pos dialog implementation.
Implemented "Go To... Ctrl+G" menu point.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@158 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 1531b2b..5cddf85 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -28,6 +28,7 @@
#include <rfbplayer/rfbplayer.h>
#include <rfbplayer/utils.h>
#include <rfbplayer/resource.h>
+#include <rfbplayer/GotoPosDialog.h>
using namespace rfb;
using namespace rfb::win32;
@@ -324,6 +325,15 @@
setPaused(true);
}
break;
+ case ID_GOTO:
+ {
+ GotoPosDialog gotoPosDlg;
+ if (gotoPosDlg.showDialog()) {
+ setPos(gotoPosDlg.getPos());
+ updatePos(getTimeOffset());
+ }
+ }
+ break;
case ID_FULLSCREEN:
MessageBox(getMainHandle(), "It is not working yet!", "RfbPlayer", MB_OK);
break;