|
From: <ha...@us...> - 2003-02-11 22:20:21
|
Update of /cvsroot/decaldev/source/DenAgent
In directory sc8-pr-cvs1:/tmp/cvs-serv308
Modified Files:
DenAgent.rc OptionsDlg.cpp resource.h
Log Message:
timestamps!
Index: DenAgent.rc
===================================================================
RCS file: /cvsroot/decaldev/source/DenAgent/DenAgent.rc,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** DenAgent.rc 3 Jan 2003 00:55:38 -0000 1.62
--- DenAgent.rc 11 Feb 2003 22:20:07 -0000 1.63
***************
*** 123,127 ****
END
! IDD_OPTIONS DIALOGEX 0, 0, 271, 214
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Decal Options"
--- 123,127 ----
END
! IDD_OPTIONS DIALOGEX 0, 0, 271, 255
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Decal Options"
***************
*** 165,176 ****
CONTROL "One View",IDC_VIEWSINGLE,"Button",BS_AUTORADIOBUTTON,14,
147,52,11
! GROUPBOX "Font",IDC_STATIC,7,178,257,31
CONTROL "Default",IDC_DEFAULT_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,14,190,39,10
CONTROL "AC Client",IDC_CLIENT_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_TABSTOP,56,190,45,10
CONTROL "Custom",IDC_CUSTOM_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_TABSTOP,105,190,39,10
! EDITTEXT IDC_CUSTOM_FONT_EDIT,147,188,117,14,ES_AUTOHSCROLL
GROUPBOX "Bar Options",IDC_STATIC,79,138,95,37,WS_GROUP
CONTROL "Draw on Radar",IDC_RADARYES,"Button",BS_AUTORADIOBUTTON,
--- 165,176 ----
CONTROL "One View",IDC_VIEWSINGLE,"Button",BS_AUTORADIOBUTTON,14,
147,52,11
! GROUPBOX "Font",IDC_STATIC,7,217,257,31
CONTROL "Default",IDC_DEFAULT_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,14,230,39,10
CONTROL "AC Client",IDC_CLIENT_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_TABSTOP,56,230,45,10
CONTROL "Custom",IDC_CUSTOM_FONT_RADIO,"Button",
! BS_AUTORADIOBUTTON | WS_TABSTOP,105,230,39,10
! EDITTEXT IDC_CUSTOM_FONT_EDIT,147,228,117,14,ES_AUTOHSCROLL
GROUPBOX "Bar Options",IDC_STATIC,79,138,95,37,WS_GROUP
CONTROL "Draw on Radar",IDC_RADARYES,"Button",BS_AUTORADIOBUTTON,
***************
*** 178,181 ****
--- 178,187 ----
CONTROL "Don't Draw on Radar",IDC_RADARNO,"Button",
BS_AUTORADIOBUTTON,84,159,81,11
+ GROUPBOX "Static",IDC_STATIC,0,0,48,40
+ GROUPBOX "Static",IDC_STATIC,7,176,94,40
+ CONTROL "Timestamps Enabled",IDC_TIMESTAMPON,"Button",
+ BS_AUTORADIOBUTTON,14,186,86,13
+ CONTROL "Timestamps Disabled",IDC_TIMESTAMPOFF,"Button",
+ BS_AUTORADIOBUTTON,14,202,82,12
END
***************
*** 306,310 ****
VERTGUIDE, 241
TOPMARGIN, 7
! BOTTOMMARGIN, 207
END
--- 312,316 ----
VERTGUIDE, 241
TOPMARGIN, 7
! BOTTOMMARGIN, 248
END
Index: OptionsDlg.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/DenAgent/OptionsDlg.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** OptionsDlg.cpp 3 Jan 2003 00:55:38 -0000 1.11
--- OptionsDlg.cpp 11 Feb 2003 22:20:09 -0000 1.12
***************
*** 108,111 ****
--- 108,116 ----
::SendMessage( GetDlgItem( IDC_RADARYES )->m_hWnd, BM_SETCHECK, dwRadarDraw, 0 );
+ DWORD dwTimestamp = 0;
+ key.QueryValue( dwTimestamp, "Timestamp" );
+ ::SendMessage( GetDlgItem( IDC_TIMESTAMPOFF )->m_hWnd, BM_SETCHECK, !dwTimestamp, 0 );
+ ::SendMessage( GetDlgItem( IDC_TIMESTAMPON )->m_hWnd, BM_SETCHECK, dwTimestamp, 0 );
+
// Get font type
DWORD dwFontType;
***************
*** 235,238 ****
--- 240,251 ----
key.SetValue( (DWORD) 0, "BarDelta" );
}
+
+ DWORD dwTimestamp = 1;
+ key.QueryValue( dwTimestamp, "Timestamp" );
+
+ if( ::SendMessage( GetDlgItem( IDC_TIMESTAMPON )->m_hWnd, BM_GETCHECK, 0, 0 ) )
+ key.SetValue( (DWORD) 1, "Timestamp" );
+ else
+ key.SetValue( (DWORD) 0, "Timestamp" );
if(::SendMessage(GetDlgItem(IDC_BLENDINGGDIPLUS)->m_hWnd, BM_GETCHECK, 0, 0))
Index: resource.h
===================================================================
RCS file: /cvsroot/decaldev/source/DenAgent/resource.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** resource.h 3 Jan 2003 00:55:38 -0000 1.17
--- resource.h 11 Feb 2003 22:20:10 -0000 1.18
***************
*** 70,73 ****
--- 70,76 ----
#define IDC_RADIO2 1043
#define IDC_RADARNO 1043
+ #define IDC_RADIO1 1044
+ #define IDC_TIMESTAMPON 1044
+ #define IDC_TIMESTAMPOFF 1045
#define ID_SYSTRAY_CONFIGURE 32771
#define ID_SYSTRAY_EXIT 32772
***************
*** 79,83 ****
#define _APS_NEXT_RESOURCE_VALUE 149
#define _APS_NEXT_COMMAND_VALUE 32776
! #define _APS_NEXT_CONTROL_VALUE 1044
#define _APS_NEXT_SYMED_VALUE 105
#endif
--- 82,86 ----
#define _APS_NEXT_RESOURCE_VALUE 149
#define _APS_NEXT_COMMAND_VALUE 32776
! #define _APS_NEXT_CONTROL_VALUE 1046
#define _APS_NEXT_SYMED_VALUE 105
#endif
|