Added about dialog to the player.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@263 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 9a181a5..b028d63 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -24,10 +24,11 @@
#include <rfb_win32/Win32Util.h>
#include <rfb_win32/WMShatter.h>
+#include <rfb_win32/AboutDialog.h>
#include <rfbplayer/PixelFormatList.h>
#include <rfbplayer/rfbplayer.h>
-
+
using namespace rfb;
using namespace rfb::win32;
@@ -79,6 +80,16 @@
#define ID_SPEED_UPDOWN 570
//
+// -=- AboutDialog global values
+//
+
+const WORD rfb::win32::AboutDialog::DialogId = IDD_ABOUT;
+const WORD rfb::win32::AboutDialog::Copyright = IDC_COPYRIGHT;
+const WORD rfb::win32::AboutDialog::Version = IDC_VERSION;
+const WORD rfb::win32::AboutDialog::BuildTime = IDC_BUILDTIME;
+const WORD rfb::win32::AboutDialog::Description = IDC_DESCRIPTION;
+
+//
// -=- RfbPlayerClass
//
@@ -393,6 +404,9 @@
MessageBox(getMainHandle(),
usage_msg, "RfbPlayer", MB_OK | MB_ICONINFORMATION);
break;
+ case ID_ABOUT:
+ AboutDialog::instance.showDialog();
+ break;
}
break;