wgui-cvs Mailing List for wGui
Status: Beta
Brought to you by:
greenwire
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
(47) |
May
(7) |
Jun
(29) |
Jul
(41) |
Aug
(5) |
Sep
(4) |
Oct
|
Nov
(5) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(14) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(16) |
Oct
(1) |
Nov
|
Dec
(5) |
2006 |
Jan
(5) |
Feb
(10) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: Rob W. <gre...@us...> - 2006-10-31 19:02:01
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16897/includes Modified Files: wg_resource_handle.h wutil_log.h Log Message: Index: wutil_log.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wutil_log.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wutil_log.h 3 Jun 2004 18:40:52 -0000 1.5 --- wutil_log.h 31 Oct 2006 19:01:57 -0000 1.6 *************** *** 44,47 **** --- 44,48 ---- { //! The constructor + SLogEntry(void) : m_TimeStamp(0), m_iSeverity(0) {} SLogEntry(time_t TimeStamp, unsigned int iSeverity, const std::string& sMessage) : m_TimeStamp(TimeStamp), m_iSeverity(iSeverity), m_sMessage(sMessage) { } Index: wg_resource_handle.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_resource_handle.h,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wg_resource_handle.h 3 Jun 2004 19:14:57 -0000 1.19 --- wg_resource_handle.h 31 Oct 2006 19:01:57 -0000 1.20 *************** *** 50,53 **** --- 50,56 ---- CResourceHandle(TResourceId resId); + //! CResourceHandle default constructor creates only a null resource + CResourceHandle(void) : m_ResourceId(NULL_RESOURCE_ID) {} + //! A copying constructor //! \param resHandle An existing resource handle that will be cloned |
From: Rob W. <gre...@us...> - 2006-10-31 19:02:01
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16897 Added Files: wGui-VS8.sln wGui-VS8.vcproj Log Message: --- NEW FILE: wGui-VS8.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="wGui" ProjectGUID="{494440B0-0279-402C-863D-DB79507585A3}" Keyword="Win32Proj" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="lib" IntermediateDirectory="Debug" ConfigurationType="4" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="includes" PreprocessorDefinitions="WIN32;_DEBUG;_LIB;DEBUG;_CRT_SECURE_NO_DEPRECATE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" ForceConformanceInForLoopScope="true" RuntimeTypeInfo="true" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="true" Detect64BitPortabilityProblems="true" DebugInformationFormat="4" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/wGuid.lib" IgnoreAllDefaultLibraries="true" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="lib" IntermediateDirectory="Release" ConfigurationType="4" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" /> <Tool Name="VCCLCompilerTool" Optimization="1" InlineFunctionExpansion="2" OmitFramePointers="true" AdditionalIncludeDirectories="includes" PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" ForceConformanceInForLoopScope="true" RuntimeTypeInfo="true" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="false" Detect64BitPortabilityProblems="true" DebugInformationFormat="3" DisableSpecificWarnings="4702" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/wGui.lib" IgnoreAllDefaultLibraries="true" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm" > <File RelativePath="src\std_ex.cpp" > </File> <File RelativePath="src\wg_application.cpp" > </File> <File RelativePath="src\wg_button.cpp" > </File> <File RelativePath="src\wg_checkbox.cpp" > </File> <File RelativePath="src\wg_color.cpp" > </File> <File RelativePath="src\wg_dropdown.cpp" > </File> <File RelativePath="src\wg_editbox.cpp" > </File> <File RelativePath="src\wg_fontengine.cpp" > </File> <File RelativePath="src\wg_frame.cpp" > </File> <File RelativePath="src\wg_groupbox.cpp" > </File> <File RelativePath="src\wg_label.cpp" > </File> <File RelativePath="src\wg_listbox.cpp" > </File> <File RelativePath="src\wg_menu.cpp" > </File> <File RelativePath="src\wg_message.cpp" > </File> <File RelativePath="src\wg_message_client.cpp" > </File> <File RelativePath="src\wg_message_server.cpp" > </File> <File RelativePath="src\wg_messagebox.cpp" > </File> <File RelativePath="src\wg_painter.cpp" > </File> <File RelativePath="src\wg_picture.cpp" > </File> <File RelativePath="src\wg_point.cpp" > </File> <File RelativePath="src\wg_progress.cpp" > </File> <File RelativePath="src\wg_radiobutton.cpp" > </File> <File RelativePath="src\wg_rect.cpp" > </File> <File RelativePath="src\wg_renderedstring.cpp" > </File> <File RelativePath="src\wg_resource_handle.cpp" > </File> <File RelativePath="src\wg_resources.cpp" > </File> <File RelativePath="src\wg_scrollbar.cpp" > </File> <File RelativePath="src\wg_tab.cpp" > </File> <File RelativePath="src\wg_textbox.cpp" > </File> <File RelativePath="src\wg_timer.cpp" > </File> <File RelativePath="src\wg_toolbar.cpp" > </File> <File RelativePath="src\wg_tooltip.cpp" > </File> <File RelativePath="src\wg_tree.cpp" > </File> <File RelativePath="src\wg_view.cpp" > </File> <File RelativePath="src\wg_window.cpp" > </File> <File RelativePath="src\wutil_config_store.cpp" > </File> <File RelativePath="src\wutil_log.cpp" > </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl;inc" > <File RelativePath="includes\std_ex.h" > </File> <File RelativePath="includes\wg_application.h" > </File> <File RelativePath="includes\wg_button.h" > </File> <File RelativePath="includes\wg_checkbox.h" > </File> <File RelativePath="includes\wg_color.h" > </File> <File RelativePath="includes\wg_dropdown.h" > </File> <File RelativePath="includes\wg_editbox.h" > </File> <File RelativePath="includes\wg_error.h" > </File> <File RelativePath="includes\wg_fontengine.h" > </File> <File RelativePath="includes\wg_frame.h" > </File> <File RelativePath="includes\wg_groupbox.h" > </File> <File RelativePath="includes\wg_label.h" > </File> <File RelativePath="includes\wg_listbox.h" > </File> <File RelativePath="includes\wg_menu.h" > </File> <File RelativePath="includes\wg_message.h" > </File> <File RelativePath="includes\wg_message_client.h" > </File> <File RelativePath="includes\wg_message_server.h" > </File> <File RelativePath="includes\wg_messagebox.h" > </File> <File RelativePath="includes\wg_painter.h" > </File> <File RelativePath="includes\wg_picture.h" > </File> <File RelativePath="includes\wg_point.h" > </File> <File RelativePath="includes\wg_progress.h" > </File> <File RelativePath="includes\wg_radiobutton.h" > </File> <File RelativePath="includes\wg_range_control.h" > </File> <File RelativePath="includes\wg_rect.h" > </File> <File RelativePath="includes\wg_renderedstring.h" > </File> <File RelativePath="includes\wg_resource_handle.h" > </File> <File RelativePath="includes\wg_resources.h" > </File> <File RelativePath="includes\wg_scrollbar.h" > </File> <File RelativePath="includes\wg_tab.h" > </File> <File RelativePath="includes\wg_textbox.h" > </File> <File RelativePath="includes\wg_timer.h" > </File> <File RelativePath="includes\wg_toolbar.h" > </File> <File RelativePath="includes\wg_tooltip.h" > </File> <File RelativePath="includes\wg_tree.h" > </File> <File RelativePath="includes\wg_view.h" > </File> <File RelativePath="includes\wg_window.h" > </File> <File RelativePath="includes\wgui.h" > </File> <File RelativePath=".\Includes\wgui_include_config.h" > </File> <File RelativePath=".\Includes\wgui_win32_config.h" > </File> <File RelativePath="includes\wutil_config_store.h" > </File> <File RelativePath="includes\wutil_debug.h" > </File> <File RelativePath="includes\wutil_log.h" > </File> </Filter> <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" > </Filter> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: wGui-VS8.sln --- Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wGui", "wGui-VS8.vcproj", "{494440B0-0279-402C-863D-DB79507585A3}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestApp1", "tests\TestApp1-VS8.vcproj", "{02E3156D-F537-4FCD-A01B-61E6852C590D}" ProjectSection(ProjectDependencies) = postProject {494440B0-0279-402C-863D-DB79507585A3} = {494440B0-0279-402C-863D-DB79507585A3} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CalcApp", "tests\CalcApp-VS8.vcproj", "{EE71BD46-2A7E-454D-AEBA-C1BD5C4BFDFE}" ProjectSection(ProjectDependencies) = postProject {494440B0-0279-402C-863D-DB79507585A3} = {494440B0-0279-402C-863D-DB79507585A3} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestApp2", "tests\TestApp2-VS8.vcproj", "{C3F70836-6B33-4864-8E52-1988DC614D2F}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MessagingTest", "tests\MessagingTest-VS8.vcproj", "{CB9F92EA-850A-4C69-A322-1F4F40F5E14F}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UnitTests", "tests\UnitTests-VS8.vcproj", "{8DCE4CA7-207C-461D-91F2-D9E0A8BD3E9C}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConfigEditor", "tests\ConfigEditor-VS8.vcproj", "{C91B8021-E5BE-4F19-80FC-AE5CDA184279}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Notepad", "tests\Notepad-VS8.vcproj", "{E6670BD6-A382-4D8E-AA95-2C9C45D6D4E2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {494440B0-0279-402C-863D-DB79507585A3}.Debug|Win32.ActiveCfg = Debug|Win32 {494440B0-0279-402C-863D-DB79507585A3}.Debug|Win32.Build.0 = Debug|Win32 {494440B0-0279-402C-863D-DB79507585A3}.Release|Win32.ActiveCfg = Release|Win32 {494440B0-0279-402C-863D-DB79507585A3}.Release|Win32.Build.0 = Release|Win32 {02E3156D-F537-4FCD-A01B-61E6852C590D}.Debug|Win32.ActiveCfg = Debug|Win32 {02E3156D-F537-4FCD-A01B-61E6852C590D}.Debug|Win32.Build.0 = Debug|Win32 {02E3156D-F537-4FCD-A01B-61E6852C590D}.Release|Win32.ActiveCfg = Release|Win32 {02E3156D-F537-4FCD-A01B-61E6852C590D}.Release|Win32.Build.0 = Release|Win32 {EE71BD46-2A7E-454D-AEBA-C1BD5C4BFDFE}.Debug|Win32.ActiveCfg = Debug|Win32 {EE71BD46-2A7E-454D-AEBA-C1BD5C4BFDFE}.Release|Win32.ActiveCfg = Release|Win32 {C3F70836-6B33-4864-8E52-1988DC614D2F}.Debug|Win32.ActiveCfg = Debug|Win32 {C3F70836-6B33-4864-8E52-1988DC614D2F}.Debug|Win32.Build.0 = Debug|Win32 {C3F70836-6B33-4864-8E52-1988DC614D2F}.Release|Win32.ActiveCfg = Release|Win32 {C3F70836-6B33-4864-8E52-1988DC614D2F}.Release|Win32.Build.0 = Release|Win32 {CB9F92EA-850A-4C69-A322-1F4F40F5E14F}.Debug|Win32.ActiveCfg = Debug|Win32 {CB9F92EA-850A-4C69-A322-1F4F40F5E14F}.Debug|Win32.Build.0 = Debug|Win32 {CB9F92EA-850A-4C69-A322-1F4F40F5E14F}.Release|Win32.ActiveCfg = Release|Win32 {CB9F92EA-850A-4C69-A322-1F4F40F5E14F}.Release|Win32.Build.0 = Release|Win32 {8DCE4CA7-207C-461D-91F2-D9E0A8BD3E9C}.Debug|Win32.ActiveCfg = Debug|Win32 {8DCE4CA7-207C-461D-91F2-D9E0A8BD3E9C}.Debug|Win32.Build.0 = Debug|Win32 {8DCE4CA7-207C-461D-91F2-D9E0A8BD3E9C}.Release|Win32.ActiveCfg = Release|Win32 {8DCE4CA7-207C-461D-91F2-D9E0A8BD3E9C}.Release|Win32.Build.0 = Release|Win32 {C91B8021-E5BE-4F19-80FC-AE5CDA184279}.Debug|Win32.ActiveCfg = Debug|Win32 {C91B8021-E5BE-4F19-80FC-AE5CDA184279}.Release|Win32.ActiveCfg = Release|Win32 {E6670BD6-A382-4D8E-AA95-2C9C45D6D4E2}.Debug|Win32.ActiveCfg = Debug|Win32 {E6670BD6-A382-4D8E-AA95-2C9C45D6D4E2}.Debug|Win32.Build.0 = Debug|Win32 {E6670BD6-A382-4D8E-AA95-2C9C45D6D4E2}.Release|Win32.ActiveCfg = Release|Win32 {E6670BD6-A382-4D8E-AA95-2C9C45D6D4E2}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal |
From: Rob W. <gre...@us...> - 2006-02-24 16:06:28
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17760/includes Modified Files: wgui_win32_config.h Log Message: version bump Index: wgui_win32_config.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wgui_win32_config.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wgui_win32_config.h 29 Dec 2005 13:46:18 -0000 1.12 --- wgui_win32_config.h 24 Feb 2006 16:06:14 -0000 1.13 *************** *** 3,6 **** /* Version number of package */ ! #define VERSION "0.4.2" --- 3,6 ---- /* Version number of package */ ! #define VERSION "0.4.3" |
From: Rob W. <gre...@us...> - 2006-02-24 16:06:24
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17760 Modified Files: CHANGES NEWS configure.in Added Files: DevNotes Log Message: version bump Index: NEWS =================================================================== RCS file: /cvsroot/wgui/wgui/NEWS,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** NEWS 5 Oct 2005 01:48:11 -0000 1.11 --- NEWS 24 Feb 2006 16:06:14 -0000 1.12 *************** *** 1,4 **** --- 1,6 ---- For more current news, see Sourceforge at http://sourceforge.net/projects/wgui/ + 2/22/06 - Version 0.4.2 is released. + 10/4/05 - Version 0.4.1 is released. Index: CHANGES =================================================================== RCS file: /cvsroot/wgui/wgui/CHANGES,v retrieving revision 1.163 retrieving revision 1.164 diff -C2 -d -r1.163 -r1.164 *** CHANGES 15 Feb 2006 16:09:26 -0000 1.163 --- CHANGES 24 Feb 2006 16:06:14 -0000 1.164 *************** *** 1,2 **** --- 1,5 ---- + 0.4.2 -> 0.4.3 + + 0.4.1 -> 0.4.2 + Added CDropDown: GetFirstSelectedIndex() which returns the index of the first selected item (courtesy of Jurgen De Backer) --- NEW FILE: DevNotes --- Version information can be found: Configure.in Wgui_win32_config.h Release Checklist: Ensure a clean build Update doc files: Authors, Bugs, Changes, Install, News, Readme Run Doxygen CVS Commit make dist screenshot cvs stat upload screenshot to boxedchaos upload to SourceForge SourceForge release Freshmeat release update wgui.sourceforge.net upload docs/cvsstats CVS Tag version increment Index: configure.in =================================================================== RCS file: /cvsroot/wgui/wgui/configure.in,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** configure.in 29 Dec 2005 13:46:18 -0000 1.18 --- configure.in 24 Feb 2006 16:06:14 -0000 1.19 *************** *** 5,9 **** WGUI_VERSION_MAJOR=0 WGUI_VERSION_MINOR=4 ! WGUI_VERSION_REVISION=2 WGUI_VERSION=$WGUI_VERSION_MAJOR.$WGUI_VERSION_MINOR.$WGUI_VERSION_REVISION VERSION=$WGUI_VERSION --- 5,9 ---- WGUI_VERSION_MAJOR=0 WGUI_VERSION_MINOR=4 ! WGUI_VERSION_REVISION=3 WGUI_VERSION=$WGUI_VERSION_MAJOR.$WGUI_VERSION_MINOR.$WGUI_VERSION_REVISION VERSION=$WGUI_VERSION |
From: Rob W. <gre...@us...> - 2006-02-15 16:09:38
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25476 Modified Files: CHANGES README Log Message: Textbox warning fix and CFrame transparency-while-dragging disabled. Index: README =================================================================== RCS file: /cvsroot/wgui/wgui/README,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** README 8 Feb 2006 21:36:58 -0000 1.23 --- README 15 Feb 2006 16:09:26 -0000 1.24 *************** *** 7,10 **** --- 7,13 ---- probably mean a version bump to 0.5.0. + The transparency effect in CFrame dragging had to be disabled. It was causing a crash when a frame was extended off + the edge of a view. + 0.4.1 Index: CHANGES =================================================================== RCS file: /cvsroot/wgui/wgui/CHANGES,v retrieving revision 1.162 retrieving revision 1.163 diff -C2 -d -r1.162 -r1.163 *** CHANGES 11 Feb 2006 00:08:05 -0000 1.162 --- CHANGES 15 Feb 2006 16:09:26 -0000 1.163 *************** *** 12,15 **** --- 12,16 ---- + Changed CRenderedString: All the parameters for GetMetrics() are now optional + Changed CTextBox: Home/End on a multi-line box will now move to the previous/next \n. Ctrl + Home/End wil move to the beginning/end of the entire text. + + Bugfix CFrame: The CFrame transparency effect added in 0.4.1 was causing a crash in certain circumstances, this has been disabled until a solution can be figured out + Bugfix CListBox: Adding and removing items now sets the scrollbar correctly so you can't scroll past everything in the window (courtesy of Jurgen De Backer) + Bugfix CTextBox: Fixed a crash when selecting text in certian situations. |
From: Rob W. <gre...@us...> - 2006-02-15 16:09:38
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25476/includes Modified Files: wg_textbox.h Log Message: Textbox warning fix and CFrame transparency-while-dragging disabled. Index: wg_textbox.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_textbox.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wg_textbox.h 3 Jun 2004 19:10:52 -0000 1.12 --- wg_textbox.h 15 Feb 2006 16:09:27 -0000 1.13 *************** *** 155,159 **** unsigned char m_FontSize; //!< The font size (in points) std::string::size_type m_SelStart; //!< Selection start point, in characters ! int m_SelLength; //!< Selection length, in characters std::string::size_type m_DragStart; //!< The position where the draw started bool m_bReadOnly; //!< If true, the text of the control cannot be changed --- 155,159 ---- unsigned char m_FontSize; //!< The font size (in points) std::string::size_type m_SelStart; //!< Selection start point, in characters ! long int m_SelLength; //!< Selection length, in characters std::string::size_type m_DragStart; //!< The position where the draw started bool m_bReadOnly; //!< If true, the text of the control cannot be changed |
From: Rob W. <gre...@us...> - 2006-02-15 16:09:38
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25476/src Modified Files: wg_frame.cpp wg_textbox.cpp Log Message: Textbox warning fix and CFrame transparency-while-dragging disabled. Index: wg_textbox.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_textbox.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** wg_textbox.cpp 11 Feb 2006 00:05:29 -0000 1.35 --- wg_textbox.cpp 15 Feb 2006 16:09:27 -0000 1.36 *************** *** 777,781 **** if (pKeyboardMessage->Modifiers & KMOD_SHIFT) { ! m_SelLength = endPos; } else --- 777,781 ---- if (pKeyboardMessage->Modifiers & KMOD_SHIFT) { ! m_SelLength = stdex::safe_static_cast<long int>(endPos); } else Index: wg_frame.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_frame.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** wg_frame.cpp 29 Dec 2005 13:46:19 -0000 1.33 --- wg_frame.cpp 15 Feb 2006 16:09:27 -0000 1.34 *************** *** 152,158 **** } } ! // this is a quick trick to convert the surface to being semi-transparent ! CPainter Painter(&FloatingSurface, CPainter::PAINT_AND); ! Painter.DrawRect(m_FrameGhostRect + Offset, true, CRGBColor(0xFF, 0xFF, 0xFF, 0x80), CRGBColor(0xFF, 0xFF, 0xFF, 0x80)); } } --- 152,159 ---- } } ! // // this is a quick trick to convert the surface to being semi-transparent ! // this is temporarily disabled due to it causing a crash when the frame extends beyond the borders of the parent view ! // CPainter Painter(&FloatingSurface, CPainter::PAINT_AND); ! // Painter.DrawRect(m_FrameGhostRect + Offset, true, CRGBColor(0xFF, 0xFF, 0xFF, 0x80), CRGBColor(0xFF, 0xFF, 0xFF, 0x80)); } } |
From: Willie Z. <boa...@us...> - 2006-02-11 00:08:17
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18314 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/wgui/wgui/CHANGES,v retrieving revision 1.161 retrieving revision 1.162 diff -C2 -d -r1.161 -r1.162 *** CHANGES 27 Jan 2006 16:59:39 -0000 1.161 --- CHANGES 11 Feb 2006 00:08:05 -0000 1.162 *************** *** 11,15 **** --- 11,17 ---- + Changed CGroupBox: The sText parameter on the constructor is now optional and will default to an empty string + Changed CRenderedString: All the parameters for GetMetrics() are now optional + + Changed CTextBox: Home/End on a multi-line box will now move to the previous/next \n. Ctrl + Home/End wil move to the beginning/end of the entire text. + Bugfix CListBox: Adding and removing items now sets the scrollbar correctly so you can't scroll past everything in the window (courtesy of Jurgen De Backer) + + Bugfix CTextBox: Fixed a crash when selecting text in certian situations. 0.4.0 -> 0.4.1 |
From: Willie Z. <boa...@us...> - 2006-02-11 00:05:39
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17007/src Modified Files: wg_textbox.cpp Log Message: Chanegs to Home/End key behavior. Also fixed bug that would cause a crash when selecting text in a certian situation. Index: wg_textbox.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_textbox.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** wg_textbox.cpp 26 Sep 2005 18:37:48 -0000 1.34 --- wg_textbox.cpp 11 Feb 2006 00:05:29 -0000 1.35 *************** *** 238,242 **** if (CurLine == SelEndPoint.YPos()) { ! SelRect.SetRight(vCharRects.at(CurLine).at(SelEndPoint.XPos() - 1).Right() + vOffsets.at(CurLine).XPos() + m_ClientRect.Left() - m_pHorizontalScrollBar->GetValue() * 10); } --- 238,242 ---- if (CurLine == SelEndPoint.YPos()) { ! SelRect.SetRight(vCharRects.at(CurLine).at(SelEndPoint.XPos()).Left() + vOffsets.at(CurLine).XPos() + m_ClientRect.Left() - m_pHorizontalScrollBar->GetValue() * 10); } *************** *** 738,761 **** break; case SDLK_END: - if (pKeyboardMessage->Modifiers & KMOD_SHIFT) - { - m_SelLength = stdex::safe_static_cast<int>(sBuffer.length()) - stdex::safe_static_cast<int>(m_SelStart); - } - else { ! m_SelLength = 0; ! m_SelStart = sBuffer.length(); } break; case SDLK_HOME: - if (pKeyboardMessage->Modifiers & KMOD_SHIFT) { ! m_SelLength = stdex::safe_static_cast<int>(m_SelStart); ! m_SelStart = 0; ! } ! else ! { ! m_SelLength = 0; ! m_SelStart = 0; } break; --- 738,787 ---- break; case SDLK_END: { ! std::string::size_type endPos = sBuffer.length(); ! ! //If they're pressing Ctrl we want to move to the end of the text. ! //If they're not pressing Ctrl we want to move to the end of the current line. ! if ((pKeyboardMessage->Modifiers & KMOD_CTRL) == 0) ! { ! std::string::size_type lineEndPos = sBuffer.find("\n", m_SelStart + m_SelLength + 1); ! if (lineEndPos != std::string::npos) ! { ! endPos = lineEndPos; ! } ! } ! ! if (pKeyboardMessage->Modifiers & KMOD_SHIFT) ! { ! m_SelLength = stdex::safe_static_cast<int>(endPos) - stdex::safe_static_cast<int>(m_SelStart); ! } ! else ! { ! m_SelStart = endPos; ! } } break; case SDLK_HOME: { ! //If they're pressing Ctrl we want to move to the beginning of the text. ! //If they're not pressing Ctrl we want to move to the beginning of the current line. ! std::string::size_type endPos = 0; ! if ((pKeyboardMessage->Modifiers & KMOD_CTRL) == 0) ! { ! std::string::size_type lineEndPos = sBuffer.rfind("\n", m_SelStart + m_SelLength - 1); ! if (lineEndPos != std::string::npos) ! { ! endPos = lineEndPos + 1; ! } ! } ! if (pKeyboardMessage->Modifiers & KMOD_SHIFT) ! { ! m_SelLength = endPos; ! } ! else ! { ! m_SelLength = 0; ! m_SelStart = endPos; ! } } break; *************** *** 764,767 **** --- 790,796 ---- sBuffer.insert(m_SelStart++, 1, '\n'); break; + case SDLK_ESCAPE: + //do nothing on escape otherwise it inserts a weird character. + break; default: if (pKeyboardMessage->Unicode) |
From: Rob W. <gre...@us...> - 2006-02-08 21:44:44
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31056/src Modified Files: Makefile.am Log Message: Index: Makefile.am =================================================================== RCS file: /cvsroot/wgui/wgui/src/Makefile.am,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Makefile.am 27 Apr 2004 18:13:51 -0000 1.12 --- Makefile.am 8 Feb 2006 21:44:37 -0000 1.13 *************** *** 30,33 **** --- 30,34 ---- wg_point.cpp \ wg_progress.cpp \ + wg_radiobutton.cpp \ wg_rect.cpp \ wg_renderedstring.cpp \ |
From: Rob W. <gre...@us...> - 2006-02-08 21:37:07
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27989 Modified Files: README Log Message: Prep for 0.4.2 Index: README =================================================================== RCS file: /cvsroot/wgui/wgui/README,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** README 29 Dec 2005 13:46:18 -0000 1.22 --- README 8 Feb 2006 21:36:58 -0000 1.23 *************** *** 4,7 **** --- 4,9 ---- We owe him many thanks for his contributions. + The goal for the next release is to finally get unicode working. This will likely require some larger changes, and will + probably mean a version bump to 0.5.0. *************** *** 10,14 **** The most noticeable changes for this release involve the CFrame class. Frames now have a neat transparancy effect when you drag them. A CMessageBox class based on the CFrame now allows for simple message boxes. The plan for ! the next release is to extend this even further into same common dialogs, like a file selector. Unfortunately, there's still a problem with the popup menus that can cause a crash. I've removed a call to the Draw() method from the InsertMenuItem() method, which seems to have fixed the problem, even if it doesn't make --- 12,16 ---- The most noticeable changes for this release involve the CFrame class. Frames now have a neat transparancy effect when you drag them. A CMessageBox class based on the CFrame now allows for simple message boxes. The plan for ! the next release is to extend this even further into some common dialogs, like a file selector. Unfortunately, there's still a problem with the popup menus that can cause a crash. I've removed a call to the Draw() method from the InsertMenuItem() method, which seems to have fixed the problem, even if it doesn't make |
From: Rob W. <gre...@us...> - 2006-02-08 21:37:07
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27989/src Modified Files: Makefile.in Log Message: Prep for 0.4.2 Index: Makefile.in =================================================================== RCS file: /cvsroot/wgui/wgui/src/Makefile.in,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Makefile.in 22 Apr 2004 16:39:53 -0000 1.11 --- Makefile.in 8 Feb 2006 21:36:58 -0000 1.12 *************** *** 118,121 **** --- 118,122 ---- wg_point.cpp \ wg_progress.cpp \ + wg_radiobutton.cpp \ wg_rect.cpp \ wg_renderedstring.cpp \ |
From: Rob W. <gre...@us...> - 2006-01-27 17:33:19
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19665/src Modified Files: wg_listbox.cpp Log Message: Index: wg_listbox.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_listbox.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** wg_listbox.cpp 29 Dec 2005 13:46:19 -0000 1.50 --- wg_listbox.cpp 27 Jan 2006 17:33:08 -0000 1.51 *************** *** 55,59 **** this, CScrollBar::VERTICAL), m_pVScrollbar->SetMaxLimit(0); ! m_ClientRect = CRect(2, 2, m_WindowRect.Width() - 16, m_WindowRect.Height() - 4); m_BackgroundColor = COLOR_WHITE; CMessageServer::Instance().RegisterMessageClient(this, CMessage::KEYBOARD_KEYDOWN); --- 55,59 ---- this, CScrollBar::VERTICAL), m_pVScrollbar->SetMaxLimit(0); ! m_ClientRect = CRect(2, 2, m_WindowRect.Width() - 16, m_WindowRect.Height() - 2); m_BackgroundColor = COLOR_WHITE; CMessageServer::Instance().RegisterMessageClient(this, CMessage::KEYBOARD_KEYDOWN); |
From: Rob W. <gre...@us...> - 2006-01-27 16:59:48
|
Update of /cvsroot/wgui/wgui/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6271/tests Modified Files: CalcApp-VS71.vcproj MessagingTest-VS71.vcproj Notepad-VS71.vcproj TestApp1-VS71.vcproj TestApp2-VS71.vcproj Log Message: Fixed project files to ignore "unreached code" warning in std::lists. Other minor changes. Index: MessagingTest-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/MessagingTest-VS71.vcproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MessagingTest-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.3 --- MessagingTest-VS71.vcproj 27 Jan 2006 16:59:40 -0000 1.4 *************** *** 88,92 **** WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 88,93 ---- WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> Index: CalcApp-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/CalcApp-VS71.vcproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CalcApp-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.3 --- CalcApp-VS71.vcproj 27 Jan 2006 16:59:40 -0000 1.4 *************** *** 88,92 **** WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 88,93 ---- WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> Index: Notepad-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/Notepad-VS71.vcproj,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Notepad-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.4 --- Notepad-VS71.vcproj 27 Jan 2006 16:59:40 -0000 1.5 *************** *** 88,92 **** WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 88,93 ---- WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> Index: TestApp2-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/TestApp2-VS71.vcproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestApp2-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.3 --- TestApp2-VS71.vcproj 27 Jan 2006 16:59:40 -0000 1.4 *************** *** 88,92 **** WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 88,93 ---- WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> Index: TestApp1-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/TestApp1-VS71.vcproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestApp1-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.3 --- TestApp1-VS71.vcproj 27 Jan 2006 16:59:40 -0000 1.4 *************** *** 88,92 **** WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 88,93 ---- WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> |
From: Rob W. <gre...@us...> - 2006-01-27 16:59:47
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6271/src Modified Files: wg_messagebox.cpp Log Message: Fixed project files to ignore "unreached code" warning in std::lists. Other minor changes. Index: wg_messagebox.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_messagebox.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wg_messagebox.cpp 7 Jan 2005 22:08:38 -0000 1.7 --- wg_messagebox.cpp 27 Jan 2006 16:59:40 -0000 1.8 *************** *** 30,38 **** CMessageBox::CMessageBox(CView* pParent, CFontEngine* pFontEngine, const std::string& sTitle, const std::string& sMessage, int iButtons) : ! CFrame(CRect(20, 20, 320, 110), pParent, pFontEngine, sTitle), m_iButtons(iButtons) { m_pMessageLabel = new CLabel(CRect(10, 10, 290, 26), this, sMessage); ! CPoint BottomRight(290, 60); if (iButtons & CMessageBox::BUTTON_CANCEL) { --- 30,38 ---- CMessageBox::CMessageBox(CView* pParent, CFontEngine* pFontEngine, const std::string& sTitle, const std::string& sMessage, int iButtons) : ! CFrame(CRect(20, 20, 320, 100), pParent, pFontEngine, sTitle), m_iButtons(iButtons) { m_pMessageLabel = new CLabel(CRect(10, 10, 290, 26), this, sMessage); ! CPoint BottomRight(290, 56); if (iButtons & CMessageBox::BUTTON_CANCEL) { *************** *** 58,61 **** --- 58,76 ---- + void CMessageBox::FitToText(void) + { + CPoint TextRect; + m_pMessageLabel->GetRenderedString()->GetMetrics(&TextRect); + CRect LabelRect = m_pMessageLabel->GetWindowRect(); + CPoint Offset(TextRect.XPos() - LabelRect.Width(), TextRect.YPos() - LabelRect.Height()); + m_pMessageLabel->SetWindowRect(CRect(10, 10, 10 + TextRect.XPos(), 10 + TextRect.YPos())); + SetWindowRect(CRect(m_WindowRect.TopLeft(), m_WindowRect.BottomRight() + Offset)); + for (std::map<EButton, CButton*>::iterator iter = m_ButtonMap.begin(); iter != m_ButtonMap.end(); ++iter) + { + iter->second->SetWindowRect(iter->second->GetWindowRect() + Offset); + } + } + + bool CMessageBox::HandleMessage(CMessage* pMessage) { |
From: Rob W. <gre...@us...> - 2006-01-27 16:59:47
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6271 Modified Files: CHANGES wGui-VS71.vcproj Log Message: Fixed project files to ignore "unreached code" warning in std::lists. Other minor changes. Index: CHANGES =================================================================== RCS file: /cvsroot/wgui/wgui/CHANGES,v retrieving revision 1.160 retrieving revision 1.161 diff -C2 -d -r1.160 -r1.161 *** CHANGES 29 Dec 2005 13:46:18 -0000 1.160 --- CHANGES 27 Jan 2006 16:59:39 -0000 1.161 *************** *** 1,5 **** --- 1,7 ---- 0.4.1 -> 0.4.2 + Added CDropDown: GetFirstSelectedIndex() which returns the index of the first selected item (courtesy of Jurgen De Backer) + + Added CLabel: GetRenderedString() which returns a pointer to the label's rendered string + Added CListBox: GetFirstSelectedIndex() which returns the index of the first selected item (courtesy of Jurgen De Backer) + + Added CMessageBox: FitToText() which causes the message box to resize itself to fit the text + Added CRadioButton class which provides radio buttons (courtesy of Jurgen De Backer) + Added CRenderedString: GetMaxFontWidth() returns the maximum width of all the characters for the current font (courtesy of Jurgen De Backer) *************** *** 8,11 **** --- 10,14 ---- + Changed CFrame: SetModal() turning off modal for a frame will set the keyboard and mouse focus to the frame's parent (courtesy of Jurgen De Backer) + Changed CGroupBox: The sText parameter on the constructor is now optional and will default to an empty string + + Changed CRenderedString: All the parameters for GetMetrics() are now optional + Bugfix CListBox: Adding and removing items now sets the scrollbar correctly so you can't scroll past everything in the window (courtesy of Jurgen De Backer) Index: wGui-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/wGui-VS71.vcproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wGui-VS71.vcproj 29 Dec 2005 13:46:18 -0000 1.6 --- wGui-VS71.vcproj 27 Jan 2006 16:59:39 -0000 1.7 *************** *** 79,83 **** WarnAsError="FALSE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3"/> <Tool Name="VCCustomBuildTool"/> --- 79,84 ---- WarnAsError="FALSE" Detect64BitPortabilityProblems="TRUE" ! DebugInformationFormat="3" ! DisableSpecificWarnings="4702"/> <Tool Name="VCCustomBuildTool"/> *************** *** 294,301 **** </File> <File ! RelativePath="includes\wg_range_control.h"> </File> <File ! RelativePath="includes\wg_radiobutton.h"> </File> <File --- 295,302 ---- </File> <File ! RelativePath="includes\wg_radiobutton.h"> </File> <File ! RelativePath="includes\wg_range_control.h"> </File> <File |
From: Rob W. <gre...@us...> - 2006-01-27 16:59:47
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6271/includes Modified Files: wg_frame.h wg_label.h wg_messagebox.h wg_renderedstring.h Log Message: Fixed project files to ignore "unreached code" warning in std::lists. Other minor changes. Index: wg_renderedstring.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_renderedstring.h,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** wg_renderedstring.h 29 Dec 2005 13:46:18 -0000 1.20 --- wg_renderedstring.h 27 Jan 2006 16:59:40 -0000 1.21 *************** *** 84,88 **** //! \param pOriginOffset A pointer to a CPoint object that will receive the offset of the top left corner of the rendered string from the origin of the string //! \param pCharacterRects A pointer to a CRect vector that will receive CRects that contain each character. The corrdinates are in reference to the top left corner of the string as a whole ! void GetMetrics(CPoint* pBoundedDimensions, CPoint* pOriginOffset, std::vector<CRect>* pCharacterRects = 0) const; //! Get the length of the rendered string in characters --- 84,88 ---- //! \param pOriginOffset A pointer to a CPoint object that will receive the offset of the top left corner of the rendered string from the origin of the string //! \param pCharacterRects A pointer to a CRect vector that will receive CRects that contain each character. The corrdinates are in reference to the top left corner of the string as a whole ! void GetMetrics(CPoint* pBoundedDimensions = 0, CPoint* pOriginOffset = 0, std::vector<CRect>* pCharacterRects = 0) const; //! Get the length of the rendered string in characters Index: wg_frame.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_frame.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** wg_frame.h 27 Sep 2005 19:00:01 -0000 1.21 --- wg_frame.h 27 Jan 2006 16:59:40 -0000 1.22 *************** *** 48,52 **** //! \param sTitle The window title, which will appear in the title bar of the view //! \param bResizable If true, the window will be resizable ! CFrame(const CRect& WindowRect, CView* pParent, CFontEngine* pFontEngine, const std::string& sTitle, bool bResizable = true); //! Standard destructor --- 48,52 ---- //! \param sTitle The window title, which will appear in the title bar of the view //! \param bResizable If true, the window will be resizable ! CFrame(const CRect& WindowRect, CView* pParent, CFontEngine* pFontEngine = 0, const std::string& sTitle = "", bool bResizable = true); //! Standard destructor Index: wg_messagebox.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_messagebox.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wg_messagebox.h 22 Sep 2005 20:51:48 -0000 1.7 --- wg_messagebox.h 27 Jan 2006 16:59:40 -0000 1.8 *************** *** 54,57 **** --- 54,60 ---- }; + //! This will attempt to size the message box to fit the text + virtual void FitToText(void); + // CMessageClient overrides Index: wg_label.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_label.h,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wg_label.h 29 Dec 2005 13:46:18 -0000 1.19 --- wg_label.h 27 Jan 2006 16:59:40 -0000 1.20 *************** *** 57,66 **** //! Sets the color of the font used to render the label //! \param FontColor The color of the label text ! void SetFontColor(CRGBColor& FontColor) { m_FontColor = FontColor; } //! Gets the font color for the label //! \return The color of the text in the label ! CRGBColor GetFontColor(void) { return m_FontColor; } // CWindow overrides --- 57,70 ---- //! Sets the color of the font used to render the label //! \param FontColor The color of the label text ! virtual void SetFontColor(CRGBColor& FontColor) { m_FontColor = FontColor; } //! Gets the font color for the label //! \return The color of the text in the label ! virtual CRGBColor GetFontColor(void) { return m_FontColor; } + //! Return a pointer to the rendered string + //! \return A CRenderedString pointer + virtual CRenderedString* GetRenderedString(void) const { return m_pRenderedString.get(); } + // CWindow overrides |
From: Rob W. <gre...@us...> - 2005-12-29 13:46:33
|
Update of /cvsroot/wgui/wgui/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3448/tests Modified Files: TestView1.cpp TestView1.h UnitTests-VS71.vcproj UnitTests.cpp UnitTests.dsp Log Message: Integrated a number of changes from Jurgen De Backer including the new CRadioButton class Index: TestView1.h =================================================================== RCS file: /cvsroot/wgui/wgui/tests/TestView1.h,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** TestView1.h 25 Jun 2004 19:37:51 -0000 1.25 --- TestView1.h 29 Dec 2005 13:46:19 -0000 1.26 *************** *** 79,82 **** --- 79,89 ---- char m_iClickCount; wGui::EwgResourceId m_eCurrentPicture; + wGui::CGroupBox* m_pRadioGroupBox1; + wGui::CGroupBox* m_pRadioGroupBox2; + wGui::CRadioButton* m_pRadio1; + wGui::CRadioButton* m_pRadio2; + wGui::CRadioButton* m_pRadio3; + wGui::CRadioButton* m_pRadio4; + wGui::CRadioButton* m_pRadio5; }; Index: TestView1.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/tests/TestView1.cpp,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** TestView1.cpp 27 Sep 2005 19:00:01 -0000 1.84 --- TestView1.cpp 29 Dec 2005 13:46:19 -0000 1.85 *************** *** 138,141 **** --- 138,148 ---- wUtil::Trace(e.std_what()); } + m_pRadioGroupBox1 = new wGui::CGroupBox(wGui::CRect(20, 380, 100, 420), this); + m_pRadio1 = new wGui::CRadioButton(wGui::CRect(10, 0, 20, 10), m_pRadioGroupBox1); + m_pRadio2 = new wGui::CRadioButton(wGui::CRect(30, 0, 40, 10), m_pRadioGroupBox1); + m_pRadio3 = new wGui::CRadioButton(wGui::CRect(50, 0, 60, 10), m_pRadioGroupBox1); + m_pRadioGroupBox2 = new wGui::CGroupBox(wGui::CRect(120, 380, 200, 420), this); + m_pRadio4 = new wGui::CRadioButton(wGui::CRect(10, 0, 20, 10), m_pRadioGroupBox2); + m_pRadio5 = new wGui::CRadioButton(wGui::CRect(30, 0, 40, 10), m_pRadioGroupBox2); m_pToolBar = new wGui::CToolBar(wGui::CRect(0, 0, 170, 24), this); Index: UnitTests-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/tests/UnitTests-VS71.vcproj,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** UnitTests-VS71.vcproj 22 Sep 2005 20:49:55 -0000 1.5 --- UnitTests-VS71.vcproj 29 Dec 2005 13:46:19 -0000 1.6 *************** *** 187,190 **** --- 187,193 ---- </File> <File + RelativePath="..\includes\unit_tests\wg_radiobutton_unittests.h"> + </File> + <File RelativePath="..\includes\unit_tests\wg_rect_unittests.h"> </File> Index: UnitTests.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/tests/UnitTests.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** UnitTests.cpp 22 Apr 2004 07:15:11 -0000 1.24 --- UnitTests.cpp 29 Dec 2005 13:46:19 -0000 1.25 *************** *** 48,51 **** --- 48,52 ---- tut::RegisterUnitTests_CPoint(); tut::RegisterUnitTests_CProgress(); + tut::RegisterUnitTests_CRadioButton(); tut::RegisterUnitTests_CRect(); tut::RegisterUnitTests_CRGBColor(); Index: UnitTests.dsp =================================================================== RCS file: /cvsroot/wgui/wgui/tests/UnitTests.dsp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** UnitTests.dsp 11 Mar 2004 02:50:48 -0000 1.3 --- UnitTests.dsp 29 Dec 2005 13:46:19 -0000 1.4 *************** *** 167,170 **** --- 167,174 ---- # Begin Source File + SOURCE=..\includes\unit_tests\wg_radiobutton_unittests.h + # End Source File + # Begin Source File + SOURCE=..\includes\unit_tests\wg_rect_unittests.h # End Source File |
From: Rob W. <gre...@us...> - 2005-12-29 13:46:33
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3448/src Modified Files: wg_dropdown.cpp wg_frame.cpp wg_label.cpp wg_listbox.cpp wg_renderedstring.cpp Added Files: wg_radiobutton.cpp Log Message: Integrated a number of changes from Jurgen De Backer including the new CRadioButton class Index: wg_renderedstring.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_renderedstring.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wg_renderedstring.cpp 23 Jul 2004 14:46:00 -0000 1.16 --- wg_renderedstring.cpp 29 Dec 2005 13:46:19 -0000 1.17 *************** *** 39,43 **** m_bCachedMetricsValid(false), m_MaskChar(' '), ! m_MaxFontHeight(-1) { if (! m_pFontEngine) --- 39,44 ---- m_bCachedMetricsValid(false), m_MaskChar(' '), ! m_MaxFontHeight(-1), ! m_MaxFontWidth(-1) { if (! m_pFontEngine) *************** *** 84,96 **** } ! unsigned int CRenderedString::GetMaxFontHeight() { if (m_MaxFontHeight < 0) { ! int maxHeight=0; FT_Glyph_Metrics* pMetrics; ! for(int i=0; i < 256; i++) { ! pMetrics = m_pFontEngine->GetMetrics((char)i); if ((pMetrics->height >> 6) > maxHeight) { --- 85,98 ---- } ! ! unsigned int CRenderedString::GetMaxFontHeight(void) { if (m_MaxFontHeight < 0) { ! int maxHeight = 0; FT_Glyph_Metrics* pMetrics; ! for(int i = 0; i < 256; i++) { ! pMetrics = m_pFontEngine->GetMetrics(static_cast<char>(i)); if ((pMetrics->height >> 6) > maxHeight) { *************** *** 103,106 **** --- 105,129 ---- } + + unsigned int CRenderedString::GetMaxFontWidth(void) + { + if (m_MaxFontWidth < 0) + { + int maxWidth = 0; + FT_Glyph_Metrics* pMetrics; + for(int i = 0; i < 256; i++) + { + pMetrics = m_pFontEngine->GetMetrics(static_cast<char>(i)); + if ((pMetrics->width >> 6) > maxWidth) + { + maxWidth = (pMetrics->width >> 6); + } + } + m_MaxFontWidth = maxWidth; + } + return m_MaxFontWidth; + } + + void CRenderedString::GetMetrics(CPoint* pBoundedDimensions, CPoint* pOriginOffset, std::vector<CRect>* pCharacterRects) const { Index: wg_dropdown.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_dropdown.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** wg_dropdown.cpp 7 Jan 2005 22:08:38 -0000 1.27 --- wg_dropdown.cpp 29 Dec 2005 13:46:19 -0000 1.28 *************** *** 101,104 **** --- 101,112 ---- + void CDropDown::SetVisible(bool bVisible) + { + // if the visibility mode of the control changes, we should go ahead and hide the listbox + HideListBox(); + CWindow::SetVisible(bVisible); + } + + bool CDropDown::HandleMessage(CMessage* pMessage) { Index: wg_label.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_label.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** wg_label.cpp 12 Dec 2004 09:08:19 -0000 1.22 --- wg_label.cpp 29 Dec 2005 13:46:19 -0000 1.23 *************** *** 51,60 **** - CLabel::~CLabel(void) - { - - } - - void CLabel::Draw(void) const { --- 51,54 ---- --- NEW FILE: wg_radiobutton.cpp --- // wg_radiobutton.cpp // // CRadioButton class implementation // // // Copyright (c) 2005-2006 Rob Wiskow, Jurgen De Backer // ro...@bo..., jur...@us... // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #include "wgui_include_config.h" #include "wg_radiobutton.h" #include "wg_message_server.h" #include "wg_painter.h" namespace wGui { // judb p is the upper-left corner of the radiobutton; size is the width=height CRadioButton::CRadioButton(const CRect& WindowRect, CWindow* pParent) : CWindow(WindowRect, pParent), m_eRadioButtonState(UNCHECKED), m_MouseButton(0) { m_BackgroundColor = COLOR_WHITE; CMessageServer::Instance().RegisterMessageClient(this, CMessage::MOUSE_BUTTONUP); CMessageServer::Instance().RegisterMessageClient(this, CMessage::CTRL_SINGLELCLICK); Draw(); } void CRadioButton::SetState(EState eState) { if (m_eRadioButtonState != eState) { m_eRadioButtonState = eState; Draw(); } } void CRadioButton::Draw(void) const { CWindow::Draw(); if (m_pSDLSurface) { CRect SubRect(m_WindowRect.SizeRect()); CPainter Painter(m_pSDLSurface, CPainter::PAINT_REPLACE); if (m_eRadioButtonState != DISABLED) { Painter.DrawRect(SubRect, false, COLOR_DARKGRAY); if (m_eRadioButtonState == CHECKED) { SubRect.Grow(-3); Painter.DrawRect(SubRect, true, COLOR_BLACK, COLOR_BLACK); } } else { Painter.DrawRect(SubRect, false, COLOR_LIGHTGRAY); } } } bool CRadioButton::OnMouseButtonDown(CPoint Point, unsigned int Button) { bool bResult = CWindow::OnMouseButtonDown(Point, Button); if (!bResult && m_bVisible && (m_eRadioButtonState != DISABLED) && (m_ClientRect.HitTest(ViewToWindow(Point)) == CRect::RELPOS_INSIDE)) { m_MouseButton = Button; bResult = true; } return bResult; } bool CRadioButton::OnMouseButtonUp(CPoint Point, unsigned int Button) { bool bResult = CWindow::OnMouseButtonUp(Point, Button); if (!bResult && m_bVisible && (m_eRadioButtonState != DISABLED) && (m_MouseButton == Button) && (m_ClientRect.HitTest(ViewToWindow(Point)) == CRect::RELPOS_INSIDE)) { CMessage::EMessageType MessageType = CMessage::UNKNOWN; switch (m_MouseButton) { case CMouseMessage::LEFT: MessageType = CMessage::CTRL_SINGLELCLICK; break; case CMouseMessage::RIGHT: MessageType = CMessage::CTRL_SINGLERCLICK; break; case CMouseMessage::MIDDLE: MessageType = CMessage::CTRL_SINGLEMCLICK; break; } CMessageServer::Instance().QueueMessage(new TIntMessage(MessageType, this, this, 0)); bResult = true; } return bResult; } bool CRadioButton::HandleMessage(CMessage* pMessage) { bool bHandled = false; if (pMessage) { switch(pMessage->MessageType()) { case CMessage::MOUSE_BUTTONUP: { CMouseMessage* pMouseMessage = dynamic_cast<CMouseMessage*>(pMessage); if (pMouseMessage && (m_ClientRect.HitTest(ViewToWindow(pMouseMessage->Point)) != CRect::RELPOS_INSIDE) && (m_MouseButton == pMouseMessage->Button)) { m_MouseButton = 0; bHandled = true; } break; } case CMessage::CTRL_SINGLELCLICK: if (pMessage->Destination() == this) { if (m_eRadioButtonState == UNCHECKED) { SetState(CHECKED); // Uncheck all other 'children' of this parent that are radiobuttons: std::list<CWindow*> ChildWindows = m_pParentWindow->GetChildWindows(); for (std::list<CWindow*>::iterator iter = ChildWindows.begin(); iter != ChildWindows.end(); ++iter) { // Compare the types to find out if a child is a CRadioButton. CRadioButton* pRadioButton = dynamic_cast<CRadioButton*>(*iter); if (pRadioButton && *iter != this) { pRadioButton->SetState(UNCHECKED); } } CMessageServer::Instance().QueueMessage(new TIntMessage(CMessage::CTRL_VALUECHANGE, m_pParentWindow, this, 1)); break; } bHandled = true; } break; default : bHandled = CWindow::HandleMessage(pMessage); break; } } return bHandled; } } Index: wg_listbox.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_listbox.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** wg_listbox.cpp 26 Sep 2005 18:37:48 -0000 1.49 --- wg_listbox.cpp 29 Dec 2005 13:46:19 -0000 1.50 *************** *** 83,87 **** m_RenderedStrings.push_back(CRenderedString(m_pFontEngine, ListItem.sItemText, CRenderedString::VALIGN_TOP, CRenderedString::HALIGN_LEFT)); int iMax = (m_Items.size() - 1) < 0 ? 0 : stdex::safe_static_cast<int>(m_Items.size() - 1); ! m_pVScrollbar->SetMaxLimit(iMax); Draw(); return stdex::safe_static_cast<int>(m_Items.size()); --- 83,89 ---- m_RenderedStrings.push_back(CRenderedString(m_pFontEngine, ListItem.sItemText, CRenderedString::VALIGN_TOP, CRenderedString::HALIGN_LEFT)); int iMax = (m_Items.size() - 1) < 0 ? 0 : stdex::safe_static_cast<int>(m_Items.size() - 1); ! if (m_iItemHeight > 0) ! iMax = iMax - (m_ClientRect.Height() / m_iItemHeight) + 1; ! m_pVScrollbar->SetMaxLimit(std::max(iMax, 0)); Draw(); return stdex::safe_static_cast<int>(m_Items.size()); *************** *** 96,100 **** m_SelectedItems.erase(m_SelectedItems.begin() + iItemIndex); int iMax = (m_Items.size() - 1) < 0 ? 0 : stdex::safe_static_cast<int>(m_Items.size() - 1); ! m_pVScrollbar->SetMaxLimit(iMax); Draw(); } --- 98,104 ---- m_SelectedItems.erase(m_SelectedItems.begin() + iItemIndex); int iMax = (m_Items.size() - 1) < 0 ? 0 : stdex::safe_static_cast<int>(m_Items.size() - 1); ! if (m_iItemHeight > 0) ! iMax = iMax - (m_ClientRect.Height() / m_iItemHeight) + 1; ! m_pVScrollbar->SetMaxLimit(std::max(iMax, 0)); Draw(); } *************** *** 111,114 **** --- 115,134 ---- + int CListBox::GetFirstSelectedIndex(void) const + { + int iFirstSelectedItem = -1; + for (unsigned int i = 0; i < m_Items.size(); ++i) + { + if (m_SelectedItems.at(i)) + { + iFirstSelectedItem = i; + break; + } + } + + return iFirstSelectedItem; + } + + void CListBox::SetSelection(int iItemIndex, bool bSelected) { *************** *** 165,169 **** { CWindow::SetWindowRect(WindowRect); ! m_ClientRect = CRect(2, 2, m_WindowRect.Width() - 16, m_WindowRect.Height() - 4); CRect ScrollbarRect(m_WindowRect.SizeRect()); ScrollbarRect.Grow(-1); --- 185,189 ---- { CWindow::SetWindowRect(WindowRect); ! m_ClientRect = CRect(2, 2, m_WindowRect.Width() - 16, m_WindowRect.Height() - 2); CRect ScrollbarRect(m_WindowRect.SizeRect()); ScrollbarRect.Grow(-1); Index: wg_frame.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_frame.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** wg_frame.cpp 27 Sep 2005 19:00:01 -0000 1.32 --- wg_frame.cpp 29 Dec 2005 13:46:19 -0000 1.33 *************** *** 90,95 **** else { ! CApplication::Instance()->SetMouseFocus(0); ! CApplication::Instance()->SetKeyFocus(0); } } --- 90,95 ---- else { ! CApplication::Instance()->SetMouseFocus(m_pParentWindow); ! CApplication::Instance()->SetKeyFocus(m_pParentWindow); } } |
From: Rob W. <gre...@us...> - 2005-12-29 13:46:33
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3448 Modified Files: AUTHORS CHANGES Doxyfile README configure.in wGui-VS7.vcproj wGui-VS71.vcproj wgui.dsp Log Message: Integrated a number of changes from Jurgen De Backer including the new CRadioButton class Index: Doxyfile =================================================================== RCS file: /cvsroot/wgui/wgui/Doxyfile,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Doxyfile 12 Dec 2004 23:06:52 -0000 1.17 --- Doxyfile 29 Dec 2005 13:46:18 -0000 1.18 *************** *** 24,28 **** # if some version control system is used. ! PROJECT_NUMBER = 0.4.1 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) --- 24,28 ---- # if some version control system is used. ! PROJECT_NUMBER = 0.4.2 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) Index: wgui.dsp =================================================================== RCS file: /cvsroot/wgui/wgui/wgui.dsp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wgui.dsp 27 Apr 2004 18:13:49 -0000 1.11 --- wgui.dsp 29 Dec 2005 13:46:18 -0000 1.12 *************** *** 172,175 **** --- 172,179 ---- # Begin Source File + SOURCE=src\wg_radiobutton.cpp + # End Source File + # Begin Source File + SOURCE=src\wg_rect.cpp # End Source File *************** *** 368,371 **** --- 372,383 ---- # Begin Source File + SOURCE=includes\wg_radiobutton.h + # End Source File + # Begin Source File + + SOURCE=.\includes\unit_tests\wg_radiobutton_unittests.h + # End Source File + # Begin Source File + SOURCE=includes\wg_rect.h # End Source File Index: wGui-VS71.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/wGui-VS71.vcproj,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wGui-VS71.vcproj 27 Apr 2004 18:13:49 -0000 1.5 --- wGui-VS71.vcproj 29 Dec 2005 13:46:18 -0000 1.6 *************** *** 176,179 **** --- 176,182 ---- </File> <File + RelativePath="src\wg_radiobutton.cpp"> + </File> + <File RelativePath="src\wg_rect.cpp"> </File> *************** *** 294,297 **** --- 297,303 ---- </File> <File + RelativePath="includes\wg_radiobutton.h"> + </File> + <File RelativePath="includes\wg_rect.h"> </File> Index: configure.in =================================================================== RCS file: /cvsroot/wgui/wgui/configure.in,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** configure.in 12 Dec 2004 23:07:01 -0000 1.17 --- configure.in 29 Dec 2005 13:46:18 -0000 1.18 *************** *** 5,9 **** WGUI_VERSION_MAJOR=0 WGUI_VERSION_MINOR=4 ! WGUI_VERSION_REVISION=1 WGUI_VERSION=$WGUI_VERSION_MAJOR.$WGUI_VERSION_MINOR.$WGUI_VERSION_REVISION VERSION=$WGUI_VERSION --- 5,9 ---- WGUI_VERSION_MAJOR=0 WGUI_VERSION_MINOR=4 ! WGUI_VERSION_REVISION=2 WGUI_VERSION=$WGUI_VERSION_MAJOR.$WGUI_VERSION_MINOR.$WGUI_VERSION_REVISION VERSION=$WGUI_VERSION Index: wGui-VS7.vcproj =================================================================== RCS file: /cvsroot/wgui/wgui/wGui-VS7.vcproj,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wGui-VS7.vcproj 27 Apr 2004 18:13:49 -0000 1.19 --- wGui-VS7.vcproj 29 Dec 2005 13:46:18 -0000 1.20 *************** *** 162,165 **** --- 162,168 ---- </File> <File + RelativePath="src\wg_radiobutton.cpp"> + </File> + <File RelativePath="src\wg_rect.cpp"> </File> *************** *** 280,283 **** --- 283,289 ---- </File> <File + RelativePath="includes\wg_radiobutton.h"> + </File> + <File RelativePath="includes\wg_range_control.h"> </File> *************** *** 399,402 **** --- 405,411 ---- </File> <File + RelativePath="includes\unit_tests\wg_radiobutton_unittests.h"> + </File> + <File RelativePath="includes\unit_tests\wg_rect_unittests.h"> </File> Index: AUTHORS =================================================================== RCS file: /cvsroot/wgui/wgui/AUTHORS,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AUTHORS 7 Jun 2004 18:54:02 -0000 1.5 --- AUTHORS 29 Dec 2005 13:46:18 -0000 1.6 *************** *** 14,17 **** --- 14,18 ---- Contributors + Jurgen De Backer - jur...@us... Oldrich Dlouhy Index: README =================================================================== RCS file: /cvsroot/wgui/wgui/README,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** README 29 Sep 2005 04:01:40 -0000 1.21 --- README 29 Dec 2005 13:46:18 -0000 1.22 *************** *** 1,2 **** --- 1,9 ---- + 0.4.2 + + Jurgen De Backer (jur...@us...) provided us with a number of useful enhancements to wGui. + We owe him many thanks for his contributions. + + + 0.4.1 Index: CHANGES =================================================================== RCS file: /cvsroot/wgui/wgui/CHANGES,v retrieving revision 1.159 retrieving revision 1.160 diff -C2 -d -r1.159 -r1.160 *** CHANGES 27 Sep 2005 19:00:01 -0000 1.159 --- CHANGES 29 Dec 2005 13:46:18 -0000 1.160 *************** *** 1,2 **** --- 1,13 ---- + 0.4.1 -> 0.4.2 + + Added CDropDown: GetFirstSelectedIndex() which returns the index of the first selected item (courtesy of Jurgen De Backer) + + Added CListBox: GetFirstSelectedIndex() which returns the index of the first selected item (courtesy of Jurgen De Backer) + + Added CRadioButton class which provides radio buttons (courtesy of Jurgen De Backer) + + Added CRenderedString: GetMaxFontWidth() returns the maximum width of all the characters for the current font (courtesy of Jurgen De Backer) + + Added CWindow: GetChildWindows() returns a list of child windows (courtesy of Jurgen De Backer) + + Changed CDropDown: SetVisible() The listbox is now hidden if need be when the visibility of the dropdown changes (courtesy of Jurgen De Backer) + + Changed CFrame: SetModal() turning off modal for a frame will set the keyboard and mouse focus to the frame's parent (courtesy of Jurgen De Backer) + + Changed CGroupBox: The sText parameter on the constructor is now optional and will default to an empty string + + Bugfix CListBox: Adding and removing items now sets the scrollbar correctly so you can't scroll past everything in the window (courtesy of Jurgen De Backer) + 0.4.0 -> 0.4.1 + Added CApplication: GetBitsPerPixel() which returns the color depth the app will use |
From: Rob W. <gre...@us...> - 2005-12-29 13:46:33
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3448/includes Modified Files: Makefile.am wg_dropdown.h wg_groupbox.h wg_label.h wg_listbox.h wg_renderedstring.h wg_window.h wgui.h wgui_win32_config.h Added Files: wg_radiobutton.h Log Message: Integrated a number of changes from Jurgen De Backer including the new CRadioButton class Index: wgui_win32_config.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wgui_win32_config.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wgui_win32_config.h 12 Dec 2004 23:07:01 -0000 1.11 --- wgui_win32_config.h 29 Dec 2005 13:46:18 -0000 1.12 *************** *** 3,6 **** /* Version number of package */ ! #define VERSION "0.4.1" --- 3,6 ---- /* Version number of package */ ! #define VERSION "0.4.2" Index: wg_groupbox.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_groupbox.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** wg_groupbox.h 3 Jun 2004 19:10:52 -0000 1.13 --- wg_groupbox.h 29 Dec 2005 13:46:18 -0000 1.14 *************** *** 45,53 **** //! \param WindowRect A CRect that defines the outer limits of the control //! \param pParent A pointer to the parent window ! //! \param sText The label text //! \param FontColor The color of the label text //! \param pFontEngine A pointer to the font engine to use when drawing the control //! If this is left out (or set to 0) it will use the default font engine specified by the CApplication (which must be set before instantiating this object) ! CGroupBox(const CRect& WindowRect, CWindow* pParent, std::string sText, CRGBColor& FontColor = DEFAULT_LINE_COLOR, CFontEngine* pFontEngine = 0); --- 45,53 ---- //! \param WindowRect A CRect that defines the outer limits of the control //! \param pParent A pointer to the parent window ! //! \param sText The label text (defaults to an empty string) //! \param FontColor The color of the label text //! \param pFontEngine A pointer to the font engine to use when drawing the control //! If this is left out (or set to 0) it will use the default font engine specified by the CApplication (which must be set before instantiating this object) ! CGroupBox(const CRect& WindowRect, CWindow* pParent, std::string sText = "", CRGBColor& FontColor = DEFAULT_LINE_COLOR, CFontEngine* pFontEngine = 0); --- NEW FILE: wg_radiobutton.h --- // wg_radiobutton.h // // CRadioButton interface // // // Copyright (c) 2005-2006 Rob Wiskow, Jurgen De Backer // ro...@bo..., jur...@us... // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #ifndef _WG_RADIOBUTTON_H_ #define _WG_RADIOBUTTON_H_ #include "wg_window.h" namespace wGui { //! A radio button //! Radiobuttons should share a common parent (preferably a CGroupBox :-)) so they work as expected (only one can be //! checked at a time) //! The radiobutton will generate CTRL_xCLICK messages when clicked with the mouse (where x is the button L,M,R) //! It will also generate a CTRL_VALUECHANGE message whenever the radiobutton is toggled (todo adopt for radiobutton) //! Radiobuttons do not display their own labels class CRadioButton : public CWindow { public: //! Constructs a new radiobutton //! \param WindowRect A CRect that defines the outer limits of the control //! \param pParent A pointer to the parent window CRadioButton(const CRect& WindowRect, CWindow* pParent); //! Standard destructor virtual ~CRadioButton(void) { } //! The radiobutton state(s) enum EState { UNCHECKED, //!< The radiobutton is unchecked CHECKED, //!< The radiobutton is checked DISABLED //!< The radiobutton is disabled }; //! Gets the current state of the radiobutton //! \return The current radiobutton state EState GetState(void) const { return m_eRadioButtonState; } //! Set the radiobutton state //! \param eState The radiobutton state void SetState(EState eState); // CWindow overrides //! Draws the radiobutton virtual void Draw(void) const; //! This is called whenever the radiobutton is clicked on by the mouse //! Only the topmost window that bounds the point will be called by the system //! \param Point The point where the mouse clicked //! \param Button A bitfield indicating which button the window was clicked with //! \return True if it's in the bounds of the radiobutton virtual bool OnMouseButtonDown(CPoint Point, unsigned int Button); //! This is called whenever the a mouse button is released in the radiobutton //! Only the topmost window that bounds the point will be called by the system //! \param Point The point where the mouse clicked //! \param Button A bitfield indicating which button the window was clicked with //! \return True if it's in the bounds of the radiobutton virtual bool OnMouseButtonUp(CPoint Point, unsigned int Button); // CMessageClient overrides //! CRadioButtons handle MOUSE_BUTTONDOWN, MOUSE_BUTTONUP, and it's own CTRL_SINGLELCLICK messages //! \param pMessage A pointer to the message virtual bool HandleMessage(CMessage* pMessage); protected: EState m_eRadioButtonState; //!< The radiobutton's state unsigned int m_MouseButton; //!< The last mouse button to be pushed over the control, it's used internally private: void operator=(CRadioButton) { } //!< The assignment operator is not allowed for CWindow derived objects }; } #include "unit_tests/wg_radiobutton_unittests.h" #endif // _WG_RADIOBUTTON_H_ Index: wg_listbox.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_listbox.h,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** wg_listbox.h 7 Jul 2004 21:03:55 -0000 1.26 --- wg_listbox.h 29 Dec 2005 13:46:18 -0000 1.27 *************** *** 105,108 **** --- 105,112 ---- { return (iItemIndex >= 0 && iItemIndex < stdex::safe_static_cast<int>(m_SelectedItems.size()) && m_SelectedItems.at(iItemIndex)); } + //! Get the index of the first selected item + //! \return The index of the first selected item, or -1 if no item is selected + int GetFirstSelectedIndex(void) const; + //! Set an item as selected //! \param iItemIndex The index of the item to change Index: wg_renderedstring.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_renderedstring.h,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wg_renderedstring.h 2 Apr 2004 17:26:14 -0000 1.19 --- wg_renderedstring.h 29 Dec 2005 13:46:18 -0000 1.20 *************** *** 88,96 **** //! Get the length of the rendered string in characters //! \return The length of the string ! unsigned int GetLength() const { return stdex::safe_static_cast<unsigned int>(m_sString.size()); } //! Get the maximum height of the font, ASCII characters 0-255 //! \return The max height of the font ! unsigned int GetMaxFontHeight(); //! Set the mask character --- 88,100 ---- //! Get the length of the rendered string in characters //! \return The length of the string ! unsigned int GetLength(void) const { return stdex::safe_static_cast<unsigned int>(m_sString.size()); } //! Get the maximum height of the font, ASCII characters 0-255 //! \return The max height of the font ! unsigned int GetMaxFontHeight(void); ! ! //! Get the maximum width of the font, ASCII characters 0-255 ! //! \return The max width of the font ! unsigned int GetMaxFontWidth(void); //! Set the mask character *************** *** 113,116 **** --- 117,121 ---- mutable bool m_bCachedMetricsValid; //!< A boolean indicating if the cached values are valid int m_MaxFontHeight; //!< Maximum height of any character with ASCII value 0-255 for the current font + int m_MaxFontWidth; //!< Maximum width of any character with ASCII value 0-255 for the current font }; Index: Makefile.am =================================================================== RCS file: /cvsroot/wgui/wgui/includes/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Makefile.am 26 Apr 2004 22:38:00 -0000 1.11 --- Makefile.am 29 Dec 2005 13:46:18 -0000 1.12 *************** *** 27,30 **** --- 27,31 ---- wg_point.h \ wg_progress.h \ + wg_radiobutton.h \ wg_range_control.h \ wg_rect.h \ Index: wgui.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wgui.h,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** wgui.h 27 Dec 2004 04:59:36 -0000 1.34 --- wgui.h 29 Dec 2005 13:46:18 -0000 1.35 *************** *** 4,8 **** // // ! // Copyright (c) 2002-2004 Rob Wiskow // ro...@bo... // --- 4,8 ---- // // ! // Copyright (c) 2002-2006 Rob Wiskow // ro...@bo... // *************** *** 65,68 **** --- 65,69 ---- #include "wg_resources.h" #include "wg_messagebox.h" + #include "wg_radiobutton.h" #endif // _WGUI_H_ Index: wg_label.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_label.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** wg_label.h 3 Jun 2004 19:10:52 -0000 1.18 --- wg_label.h 29 Dec 2005 13:46:18 -0000 1.19 *************** *** 53,57 **** //! Standard destructor ! virtual ~CLabel(void); //! Sets the color of the font used to render the label --- 53,57 ---- //! Standard destructor ! virtual ~CLabel(void) { } //! Sets the color of the font used to render the label Index: wg_dropdown.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_dropdown.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wg_dropdown.h 15 Jul 2004 18:26:14 -0000 1.16 --- wg_dropdown.h 29 Dec 2005 13:46:18 -0000 1.17 *************** *** 80,83 **** --- 80,87 ---- bool IsSelected(int iItemIndex) { return m_pListBox->IsSelected(iItemIndex); } + //! Get the index of the first selected item + //! \return The index of the first selected item, or -1 if no item is selected + int GetFirstSelectedIndex(void) const { return m_pListBox->GetFirstSelectedIndex(); } + //! Set an item as selected //! \param iItemIndex The index of the item to change *************** *** 110,113 **** --- 114,121 ---- virtual void MoveWindow(const CPoint& MoveDistance); + //! Set the visibility of the control, and all of it's children + //! \param bVisible Set to false to hide the control + virtual void SetVisible(bool bVisible); + // CMessageClient overrides Index: wg_window.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_window.h,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** wg_window.h 19 Jul 2004 21:49:56 -0000 1.44 --- wg_window.h 29 Dec 2005 13:46:18 -0000 1.45 *************** *** 102,105 **** --- 102,108 ---- virtual CWindow* GetAncestor(EAncestor eAncestor) const; + //! \return a list of the children of this window + virtual std::list<CWindow*> GetChildWindows(void) const { return m_ChildWindows; } + //! Gets the view the window is a part of //! \return A pointer to the view object for the window (if one exists), this assumes that the view is the root ancestor |
From: Rob W. <gre...@us...> - 2005-12-29 13:46:31
|
Update of /cvsroot/wgui/wgui/includes/unit_tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3448/includes/unit_tests Modified Files: Makefile.am Added Files: wg_radiobutton_unittests.h Log Message: Integrated a number of changes from Jurgen De Backer including the new CRadioButton class --- NEW FILE: wg_radiobutton_unittests.h --- // wg_radiobutton_unittests.h // // CRadioButton class unit tests // // // Copyright (c) 2005-2006 Rob Wiskow // ro...@bo... // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #ifdef UNIT_TESTS #include "unit_tests/tut.h" #include "wg_test_message_client.h" namespace tut { struct UnitTestStruct_CRadioButton {}; typedef test_group<UnitTestStruct_CRadioButton> TestGroup_CRadioButton; typedef TestGroup_CRadioButton::object TestObject_CRadioButton; } namespace { tut::TestGroup_CRadioButton UnitTestGroup_CRadioButton("CRadioButton"); } namespace tut { void TestObject_CRadioButton::test() { wGui::CApplication App(0, 0); App.Init(); wGui::CView View(wGui::CRect(0, 0, 100, 100), "UnitTest"); CTestMessageWindow Client1(wGui::CRect(0, 0, 90, 90), &View); wGui::CMessageServer& Server = wGui::CMessageServer::Instance(); Server.IgnoreAllNewMessages(false); Server.RegisterMessageClient(&Client1, wGui::CMessage::CTRL_SINGLELCLICK); Server.RegisterMessageClient(&Client1, wGui::CMessage::CTRL_SINGLEMCLICK); Server.RegisterMessageClient(&Client1, wGui::CMessage::CTRL_SINGLERCLICK); wGui::CRadioButton* pRadioButton1 = new wGui::CRadioButton(wGui::CRect(1, 1, 5, 5), &Client1); ensure_equals("CRadioButton Constructor - GetState", pRadioButton1->GetState(), wGui::CRadioButton::UNCHECKED); pRadioButton1->SetState(wGui::CRadioButton::CHECKED); ensure_equals("CRadioButton - SetState", pRadioButton1->GetState(), wGui::CRadioButton::CHECKED); pRadioButton1->SetState(wGui::CRadioButton::UNCHECKED); ensure_equals("CRadioButton - SetState", pRadioButton1->GetState(), wGui::CRadioButton::UNCHECKED); ensure("CRadioButton - OnMouseButtonDown (outside bounds)", !pRadioButton1->OnMouseButtonDown(wGui::CPoint(0, 0), wGui::CMouseMessage::LEFT)); ensure("CRadioButton - OnMouseButtonDown (in bounds)", pRadioButton1->OnMouseButtonDown( View.ClientToView(pRadioButton1->GetWindowRect().TopLeft()) + wGui::CPoint(1, 1), wGui::CMouseMessage::LEFT)); ensure_equals("CRadioButton - OnMouseButtonDown (RadioButton State)", pRadioButton1->GetState(), wGui::CRadioButton::UNCHECKED); ensure(! Client1.bNewMessage); ensure("CRadioButton - OnMouseButtonUp (in bounds)", pRadioButton1->OnMouseButtonUp( View.ClientToView(pRadioButton1->GetWindowRect().TopLeft()) + wGui::CPoint(1, 1), wGui::CMouseMessage::LEFT)); while (Server.MessageAvailable()) { Server.DeliverMessage(); } ensure_equals("CRadioButton - OnMouseButtonUp (RadioButton State)", pRadioButton1->GetState(), wGui::CRadioButton::CHECKED); ensure("CRadioButton - OnMouseButtonUp (message)", Client1.bNewMessage && (Client1.eLastMessage == wGui::CMessage::CTRL_SINGLELCLICK)); ensure("CRadioButton - OnMouseButtonDown (middle CRadioButton)", pRadioButton1->OnMouseButtonDown( View.ClientToView(pRadioButton1->GetWindowRect().TopLeft()) + wGui::CPoint(1, 1), wGui::CMouseMessage::MIDDLE)); ensure("CRadioButton - OnMouseButtonUp (middle CRadioButton)", pRadioButton1->OnMouseButtonUp( View.ClientToView(pRadioButton1->GetWindowRect().TopLeft()) + wGui::CPoint(1, 1), wGui::CMouseMessage::MIDDLE)); while (Server.MessageAvailable()) { Server.DeliverMessage(); } ensure("CRadioButton - OnMouseButtonUp (message)", Client1.bNewMessage && (Client1.eLastMessage == wGui::CMessage::CTRL_SINGLEMCLICK)); } void RegisterUnitTests_CRadioButton(void) { UnitTestGroup_CRadioButton.reg(1, &TestObject_CRadioButton::test); } } #endif // UNIT_TESTS Index: Makefile.am =================================================================== RCS file: /cvsroot/wgui/wgui/includes/unit_tests/Makefile.am,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile.am 31 Mar 2004 15:31:32 -0000 1.3 --- Makefile.am 29 Dec 2005 13:46:18 -0000 1.4 *************** *** 19,22 **** --- 19,23 ---- wg_point_unittests.h \ wg_progress_unittests.h \ + wg_radiobutton_unittests.h \ wg_rect_unittests.h \ wg_scrollbar_unittests.h \ |
From: Rob W. <gre...@us...> - 2005-10-05 01:48:20
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26521 Modified Files: NEWS Log Message: Doc update for 0.4.1 release. Index: NEWS =================================================================== RCS file: /cvsroot/wgui/wgui/NEWS,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** NEWS 12 Dec 2004 23:07:01 -0000 1.10 --- NEWS 5 Oct 2005 01:48:11 -0000 1.11 *************** *** 1,4 **** --- 1,6 ---- For more current news, see Sourceforge at http://sourceforge.net/projects/wgui/ + 10/4/05 - Version 0.4.1 is released. + 12/12/04 - Version 0.4.0 is released. |
From: Rob W. <gre...@us...> - 2005-09-29 04:01:48
|
Update of /cvsroot/wgui/wgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15853 Modified Files: BUGS README Log Message: documentation fixes and updates for the 0.4.1 release Index: README =================================================================== RCS file: /cvsroot/wgui/wgui/README,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** README 7 Dec 2004 21:17:56 -0000 1.20 --- README 29 Sep 2005 04:01:40 -0000 1.21 *************** *** 1,10 **** ! 0.4.0 ! ! This version has been a long time in coming, but it's worth it. Core to the version bump were a number of fundamental ! changes to the drawing code. The big difference is that each CWindow now has it's own SDL surface to draw to, which ! is then copied to the window surface when the screen updates. This fixes a number of Z-Order problems we had before ! and simplifies the drawing code itself. As such the API around the drawnig code has changed a bit, especially in relation ! to the coordinate systems used to draw. Due to problems with VC6, use of the VC.NET and .NET 2003 compilers is suggested for building on Windows. --- 1,10 ---- ! 0.4.1 + The most noticeable changes for this release involve the CFrame class. Frames now have a neat transparancy effect + when you drag them. A CMessageBox class based on the CFrame now allows for simple message boxes. The plan for + the next release is to extend this even further into same common dialogs, like a file selector. + Unfortunately, there's still a problem with the popup menus that can cause a crash. I've removed a call to the + Draw() method from the InsertMenuItem() method, which seems to have fixed the problem, even if it doesn't make + much sense. This may end up causing some drawing problems while adding menu items, but I'm working on figuring it out. Due to problems with VC6, use of the VC.NET and .NET 2003 compilers is suggested for building on Windows. Index: BUGS =================================================================== RCS file: /cvsroot/wgui/wgui/BUGS,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** BUGS 12 Dec 2004 19:45:05 -0000 1.16 --- BUGS 29 Sep 2005 04:01:40 -0000 1.17 *************** *** 1,6 **** ! Known bugs for 0.4.0 ! - There appears to be some problem with the CMenu class. TestApp1 segfaults on Fedora Linux, but commenting out the code that creates the ! submenus for the popup menu seems to fix it. So this code has been commented out for the 0.4.0 release. - The CFrame class is far from complete. Currently the title bar does not draw correctly, and the frame doesn't clip it's child controls. - The wGui library is currently built to the src directory instead of the lib directory when using GNU Make --- 1,5 ---- ! Known bugs for 0.4.1 ! - There appears to be some problem with the CMenu class. I've commented out a call to the Draw() method from InsertMenuItem() which seems to fix things, but this may cause some drawing problems. I will get to the bottom of this eventually. - The CFrame class is far from complete. Currently the title bar does not draw correctly, and the frame doesn't clip it's child controls. - The wGui library is currently built to the src directory instead of the lib directory when using GNU Make |
From: Rob W. <gre...@us...> - 2005-09-29 04:01:48
|
Update of /cvsroot/wgui/wgui/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15853/includes Modified Files: wg_application.h wg_menu.h wg_message_server.h Log Message: documentation fixes and updates for the 0.4.1 release Index: wg_application.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_application.h,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** wg_application.h 27 Sep 2005 19:00:01 -0000 1.39 --- wg_application.h 29 Sep 2005 04:01:40 -0000 1.40 *************** *** 147,150 **** --- 147,151 ---- virtual CFontEngine* GetDefaultFontEngine(void) const { return m_pDefaultFontEngine; } + //! Gets the color depth (in bits per pixel) of the app //! \return The color depth of the view virtual int GetBitsPerPixel(void) const { return m_iBitsPerPixel; } Index: wg_message_server.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_message_server.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** wg_message_server.h 27 Sep 2005 19:00:01 -0000 1.24 --- wg_message_server.h 29 Sep 2005 04:01:40 -0000 1.25 *************** *** 43,52 **** struct s_MessageClientActive { s_MessageClientActive(CMessageClient* pC, bool bW) : pClient(pC), bWaitingForMessage(bW) { } ! CMessageClient* pClient; ! bool bWaitingForMessage; }; --- 43,55 ---- struct s_MessageClientActive { + //! struct constructor + //! \param pC a pointer to the message client + //! \param bW a boolean indicating if the client has gotten the current message s_MessageClientActive(CMessageClient* pC, bool bW) : pClient(pC), bWaitingForMessage(bW) { } ! CMessageClient* pClient; //!< a pointer to the message client ! bool bWaitingForMessage; //!< indicates if the client has recieved the current message }; Index: wg_menu.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/wg_menu.h,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** wg_menu.h 27 Sep 2005 19:00:01 -0000 1.37 --- wg_menu.h 29 Sep 2005 04:01:40 -0000 1.38 *************** *** 134,137 **** --- 134,141 ---- struct s_MenuItemInfo { + //! struct constructor + //! \param MI the menu item + //! \param RS the rendered string for the menu item + //! \param R a CRect describing the boundaries of the menu item s_MenuItemInfo(const SMenuItem& MI, const CRenderedString& RS, const CRect& R) : MenuItem(MI), RenderedString(RS), Rect(R) |