summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-24 15:47:21 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-24 15:47:21 (GMT)
commitad92f34fea4c565a3f6698c5bc620797be9c64fe (patch)
tree6e4c0228c3c668722db9c338305ddc033c721f8d /Source/MFCDialog
parent4d036f44f5fd4cee2859b7a4bdf59411cd0c0124 (diff)
downloadCMake-ad92f34fea4c565a3f6698c5bc620797be9c64fe.zip
CMake-ad92f34fea4c565a3f6698c5bc620797be9c64fe.tar.gz
CMake-ad92f34fea4c565a3f6698c5bc620797be9c64fe.tar.bz2
added version number
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetup.rc19
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp4
-rw-r--r--Source/MFCDialog/resource.h3
3 files changed, 16 insertions, 10 deletions
diff --git a/Source/MFCDialog/CMakeSetup.rc b/Source/MFCDialog/CMakeSetup.rc
index ef1c96a..8be968b 100644
--- a/Source/MFCDialog/CMakeSetup.rc
+++ b/Source/MFCDialog/CMakeSetup.rc
@@ -89,25 +89,26 @@ IDD_CMakeSetupDialog_DIALOG DIALOGEX 0, 0, 375, 226
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "CMakeSetupDialog"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
+FONT 8, "MS Sans Serif"
BEGIN
- DEFPUSHBUTTON "Close",IDOK,231,206,50,14
- PUSHBUTTON "Browse...",IDC_BUTTON2,269,5,43,13
- LTEXT "Where is the source code:",IDC_STATIC,39,6,86,9
- PUSHBUTTON "Browse...",IDC_BUTTON3,268,25,43,13
- LTEXT "Where do you want to build the binaries:",IDC_STATIC,1,
+ DEFPUSHBUTTON "Close",IDOK,219,206,50,14
+ PUSHBUTTON "Browse...",IDC_BUTTON2,286,5,43,13
+ RTEXT "Where is the source code:",IDC_STATIC,52,6,86,9
+ PUSHBUTTON "Browse...",IDC_BUTTON3,286,25,43,13
+ RTEXT "Where do you want to build the binaries:",IDC_STATIC,10,
27,128,9
- PUSHBUTTON "Build Project Files",IDC_BuildProjects,81,205,67,15
+ PUSHBUTTON "Build Project Files",IDC_BuildProjects,95,205,67,15
GROUPBOX "Cache Values",IDC_STATIC,9,43,356,141
LISTBOX IDC_LIST2,15,55,344,122,LBS_OWNERDRAWVARIABLE |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_HSCROLL | WS_TABSTOP
CTEXT "Right click on cache entries for additional options",
IDC_STATIC,19,190,333,11
- COMBOBOX IDC_WhereBuild,129,26,133,68,CBS_DROPDOWN | WS_VSCROLL |
+ COMBOBOX IDC_WhereBuild,147,25,133,68,CBS_DROPDOWN | WS_VSCROLL |
WS_TABSTOP
- COMBOBOX IDC_WhereSource,127,6,135,66,CBS_DROPDOWN | WS_VSCROLL |
+ COMBOBOX IDC_WhereSource,147,5,133,66,CBS_DROPDOWN | WS_VSCROLL |
WS_TABSTOP
+ LTEXT "Static",IDC_CMAKE_VERSION,3,211,70,13,SS_CENTERIMAGE
END
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 419024b..c93e652 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -137,6 +137,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
this->LoadFromRegistry();
// try to load the cmake cache from disk
this->LoadCacheFromDiskToGUI();
+ // Set the version number
+ char tmp[1024];
+ sprintf(tmp,"Version %s", cmMakefile::GetVersion());
+ SetDlgItemText(IDC_CMAKE_VERSION, tmp);
return TRUE; // return TRUE unless you set the focus to a control
}
diff --git a/Source/MFCDialog/resource.h b/Source/MFCDialog/resource.h
index 69771e0..cd9347b 100644
--- a/Source/MFCDialog/resource.h
+++ b/Source/MFCDialog/resource.h
@@ -14,6 +14,7 @@
#define IDC_BuildProjects 1006
#define IDC_LIST2 1007
#define IDC_LIST3 1010
+#define IDC_CMAKE_VERSION 1014
// Next default values for new objects
//
@@ -21,7 +22,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 133
#define _APS_NEXT_COMMAND_VALUE 32771
-#define _APS_NEXT_CONTROL_VALUE 1014
+#define _APS_NEXT_CONTROL_VALUE 1015
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif