|
From: <arn...@us...> - 2008-03-29 08:10:19
|
Revision: 1084
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1084&view=rev
Author: arnetheduck
Date: 2008-03-29 01:10:17 -0700 (Sat, 29 Mar 2008)
Log Message:
-----------
add local commits
Modified Paths:
--------------
dcplusplus/trunk/smartwin/SmartUtil/StringConversion.h
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h
dcplusplus/trunk/smartwin/source/Application.cpp
dcplusplus/trunk/smartwin/source/widgets/Table.cpp
dcplusplus/trunk/win32/DirectoryListingFrame.h
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/QueueFrame.h
dcplusplus/trunk/win32/SearchFrame.cpp
Added Paths:
-----------
dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h
dcplusplus/trunk/win32/ComboBox.cpp
dcplusplus/trunk/win32/ComboBox.h
dcplusplus/trunk/win32/TextBox.cpp
dcplusplus/trunk/win32/TextBox.h
dcplusplus/trunk/win32/TypedTable.h
dcplusplus/trunk/win32/TypedTree.h
Removed Paths:
-------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetLoadFile.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetSaveFile.h
dcplusplus/trunk/win32/TypedListView.h
dcplusplus/trunk/win32/TypedTreeView.h
dcplusplus/trunk/win32/WidgetComboBox.cpp
dcplusplus/trunk/win32/WidgetComboBox.h
dcplusplus/trunk/win32/WidgetTextBox.cpp
dcplusplus/trunk/win32/WidgetTextBox.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-28 22:03:47.832000017 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 06:56:30.651999950 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- smartwin/include/smartwin/widgets/CheckBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetCheckBox.h
smartwin/include/smartwin/widgets/ComboBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetComboBox.h
smartwin/include/smartwin/widgets/CoolBar.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetCoolbar.h
smartwin/include/smartwin/widgets/DateTime.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetDateTimePicker.h
smartwin/include/smartwin/widgets/GroupBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetGroupBox.h
smartwin/include/smartwin/widgets/Label.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetStatic.h
smartwin/include/smartwin/widgets/MDIChild.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetMDIChild.h
smartwin/include/smartwin/widgets/MDIFrame.h 779@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetMDIFrame.h
smartwin/include/smartwin/widgets/MDIParent.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetMDIParent.h
smartwin/include/smartwin/widgets/MessageBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetMessageBox.h
smartwin/include/smartwin/widgets/ProgressBar.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetProgressBar.h
smartwin/include/smartwin/widgets/RadioButton.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetRadioButton.h
smartwin/include/smartwin/widgets/RichTextBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetRichTextBox.h
smartwin/include/smartwin/widgets/Slider.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetSlider.h
smartwin/include/smartwin/widgets/Spinner.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetSpinner.h
smartwin/include/smartwin/widgets/StatusBar.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetStatusBar.h
smartwin/include/smartwin/widgets/TabSheet.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetTabSheet.h
smartwin/include/smartwin/widgets/Table.h 876@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetListView.h
smartwin/include/smartwin/widgets/TextBox.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetTextBox.h
smartwin/include/smartwin/widgets/ToolBar.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetToolbar.h
smartwin/include/smartwin/widgets/ToolTip.h 809@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetToolTip.h
smartwin/include/smartwin/widgets/Tree.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetTreeView.h
smartwin/source/widgets/CheckBox.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetCheckBox.cpp
smartwin/source/widgets/ComboBox.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetComboBox.cpp
smartwin/source/widgets/CoolBar.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetCoolbar.cpp
smartwin/source/widgets/DateTime.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetDateTimePicker.cpp
smartwin/source/widgets/GroupBox.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetGroupBox.cpp
smartwin/source/widgets/Label.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetStatic.cpp
smartwin/source/widgets/MDIChild.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetMDIChild.cpp
smartwin/source/widgets/MDIFrame.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetMDIFrame.cpp
smartwin/source/widgets/MDIParent.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetMDIParent.cpp
smartwin/source/widgets/ProgressBar.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetProgressBar.cpp
smartwin/source/widgets/RadioButton.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetRadioButton.cpp
smartwin/source/widgets/RichTextBox.cpp 821@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetRichTextBox.cpp
smartwin/source/widgets/Slider.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetSlider.cpp
smartwin/source/widgets/Spinner.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetSpinner.cpp
smartwin/source/widgets/TabSheet.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetTabSheet.cpp
smartwin/source/widgets/Table.cpp 876@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetListView.cpp
smartwin/source/widgets/TextBox.cpp 821@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetTextBox.cpp
smartwin/source/widgets/ToolBar.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetToolbar.cpp
smartwin/source/widgets/ToolTip.cpp 810@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetToolTip.cpp
smartwin/source/widgets/Tree.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetTreeView.cpp
+ smartwin/include/smartwin/widgets/LoadDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetLoadFile.h
smartwin/include/smartwin/widgets/SaveDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetSaveFile.h
win32/ComboBox.cpp 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetComboBox.cpp
win32/ComboBox.h 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetComboBox.h
win32/TextBox.cpp 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetTextBox.cpp
win32/TextBox.h 753@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetTextBox.h
win32/TypedTable.h 846@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FTypedListView.h
win32/TypedTree.h 743@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FTypedTreeView.h
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
Name: bzr:ancestry:v3-trunk1
+ arn...@gm...-20080329054606-ubefm4h98xjgvif9
Modified: dcplusplus/trunk/smartwin/SmartUtil/StringConversion.h
===================================================================
--- dcplusplus/trunk/smartwin/SmartUtil/StringConversion.h 2008-03-29 08:09:17 UTC (rev 1083)
+++ dcplusplus/trunk/smartwin/SmartUtil/StringConversion.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -66,7 +66,7 @@
/// Specialized version of UnicodeConverter class for converting FROM UNICODE or wchar_t TO char (std::string)
/** It can in many scenarios be useful to be able to convert from wchar_t to char, one good example is when you have a
* a filepath and you want to construct a std::fstream object.<br>
- * Often you would for instance use a WidgetLoadFile or a WidgetSaveFile Widget to retrieve a path from the user.<br>
+ * Often you would for instance use a LoadDialog or a SaveDialog Widget to retrieve a path from the user.<br>
* These classes returns their file paths in UNICODE format ifi UNICODE is defined.<br>
* But the std::fstream constructors cannot take any string types other than char * types for a file path.<br>
* Then you can use this class to convert from wchar_t string to char strings. <br>
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-29 08:09:17 UTC (rev 1083)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -39,13 +39,13 @@
#include "widgets/DateTime.h"
#include "widgets/WidgetDialog.h"
#include "widgets/GroupBox.h"
-#include "widgets/WidgetLoadFile.h"
+#include "widgets/LoadDialog.h"
#include "widgets/MDIChild.h"
#include "widgets/MDIFrame.h"
#include "widgets/MDIParent.h"
#include "widgets/ProgressBar.h"
#include "widgets/RadioButton.h"
-#include "widgets/WidgetSaveFile.h"
+#include "widgets/SaveDialog.h"
#include "widgets/Slider.h"
#include "widgets/Spinner.h"
#include "widgets/Label.h"
@@ -179,10 +179,10 @@
typedef typename RadioButton::ObjectType RadioButtonPtr;
/// LoadFileDialog class type.
- typedef SmartWin::WidgetLoadFile WidgetLoadFile;
+ typedef SmartWin::LoadDialog LoadDialog;
/// SaveFileDialog class and object type.
- typedef SmartWin::WidgetSaveFile WidgetSaveFile;
+ typedef SmartWin::SaveDialog SaveDialog;
/// ColorDialog class and object type.
typedef SmartWin::ColorDialog ColorDialog;
@@ -254,12 +254,12 @@
/// Creates a LoadFileDialog and returns a pointer to it.
/** Use this one to construct a ( stack object ) to show a Load File Dialog
*/
- WidgetLoadFile createLoadFile();
+ LoadDialog createLoadFile();
/// Creates a SaveFileDialog and returns a pointer to it.
/** Use this one to construct a ( stack object ) to show a Save File Dialog
*/
- WidgetSaveFile createSaveFile();
+ SaveDialog createSaveFile();
/// Creates a ColorDialog and returns it.
/** Usable to let user choose font from the system installed fonts.
@@ -485,17 +485,17 @@
}
template<typename ContainerWidgetType>
-typename WidgetFactory< ContainerWidgetType >::WidgetLoadFile
+typename WidgetFactory< ContainerWidgetType >::LoadDialog
WidgetFactory< ContainerWidgetType >::createLoadFile()
{
- return WidgetLoadFile ( this );
+ return LoadDialog ( this );
}
template<typename ContainerWidgetType>
-typename WidgetFactory< ContainerWidgetType >::WidgetSaveFile
+typename WidgetFactory< ContainerWidgetType >::SaveDialog
WidgetFactory< ContainerWidgetType >::createSaveFile()
{
- return WidgetSaveFile ( this );
+ return SaveDialog ( this );
}
template<typename ContainerWidgetType>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-29 08:09:17 UTC (rev 1083)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -37,11 +37,11 @@
{
// begin namespace SmartWin
-/// Class for adding a filter to e.g. a WidgetLoadFile dialog.
+/// Class for adding a filter to e.g. a LoadDialog dialog.
/** \ingroup AspectClasses
* Class is an Aspect class which should be realized into classes that needs it.
* <br>
- * Help the WidgetLoadFile and the WidgetSaveFile to add up filters on which file
+ * Help the LoadDialog and the SaveDialog to add up filters on which file
* types to look for!
*/
class AspectFileFilter
@@ -84,7 +84,7 @@
return itsActiveFilter + 1;
}
- /// Sets the starting directory of the WidgetLoadFile or WidgetSaveFile Widget
+ /// Sets the starting directory of the LoadDialog or SaveDialog Widget
/** If given your dialog will try to start in the given directory, otherwise it
* will use the working directory of the process.
*/
@@ -94,7 +94,7 @@
}
/// Ensure filename meets OS expectations for path separators.
- /** We want WidgetSaveFile and WidgetLoadFile to always return a pathname that
+ /** We want SaveDialog and LoadDialog to always return a pathname that
* meets the OS expectations. <br>
* Windows wants: C:\dir\dir\file.ext <br>
* and UnixLinux: /dir/dir/file.ext <br>
@@ -128,30 +128,26 @@
protected:
- AspectFileFilter()
- : itsActiveFilter( 0 )
+ Widget * itsParent;
+ HWND getParentHandle() { return itsParent ? itsParent->handle() : NULL; }
+
+ AspectFileFilter(Widget* parent)
+ : itsParent(parent), itsActiveFilter( 0 )
{}
static const int PATH_BUFFER_SIZE = 32768; //really arbitrary, but 32K sounds reasonable. size in number of TCHARS!
// Fills out the common members of the OPENFILENAME struct.
- // This is called for both WidgetLoadFile and for WidgetSaveFile Widgets
- void fillOutCommonStructure( OPENFILENAME & ofn, HWND parent, int flags )
+ // This is called for both LoadDialog and for SaveDialog Widgets
+ void fillOFN( OPENFILENAME & ofn, HWND parent, int flags )
{
- // Initialize OPENFILENAME
- ZeroMemory( & ofn, sizeof( ofn ) );
- ofn.lStructSize = sizeof( OPENFILENAME );
-
ofn.hwndOwner = parent;
- ofn.hInstance = ::GetModuleHandle( 0 );
ofn.nMaxFile = PATH_BUFFER_SIZE;
ofn.lpstrFilter = itsFilter.c_str();
ofn.nFilterIndex = this->getActiveFilter();
- ofn.lpstrFileTitle = NULL;
- ofn.nMaxFileTitle = 259;
ofn.lpstrInitialDir = itsStartDir.c_str();
- ofn.Flags = flags; // OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
+ ofn.Flags = flags;
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-29 08:09:17 UTC (rev 1083)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -190,7 +190,7 @@
{
int txtLength = ::GetWindowTextLength( handle() );
SmartUtil::tstring retVal(txtLength, '\0');
- ::GetWindowText( handle(), &txt[0], txtLength );
+ ::GetWindowText( handle(), &retVal[0], txtLength );
return retVal;
}
Copied: dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h (from rev 1083, dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetLoadFile.h)
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -0,0 +1,162 @@
+/*
+ Copyright (c) 2005, Thomas Hansen
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of the SmartWin++ nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+#ifndef LoadDialog_h
+#define LoadDialog_h
+
+#include "../Widget.h"
+#include "../../SmartUtil.h"
+#include "../aspects/AspectFileFilter.h"
+#include <vector>
+
+namespace SmartWin
+{
+// begin namespace SmartWin
+
+/// LoadFileDialog class
+/** \ingroup WidgetControls
+ * \image html loadfile.PNG
+ * Class for showing a LoadFileDialog box. <br>
+ * \sa SaveDialog
+ * \sa AspectFileFilter
+ */
+class LoadDialog
+ : public AspectFileFilter
+{
+public:
+ /// Class type
+ typedef LoadDialog ThisType;
+
+ /// Object type
+ /** Note, not a pointer!!!!
+ */
+ typedef ThisType ObjectType;
+
+ /// Shows the dialog
+ /** Returns string() or "empty string" if user press cancel. <br>
+ * Returns a "file path" if user presses ok. <br>
+ * Use the inherited functions AspectFileFilter::addFilter and
+ * AspectFileFilter::activeFilter <br>
+ * before calling this function, if you wish the dialog to show only certain
+ * types of files.
+ */
+ SmartUtil::tstring showDialog();
+
+ /// Shows the dialog
+ /** Returns an empty vector if user press cancel. <br>
+ * Returns a vector of "file paths" if user presses ok. <br>
+ * Use the inherited functions AspectFileFilter::addFilter and
+ * AspectFileFilter::activeFilter <br>
+ * before calling this function, if you wish the dialog to show only certain
+ * types of files.
+ */
+ std::vector<SmartUtil::tstring> showDialogMultiSelect();
+
+ // Constructor Taking pointer to parent
+ explicit LoadDialog( Widget * parent = 0 );
+
+<<<<<<< TREE
+<<<<<<< TREE
+ ~LoadDialog() { }
+=======
+ virtual ~WidgetLoadFile() { }
+>>>>>>> MERGE-SOURCE
+=======
+ virtual ~LoadDialog() { }
+>>>>>>> MERGE-SOURCE
+private:
+};
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// Implementation of class
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+inline SmartUtil::tstring LoadDialog::showDialog()
+{
+ TCHAR szFile[PATH_BUFFER_SIZE]; // buffer for file name
+ szFile[0] = '\0';
+
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, getParentHandle(), OFN_FILEMUSTEXIST );
+ ofn.lpstrFile = szFile;
+ ofn.Flags |= OFN_FILEMUSTEXIST;
+
+ SmartUtil::tstring retVal;
+ if ( ::GetOpenFileName( & ofn ) )
+ {
+ retVal = ofn.lpstrFile;
+ backslashToForwardSlashForUnix( retVal );
+ }
+ return retVal;
+}
+
+inline std::vector<SmartUtil::tstring> LoadDialog::showDialogMultiSelect()
+{
+ TCHAR szFile[PATH_BUFFER_SIZE]; // buffer for file name
+ szFile[0] = '\0';
+
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, getParentHandle(), OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_EXPLORER );
+ ofn.lpstrFile = szFile;
+ std::vector<SmartUtil::tstring> retVal;
+ if( ::GetOpenFileName(&ofn) )
+ {
+ // If a single file is selected, the lpstrFile string is just the path terminated by TWO null bytes
+ // If multiple files are selected, the format of the string returned is:
+ // DIRECTORY_PATH + '\0' + FILE_NAME_1 + '\0' + FILE_NAME_2 + '\0' + ... + FILE_NAME_N + '\0' + '\0'
+ // (Note the last file name is terminated by two null bytes)
+
+ SmartUtil::tstring fileName;
+ SmartUtil::tstring filePath;
+ SmartUtil::tstring directory;
+ directory = ofn.lpstrFile; // tstring ends at first null
+ TCHAR *array_p = ofn.lpstrFile + directory.length() + 1; // set pointer to one position past null
+ fileName = array_p; // fileName is substring from array_p to next null
+ if (fileName.length() == 0) // only one file was selected
+ retVal.push_back(directory); // string 'directory' contains full path
+ else
+ {
+ while (fileName.length() > 0)
+ {
+ filePath = directory + _T("\\") + fileName;
+ backslashToForwardSlashForUnix(filePath);
+ retVal.push_back(filePath);
+ array_p = array_p + fileName.length() + 1; // set pointer one position past null
+ fileName = array_p; // fileName is substring from array_p to next null
+ }
+ }
+ }
+ return retVal;
+}
+
+inline LoadDialog::LoadDialog( Widget * parent )
+ : AspectFileFilter( parent )
+{}
+
+// end namespace SmartWin
+}
+
+#endif
Copied: dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h (from rev 1083, dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetSaveFile.h)
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h 2008-03-29 08:10:17 UTC (rev 1084)
@@ -0,0 +1,102 @@
+/*
+ Copyright (c) 2005, Thomas Hansen
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of the SmartWin++ nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+#ifndef SaveDialog_h
+#define SaveDialog_h
+
+#include "../Widget.h"
+#include "../../SmartUtil.h"
+#include "../aspects/AspectFileFilter.h"
+
+namespace SmartWin
+{
+// begin namespace SmartWin
+
+/// SaveFileDialog class
+/** \ingroup WidgetControls
+ * \image html savefile.PNG
+ * Class for showing a Save File Dialog.
+ * \sa LoadDialog
+ * \sa AspectFileFilter
+ */
+class SaveDialog
+ : public AspectFileFilter
+{
+public:
+ /// Class type
+ typedef SaveDialog ThisType;
+
+ /// Object type
+ /** Note, not a pointer!!!!
+ */
+ typedef ThisType ObjectType;
+
+ /// Shows the dialog
+ /** Returns string() or "empty string" if user press cancel. <br>
+ * Returns a "file path" if user presses ok.
+ */
+ bool open(SmartUtil::tstring& target);
+
+ /// Constructor Taking pointer to parent
+ explicit SaveDialog( Widget * parent = 0 );
+
+ virtual ~SaveDialog()
+ {}
+
+private:
+};
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// Implementation of class
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+inline bool SaveDialog::open(SmartUtil::tstring& target)
+{
+ TCHAR szFile[PATH_BUFFER_SIZE + 1]; // buffer for file name
+ szFile[0] = '\0';
+
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, getParentHandle(...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-29 08:10:41
|
Revision: 1085
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1085&view=rev
Author: arnetheduck
Date: 2008-03-29 01:10:38 -0700 (Sat, 29 Mar 2008)
Log Message:
-----------
conflict leftover
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 06:56:30.651999950 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 07:15:58.839999914 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- smartwin/include/smartwin/widgets/LoadDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetLoadFile.h
smartwin/include/smartwin/widgets/SaveDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetSaveFile.h
win32/ComboBox.cpp 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetComboBox.cpp
win32/ComboBox.h 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetComboBox.h
win32/TextBox.cpp 1023@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetTextBox.cpp
win32/TextBox.h 753@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FWidgetTextBox.h
win32/TypedTable.h 846@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FTypedListView.h
win32/TypedTree.h 743@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:win32%2FTypedTreeView.h
+
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h 2008-03-29 08:10:17 UTC (rev 1084)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h 2008-03-29 08:10:38 UTC (rev 1085)
@@ -79,15 +79,7 @@
// Constructor Taking pointer to parent
explicit LoadDialog( Widget * parent = 0 );
-<<<<<<< TREE
-<<<<<<< TREE
~LoadDialog() { }
-=======
- virtual ~WidgetLoadFile() { }
->>>>>>> MERGE-SOURCE
-=======
- virtual ~LoadDialog() { }
->>>>>>> MERGE-SOURCE
private:
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:14:24
|
Revision: 1086
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1086&view=rev
Author: arnetheduck
Date: 2008-03-30 01:14:18 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Update load/save dialogs
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 07:15:58.839999914 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 09:12:53.312000036 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-29 08:10:38 UTC (rev 1085)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-30 08:14:18 UTC (rev 1086)
@@ -29,8 +29,7 @@
#define AspectFileFilter_h
#include "../WindowsHeaders.h"
-#include <vector>
-#include "SmartUtil.h"
+#include "../../SmartUtil.h"
#include "../xCeption.h"
namespace SmartWin
@@ -44,6 +43,7 @@
* Help the LoadDialog and the SaveDialog to add up filters on which file
* types to look for!
*/
+template<typename WidgetType>
class AspectFileFilter
{
public:
@@ -52,12 +52,13 @@
* "HTML Files" etc. filter is the actual filter to filter in files to show
* normally this would be e.g. "*.html".
*/
- void addFilter( const SmartUtil::tstring & filterName, const SmartUtil::tstring & filter )
+ WidgetType& addFilter( const SmartUtil::tstring & filterName, const SmartUtil::tstring & filter )
{
itsFilter.insert( itsFilter.end(), filterName.begin(), filterName.end() );
itsFilter.push_back( '\0' );
itsFilter.insert( itsFilter.end(), filter.begin(), filter.end() );
itsFilter.push_back( '\0' );
+ return *static_cast<WidgetType*>(this);
}
/// Sets the active filter to the specified index
@@ -65,21 +66,24 @@
* filter you added will be the active filter. Active filter means the default
* filter used when first showing the dialog.
*/
- void activeFilter( unsigned filterNo )
- {
+ WidgetType& setActiveFilter( unsigned filterNo ) {
if ( filterNo >= itsFilter.size() )
{
xCeption x( _T( "Tried to set active filter to more than number of filters in filter..." ) );
throw x;
}
itsActiveFilter = filterNo;
+ return *static_cast<WidgetType*>(this);
}
+
+ WidgetType& setDefaultExtension(const SmartUtil::tstring& defExt) {
+ itsDefExt = defExt;
+ }
/// Returns the active filter of the object
/** The active filter is the "currently selected" filter of the filter class
*/
- unsigned getActiveFilter() const
- {
+ unsigned getActiveFilter() const {
// Filter index is NOT a zero indexed array...
return itsActiveFilter + 1;
}
@@ -88,73 +92,47 @@
/** If given your dialog will try to start in the given directory, otherwise it
* will use the working directory of the process.
*/
- void setStartDirectory( SmartUtil::tstring startDir )
- {
- itsStartDir = startDir;
+ WidgetType& setInitialDirectory( const SmartUtil::tstring& initialDir ) {
+ itsInitialDir = initialDir;
+ return *static_cast<WidgetType*>(this);
}
- /// Ensure filename meets OS expectations for path separators.
- /** We want SaveDialog and LoadDialog to always return a pathname that
- * meets the OS expectations. <br>
- * Windows wants: C:\dir\dir\file.ext <br>
- * and UnixLinux: /dir/dir/file.ext <br>
- *
- * Wine produces z:\dir\dir\file.exe from GetLoadFileName(&ofn) )and
- * GetSaveFileName(&ofn). <br>
- *
- * So if we are building for wine, we need to convert from the wine output to
- * the Linux format. <br>
- * IE: convert z:\home\awebb\file.txt to /home/awebb/file.txt <br>
- *
- * The assumption is that the C++ standard library is Linux native, and thus
- * needs / pathnames.
- */
- //TODO: use boost filenames
- void backslashToForwardSlashForUnix( SmartUtil::tstring & filename )
- {
- // wineg++ defines __WINE__ Note we can't use WIN32 because that is also true for wine builds.
-#ifdef __WINE__
- if ( 0 != filename.find( "z:" ) ) return; // Not a WINE produced path ?, nothing to do.
- filename.erase( 0, 2 ); // Remove "z:" prefix.
+protected:
+ Widget* itsParent;
- // Unix file system do not use "\", so convert to "/"
- size_t pos_n;
- while ( std::string::npos != ( pos_n = filename.find( '\\' ) ) )
- {
- filename.replace( pos_n, 1, "/" );
- }
-#endif
- }
+ static const int PATH_BUFFER_SIZE = 32768;
-
-protected:
- Widget * itsParent;
+ TCHAR szFile[PATH_BUFFER_SIZE];
+
HWND getParentHandle() { return itsParent ? itsParent->handle() : NULL; }
AspectFileFilter(Widget* parent)
: itsParent(parent), itsActiveFilter( 0 )
{}
- static const int PATH_BUFFER_SIZE = 32768; //really arbitrary, but 32K sounds reasonable. size in number of TCHARS!
-
// Fills out the common members of the OPENFILENAME struct.
// This is called for both LoadDialog and for SaveDialog Widgets
- void fillOFN( OPENFILENAME & ofn, HWND parent, int flags )
- {
- ofn.hwndOwner = parent;
+ void fillOFN( OPENFILENAME & ofn, int flags ) {
+ ofn.hwndOwner = getParentHandle();
ofn.nMaxFile = PATH_BUFFER_SIZE;
- ofn.lpstrFilter = itsFilter.c_str();
+ ofn.lpstrFile = szFile;
+ ofn.lpstrDefExt = ifNotEmpty(itsDefExt);
+ ofn.lpstrInitialDir = ifNotEmpty(itsInitialDir);
+ ofn.lpstrFilter = ifNotEmpty(itsFilter);
ofn.nFilterIndex = this->getActiveFilter();
- ofn.lpstrInitialDir = itsStartDir.c_str();
ofn.Flags = flags;
}
-
private:
unsigned int itsActiveFilter;
- SmartUtil::tstring itsStartDir;
+ SmartUtil::tstring itsInitialDir;
SmartUtil::tstring itsFilter;
+ SmartUtil::tstring itsDefExt;
+
+ static const TCHAR* ifNotEmpty(const SmartUtil::tstring& str) {
+ return str.empty() ? NULL : str.c_str();
+ }
};
// end namespace SmartWin
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h 2008-03-29 08:10:38 UTC (rev 1085)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/LoadDialog.h 2008-03-30 08:14:18 UTC (rev 1086)
@@ -45,7 +45,7 @@
* \sa AspectFileFilter
*/
class LoadDialog
- : public AspectFileFilter
+ : public AspectFileFilter<LoadDialog>
{
public:
/// Class type
@@ -64,7 +64,7 @@
* before calling this function, if you wish the dialog to show only certain
* types of files.
*/
- SmartUtil::tstring showDialog();
+ bool open(SmartUtil::tstring& file);
/// Shows the dialog
/** Returns an empty vector if user press cancel. <br>
@@ -74,7 +74,7 @@
* before calling this function, if you wish the dialog to show only certain
* types of files.
*/
- std::vector<SmartUtil::tstring> showDialogMultiSelect();
+ bool open(std::vector<SmartUtil::tstring>& files);
// Constructor Taking pointer to parent
explicit LoadDialog( Widget * parent = 0 );
@@ -86,66 +86,9 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline SmartUtil::tstring LoadDialog::showDialog()
-{
- TCHAR szFile[PATH_BUFFER_SIZE]; // buffer for file name
- szFile[0] = '\0';
- OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
- fillOFN( ofn, getParentHandle(), OFN_FILEMUSTEXIST );
- ofn.lpstrFile = szFile;
- ofn.Flags |= OFN_FILEMUSTEXIST;
-
- SmartUtil::tstring retVal;
- if ( ::GetOpenFileName( & ofn ) )
- {
- retVal = ofn.lpstrFile;
- backslashToForwardSlashForUnix( retVal );
- }
- return retVal;
-}
-
-inline std::vector<SmartUtil::tstring> LoadDialog::showDialogMultiSelect()
-{
- TCHAR szFile[PATH_BUFFER_SIZE]; // buffer for file name
- szFile[0] = '\0';
-
- OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
- fillOFN( ofn, getParentHandle(), OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_EXPLORER );
- ofn.lpstrFile = szFile;
- std::vector<SmartUtil::tstring> retVal;
- if( ::GetOpenFileName(&ofn) )
- {
- // If a single file is selected, the lpstrFile string is just the path terminated by TWO null bytes
- // If multiple files are selected, the format of the string returned is:
- // DIRECTORY_PATH + '\0' + FILE_NAME_1 + '\0' + FILE_NAME_2 + '\0' + ... + FILE_NAME_N + '\0' + '\0'
- // (Note the last file name is terminated by two null bytes)
-
- SmartUtil::tstring fileName;
- SmartUtil::tstring filePath;
- SmartUtil::tstring directory;
- directory = ofn.lpstrFile; // tstring ends at first null
- TCHAR *array_p = ofn.lpstrFile + directory.length() + 1; // set pointer to one position past null
- fileName = array_p; // fileName is substring from array_p to next null
- if (fileName.length() == 0) // only one file was selected
- retVal.push_back(directory); // string 'directory' contains full path
- else
- {
- while (fileName.length() > 0)
- {
- filePath = directory + _T("\\") + fileName;
- backslashToForwardSlashForUnix(filePath);
- retVal.push_back(filePath);
- array_p = array_p + fileName.length() + 1; // set pointer one position past null
- fileName = array_p; // fileName is substring from array_p to next null
- }
- }
- }
- return retVal;
-}
-
inline LoadDialog::LoadDialog( Widget * parent )
- : AspectFileFilter( parent )
+ : AspectFileFilter<LoadDialog>( parent )
{}
// end namespace SmartWin
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h 2008-03-29 08:10:38 UTC (rev 1085)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/SaveDialog.h 2008-03-30 08:14:18 UTC (rev 1086)
@@ -44,7 +44,7 @@
* \sa AspectFileFilter
*/
class SaveDialog
- : public AspectFileFilter
+ : public AspectFileFilter<SaveDialog>
{
public:
/// Class type
@@ -73,26 +73,9 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline bool SaveDialog::open(SmartUtil::tstring& target)
-{
- TCHAR szFile[PATH_BUFFER_SIZE + 1]; // buffer for file name
- szFile[0] = '\0';
- OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
- fillOFN( ofn, getParentHandle(), 0 );
- ofn.lpstrFile = szFile;
-
- if ( ::GetSaveFileName( & ofn ) )
- {
- target = ofn.lpstrFile;
- backslashToForwardSlashForUnix( target );
- return true;
- }
- return false;
-}
-
inline SaveDialog::SaveDialog( Widget * parent )
- : AspectFileFilter( parent )
+ : AspectFileFilter<SaveDialog>( parent )
{
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:14:44
|
Revision: 1087
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1087&view=rev
Author: arnetheduck
Date: 2008-03-30 01:14:41 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Change factory names for load/save
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 09:12:53.312000036 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 09:16:19.821000099 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:14:18 UTC (rev 1086)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:14:41 UTC (rev 1087)
@@ -259,7 +259,7 @@
/// Creates a SaveFileDialog and returns a pointer to it.
/** Use this one to construct a ( stack object ) to show a Save File Dialog
*/
- SaveDialog createSaveFile();
+ SaveDialog createSaveDialog();
/// Creates a ColorDialog and returns it.
/** Usable to let user choose font from the system installed fonts.
@@ -493,7 +493,7 @@
template<typename ContainerWidgetType>
typename WidgetFactory< ContainerWidgetType >::SaveDialog
-WidgetFactory< ContainerWidgetType >::createSaveFile()
+WidgetFactory< ContainerWidgetType >::createSaveDialog()
{
return SaveDialog ( this );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:15:32
|
Revision: 1088
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1088&view=rev
Author: arnetheduck
Date: 2008-03-30 01:15:26 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Use sw load/save dialogs
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/CertificatesPage.cpp
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/QueueFrame.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/WinUtil.cpp
dcplusplus/trunk/win32/WinUtil.h
Added Paths:
-----------
dcplusplus/trunk/smartwin/source/widgets/LoadDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/SaveDialog.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 09:16:19.821000099 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 11:32:16.434999943 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
-
+ smartwin/source/widgets/LoadDialog.cpp loaddialog.cpp-20080329103151-2zvxbm5b87on29pc-1
smartwin/source/widgets/SaveDialog.cpp savedialog.cpp-20080329103151-2zvxbm5b87on29pc-2
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/changelog.txt 2008-03-30 08:15:26 UTC (rev 1088)
@@ -12,6 +12,7 @@
* Fixed selection glitches
* Both up&downloads are disconnected if evil users quit (thanks poy)
* Add average share to status bar (thanks mikejj)
+* Minor improvements to load / save dialogs
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:15:26 UTC (rev 1088)
@@ -254,7 +254,7 @@
/// Creates a LoadFileDialog and returns a pointer to it.
/** Use this one to construct a ( stack object ) to show a Load File Dialog
*/
- LoadDialog createLoadFile();
+ LoadDialog createLoadDialog();
/// Creates a SaveFileDialog and returns a pointer to it.
/** Use this one to construct a ( stack object ) to show a Save File Dialog
@@ -486,7 +486,7 @@
template<typename ContainerWidgetType>
typename WidgetFactory< ContainerWidgetType >::LoadDialog
-WidgetFactory< ContainerWidgetType >::createLoadFile()
+WidgetFactory< ContainerWidgetType >::createLoadDialog()
{
return LoadDialog ( this );
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h 2008-03-30 08:15:26 UTC (rev 1088)
@@ -78,6 +78,7 @@
WidgetType& setDefaultExtension(const SmartUtil::tstring& defExt) {
itsDefExt = defExt;
+ return *static_cast<WidgetType*>(this);
}
/// Returns the active filter of the object
Added: dcplusplus/trunk/smartwin/source/widgets/LoadDialog.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/LoadDialog.cpp (rev 0)
+++ dcplusplus/trunk/smartwin/source/widgets/LoadDialog.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -0,0 +1,51 @@
+#include "../../include/smartwin/widgets/LoadDialog.h"
+
+namespace SmartWin {
+
+bool LoadDialog::open(SmartUtil::tstring& file)
+{
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY );
+
+ if ( ::GetOpenFileName( & ofn ) ) {
+ file = ofn.lpstrFile;
+ return true;
+ }
+ return false;
+}
+
+bool LoadDialog::open(std::vector<SmartUtil::tstring>& files)
+{
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT );
+ if( ::GetOpenFileName(&ofn) )
+ {
+ // If a single file is selected, the lpstrFile string is just the path terminated by TWO null bytes
+ // If multiple files are selected, the format of the string returned is:
+ // DIRECTORY_PATH + '\0' + FILE_NAME_1 + '\0' + FILE_NAME_2 + '\0' + ... + FILE_NAME_N + '\0' + '\0'
+ // (Note the last file name is terminated by two null bytes)
+
+ SmartUtil::tstring fileName;
+ SmartUtil::tstring filePath;
+ SmartUtil::tstring directory;
+ directory = ofn.lpstrFile; // tstring ends at first null
+ TCHAR *array_p = ofn.lpstrFile + directory.length() + 1; // set pointer to one position past null
+ fileName = array_p; // fileName is substring from array_p to next null
+ if (fileName.length() == 0) // only one file was selected
+ files.push_back(directory); // string 'directory' contains full path
+ else
+ {
+ while (fileName.length() > 0)
+ {
+ filePath = directory + _T("\\") + fileName;
+ files.push_back(filePath);
+ array_p = array_p + fileName.length() + 1; // set pointer one position past null
+ fileName = array_p; // fileName is substring from array_p to next null
+ }
+ }
+ return true;
+ }
+ return false;
+}
+
+}
Added: dcplusplus/trunk/smartwin/source/widgets/SaveDialog.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/SaveDialog.cpp (rev 0)
+++ dcplusplus/trunk/smartwin/source/widgets/SaveDialog.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -0,0 +1,16 @@
+#include "../../include/smartwin/widgets/SaveDialog.h"
+
+namespace SmartWin {
+
+bool SaveDialog::open(SmartUtil::tstring& target) {
+ OPENFILENAME ofn = { sizeof(OPENFILENAME) }; // common dialog box structure
+ fillOFN( ofn, 0 );
+
+ if ( ::GetSaveFileName( & ofn ) ) {
+ target = ofn.lpstrFile;
+ return true;
+ }
+ return false;
+}
+
+}
Modified: dcplusplus/trunk/win32/Appearance2Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -157,7 +157,7 @@
::GetDlgItemText(handle(), IDC_BEEPFILE, buf, MAX_PATH);
tstring x = buf;
- if(WinUtil::browseFile(x, handle(), false) == IDOK) {
+ if(createLoadDialog().open(x)) {
setItemText(IDC_BEEPFILE, x);
}
}
Modified: dcplusplus/trunk/win32/CertificatesPage.cpp
===================================================================
--- dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -90,13 +90,13 @@
void CertificatesPage::handleBrowsePrivateKeyClicked() {
tstring target = privateKeyFile->getText();
- if(WinUtil::browseFile(target, handle(), false, target))
+ if(createLoadDialog().setInitialDirectory(target).open(target))
privateKeyFile->setText(target);
}
void CertificatesPage::handleBrowseCertificateClicked() {
tstring target = certificateFile->getText();
- if(WinUtil::browseFile(target, handle(), false, target))
+ if(createLoadDialog().setInitialDirectory(target).open(target))
certificateFile->setText(target);
}
Modified: dcplusplus/trunk/win32/DirectoryListingFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -260,7 +260,7 @@
void DirectoryListingFrame::handleListDiff() {
tstring file;
- if(WinUtil::browseFile(file, handle(), false, Text::toT(Util::getListPath()), _T("File Lists\0*.xml.bz2\0All Files\0*.*\0"))) {
+ if(WinUtil::browseFileList(createLoadDialog(), file)) {
DirectoryListing dirList(dl->getUser());
try {
dirList.loadFile(Text::fromT(file));
@@ -493,7 +493,7 @@
try {
if(ii->type == ItemInfo::FILE) {
tstring target = Text::toT(SETTING(DOWNLOAD_DIRECTORY)) + ii->getText(COLUMN_FILENAME);
- if(WinUtil::browseFile(target, handle())) {
+ if(createSaveDialog().open(target)) {
WinUtil::addLastDir(Util::getFilePath(target));
dl->download(ii->file, Text::fromT(target), false, WinUtil::isShift());
}
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -696,11 +696,9 @@
UPnP_TCPConnection = UPnP_UDPConnection = NULL;
}
-static const TCHAR types[]= _T("File Lists\0*.DcLst;*.xml.bz2\0All Files\0*.*\0");
-
void MainWindow::handleOpenFileList() {
tstring file;
- if (WinUtil::browseFile(file, handle(), false, Text::toT(Util::getListPath()), types)) {
+ if(WinUtil::browseFileList(createLoadDialog(), file)) {
UserPtr u = DirectoryListing::getUserFromFilename(Text::fromT(file));
if (u) {
DirectoryListingFrame::openWindow(getMDIParent(), file, Text::toT(Util::emptyString), u, 0);
Modified: dcplusplus/trunk/win32/QueueFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/QueueFrame.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/QueueFrame.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -703,23 +703,8 @@
// Single file, get the full filename and move...
QueueItemInfo* ii = files->getSelectedData();
tstring target = Text::toT(ii->getTarget());
- tstring ext = Util::getFileExt(target);
- tstring ext2;
- if (!ext.empty())
- {
- ext = ext.substr(1); // remove leading dot so default extension works when browsing for file
- ext2 = _T("*.") + ext;
- ext2 += (TCHAR)0;
- ext2 += _T("*.") + ext;
- }
- ext2 += _T("*.*");
- ext2 += (TCHAR)0;
- ext2 += _T("*.*");
- ext2 += (TCHAR)0;
-
- tstring path = Text::toT(ii->getPath());
- if(WinUtil::browseFile(target, handle(), true, path, ext2.c_str(), ext.empty() ? NULL : ext.c_str())) {
+ if(WinUtil::browseSaveFile(createSaveDialog(), target)) {
QueueManager::getInstance()->move(ii->getTarget(), Text::fromT(target));
}
} else if(n > 1) {
Modified: dcplusplus/trunk/win32/SearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/SearchFrame.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -667,7 +667,7 @@
if(sr->getType() == SearchResult::TYPE_FILE) {
tstring target = Text::toT(SETTING(DOWNLOAD_DIRECTORY)) + si->columns[COLUMN_FILENAME];
- if(WinUtil::browseFile(target, handle())) {
+ if(WinUtil::browseSaveFile(createSaveDialog(), target)) {
WinUtil::addLastDir(Util::getFilePath(target));
results->forEachSelectedT(SearchInfo::DownloadTarget(target));
}
Modified: dcplusplus/trunk/win32/WinUtil.cpp
===================================================================
--- dcplusplus/trunk/win32/WinUtil.cpp 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/WinUtil.cpp 2008-03-30 08:15:26 UTC (rev 1088)
@@ -402,31 +402,26 @@
lastDirs.push_back(dir);
}
-bool WinUtil::browseFile(tstring& target, HWND owner /* = NULL */, bool save /* = true */, const tstring& initialDir /* = Util::emptyString */, const TCHAR* types /* = NULL */, const TCHAR* defExt /* = NULL */) {
- TCHAR buf[MAX_PATH];
- OPENFILENAME ofn = { 0 }; // common dialog box structure
- target = Text::toT(Util::validateFileName(Text::fromT(target)));
- _tcscpy(buf, target.c_str());
- // Initialize OPENFILENAME
- ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400;
- ofn.hwndOwner = owner;
- ofn.lpstrFile = buf;
- ofn.lpstrFilter = types;
- ofn.lpstrDefExt = defExt;
- ofn.nFilterIndex = 1;
-
- if(!initialDir.empty()) {
- ofn.lpstrInitialDir = initialDir.c_str();
+bool WinUtil::browseSaveFile(SmartWin::SaveDialog dlg, tstring& file) {
+ tstring ext = Util::getFileExt(file);
+ tstring path = Util::getFilePath(file);
+
+ if(!ext.empty()) {
+ ext = ext.substr(1); // remove leading dot so default extension works when browsing for file
+ dlg.addFilter(str(TF_("%1% files") % ext), _T("*.") + ext);
+ dlg.setDefaultExtension(ext);
}
- ofn.nMaxFile = sizeof(buf);
- ofn.Flags = (save ? 0: OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST);
+ dlg.addFilter(T_("All files"), _T("*.*"));
+ dlg.setInitialDirectory(path);
+
+ return dlg.open(file);
+}
- // Display the Open dialog box.
- if ( (save ? ::GetSaveFileName(&ofn) : ::GetOpenFileName(&ofn) ) ==TRUE) {
- target = ofn.lpstrFile;
- return true;
- }
- return false;
+bool WinUtil::browseFileList(SmartWin::LoadDialog dialog, tstring& file) {
+ return dialog.addFilter(T_("File Lists"), _T("*.xml.bz2"))
+ .addFilter(T_("All files"), _T("*.*"))
+ .setInitialDirectory(Text::toT(Util::getListPath()))
+ .open(file);
}
int WinUtil::getOsMajor() {
Modified: dcplusplus/trunk/win32/WinUtil.h
===================================================================
--- dcplusplus/trunk/win32/WinUtil.h 2008-03-30 08:14:41 UTC (rev 1087)
+++ dcplusplus/trunk/win32/WinUtil.h 2008-03-30 08:15:26 UTC (rev 1088)
@@ -154,8 +154,9 @@
static void addLastDir(const tstring& dir);
static void openLink(const tstring& url);
- static bool browseFile(tstring& target, HWND owner = NULL, bool save = true, const tstring& initialDir = Util::emptyStringT, const TCHAR* types = NULL, const TCHAR* defExt = NULL);
-
+ static bool browseSaveFile(SmartWin::SaveDialog dialog, tstring& file);
+ static bool browseFileList(SmartWin::LoadDialog dialog, tstring& file);
+
static int getOsMajor();
static int getOsMinor();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:17:36
|
Revision: 1089
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1089&view=rev
Author: arnetheduck
Date: 2008-03-30 01:17:30 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
rename windows&dialogs
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/Anchors.h
dcplusplus/trunk/smartwin/include/smartwin/Application.h
dcplusplus/trunk/smartwin/include/smartwin/Policies.h
dcplusplus/trunk/smartwin/include/smartwin/SmartWin.h
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectColor.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMinMax.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIChild.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIParent.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolTip.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Tree.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/source/widgets/WidgetDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetModalDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetWindow.cpp
dcplusplus/trunk/win32/ADLSProperties.cpp
dcplusplus/trunk/win32/ADLSProperties.h
dcplusplus/trunk/win32/AboutDlg.cpp
dcplusplus/trunk/win32/AboutDlg.h
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/CommandDlg.h
dcplusplus/trunk/win32/FavHubProperties.cpp
dcplusplus/trunk/win32/FavHubProperties.h
dcplusplus/trunk/win32/HashProgressDlg.cpp
dcplusplus/trunk/win32/HashProgressDlg.h
dcplusplus/trunk/win32/HubListsDlg.cpp
dcplusplus/trunk/win32/HubListsDlg.h
dcplusplus/trunk/win32/LineDlg.cpp
dcplusplus/trunk/win32/LineDlg.h
dcplusplus/trunk/win32/MagnetDlg.cpp
dcplusplus/trunk/win32/MagnetDlg.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/SettingsDialog.h
dcplusplus/trunk/win32/SplashWindow.cpp
dcplusplus/trunk/win32/SplashWindow.h
dcplusplus/trunk/win32/WidgetPaned.h
Added Paths:
-----------
dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ModalDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ModelessDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h
Removed Paths:
-------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetModalDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindow.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindowBase.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 11:32:16.434999943 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 13:40:42.691999912 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- smartwin/source/widgets/LoadDialog.cpp loaddialog.cpp-20080329103151-2zvxbm5b87on29pc-1
smartwin/source/widgets/SaveDialog.cpp savedialog.cpp-20080329103151-2zvxbm5b87on29pc-2
+ smartwin/include/smartwin/widgets/Frame.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetWindowBase.h
smartwin/include/smartwin/widgets/ModalDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetModalDialog.h
smartwin/include/smartwin/widgets/ModelessDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetDialog.h
smartwin/include/smartwin/widgets/Window.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetWindow.h
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
Modified: dcplusplus/trunk/smartwin/include/smartwin/Anchors.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Anchors.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/Anchors.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -42,7 +42,7 @@
* the files in the current directory, grows or shrinks according to the size of the dialog.
*
* That's what Anchors does. After the widgets were created, you add them to a special list,
-* and in the event handler of OnSize (of your WidgetWindow), you call a special method that
+* and in the event handler of OnSize (of your Window), you call a special method that
* resizes all the widgets you've added before.
*
* Supposed to be simple.
Modified: dcplusplus/trunk/smartwin/include/smartwin/Application.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Application.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/Application.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -59,7 +59,7 @@
class Widget;
namespace Policies {
-class ModalDialog;
+class ModelessDialog;
}
/// Class declaration for the application class
@@ -94,7 +94,7 @@
#endif
friend class Widget;
- friend class Policies::ModalDialog;
+ friend class Policies::ModelessDialog;
public:
/// Returns the Application object
/** Use this static function to access the Application object.
Modified: dcplusplus/trunk/smartwin/include/smartwin/Policies.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -35,11 +35,11 @@
// begin namespace SmartWin
template<typename Policy>
-class MessageMapPolicy : public Policy {
+class MessageMap : public Policy {
public:
- typedef MessageMapPolicy<Policy> PolicyType;
+ typedef MessageMap<Policy> PolicyType;
- MessageMapPolicy(Widget* parent) : Policy(parent) { }
+ MessageMap(Widget* parent) : Policy(parent) { }
static LRESULT CALLBACK wndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
// Check if this is an init type message - a message that will set the window pointer correctly
@@ -119,15 +119,12 @@
};
namespace Policies {
-/// Aspect classes for a MessageMapPolicyDialogWidget
-/** Used as the third template argument to WidgetFactory if you're creating a
- * MessageMapPolicyDialogWidget
- */
-class Dialog
+/// Policy for modeless dialogs
+class ModelessDialog
: public Widget
{
public:
- Dialog(Widget* parent) : Widget(parent) { }
+ ModelessDialog(Widget* parent) : Widget(parent) { }
static LRESULT returnDestroyed(HWND hWnd, UINT msg, WPARAM wPar, LPARAM lPar) {
return FALSE;
@@ -162,21 +159,18 @@
if ( uMsg == WM_INITDIALOG )
{
// extracting the this pointer and stuffing it into the Window with SetProp
- Dialog* This = reinterpret_cast<Dialog*>(lParam);
+ ModelessDialog* This = reinterpret_cast<ModelessDialog*>(lParam);
This->attach( hwnd );
}
}
};
-/// Aspect classes for a MessageMapPolicyModalDialogWidget
-/** Used as the third template argument to WidgetFactory if you're creating a
- * MessageMapPolicyModalDialogWidget
- */
+/// Policy for modal dialogs - these are treated the same as modeless dialogs but are not automagically deleted
class ModalDialog
- : public Dialog
+ : public ModelessDialog
{
public:
- ModalDialog(Widget* parent) : Dialog(parent) { }
+ ModalDialog(Widget* parent) : ModelessDialog(parent) { }
virtual void kill() {
// Modal dialogs are stack allocated, so no delete
@@ -242,7 +236,7 @@
virtual void attach(HWND hWnd) {
Normal::attach(hWnd);
- oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( hWnd, GWL_WNDPROC, ( LONG_PTR ) &MessageMapPolicy<Subclassed>::wndProc ) );
+ oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( hWnd, GWL_WNDPROC, ( LONG_PTR ) &MessageMap<Subclassed>::wndProc ) );
}
using Widget::attach;
private:
Modified: dcplusplus/trunk/smartwin/include/smartwin/SmartWin.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/SmartWin.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/SmartWin.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -63,7 +63,8 @@
#include "resources/Icon.h"
#include "resources/ImageList.h"
#include "resources/Pen.h"
-#include "widgets/WidgetModalDialog.h"
+#include "widgets/ModalDialog.h"
+#include "widgets/ModelessDialog.h"
namespace sw = SmartWin;
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -200,7 +200,7 @@
Widget * itsParent;
HWND itsHandle;
- /// The atom with which the pointer to the MessageMapBase is registered on the HWND
+ /// The atom with which the pointer to the Widget is registered on the HWND
static GlobalAtom propAtom;
};
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -37,7 +37,6 @@
#include "widgets/ComboBox.h"
#include "widgets/Table.h"
#include "widgets/DateTime.h"
-#include "widgets/WidgetDialog.h"
#include "widgets/GroupBox.h"
#include "widgets/LoadDialog.h"
#include "widgets/MDIChild.h"
@@ -55,8 +54,8 @@
#include "widgets/TextBox.h"
#include "widgets/Tree.h"
#include "widgets/ToolTip.h"
-#include "widgets/WidgetWindow.h"
-#include "widgets/WidgetWindowBase.h"
+#include "widgets/Window.h"
+#include "widgets/Frame.h"
#include "WidgetFactoryPlatformImplementation.h"
#include "WidgetCreator.h"
@@ -66,15 +65,15 @@
/// Factory class for creating Widgets from a derived custom class
/** This is the class you would normally derive from in your own application. <br>
- * < p >Derive directly from WidgetFactory and then supply WidgetWindow as the first
+ * < p >Derive directly from WidgetFactory and then supply Window as the first
* template parameter. The second parameter would then be YOUR CLASS ( this is
* needed for the SmartWin type system to function ) Example : < b >class
- * MyMainWindow : public SmartWin::WidgetFactory< SmartWin::WidgetWindow,
+ * MyMainWindow : public SmartWin::WidgetFactory< SmartWin::Window,
* MyMainWindow > { ... };< /b > The third template argument is for declaring what
* type of Widget you're declaring, for a "normal Widget" this defaults to
- * MessageMapPolicyNormalWidget, if this is a Widget constructed from a dialog
- * resource, you must state so by adding SmartWin::MessageMapPolicyDialogWidget and
- * if it is a MDI Child you must add SmartWin::MessageMapPolicyMDIChildWidget as the
+ * MessageMapNormalWidget, if this is a Widget constructed from a dialog
+ * resource, you must state so by adding SmartWin::MessageMapDialogWidget and
+ * if it is a MDI Child you must add SmartWin::MessageMapMDIChildWidget as the
* third argument Then when you need e.g. a Button you would create that
* button by calling createButton. Class contains type defs for your
* convenience for all Widget types that exists in the SmartWin library.< /p > Note!
@@ -217,16 +216,16 @@
/// WidgetChildWindow object type.
typedef typename WidgetChildWindow::ObjectType WidgetChildWindowPtr;
- /// WidgetWindow class type.
- typedef SmartWin::WidgetWindow WidgetWindow;
+ /// Window class type.
+ typedef SmartWin::Window Window;
- /// WidgetWindow object type.
- typedef typename WidgetWindow::ObjectType WidgetWindowPtr;
+ /// Window object type.
+ typedef typename Window::ObjectType WindowPtr;
/// MDIFrame class type.
typedef SmartWin::MDIFrame MDIFrame;
- /// WidgetWindow object type.
+ /// Window object type.
typedef typename MDIFrame::ObjectType MDIFramePtr;
/// ProgressBar class type.
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectColor.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectColor.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectColor.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -38,7 +38,7 @@
/// Aspect class used by Widgets that have the possibility of handling the
/// erase background property
/** \ingroup AspectClasses
- * E.g. the WidgetWindow has a background Aspect to it, therefore Table
+ * E.g. the Window has a background Aspect to it, therefore Table
* realizes the AspectEnabled through inheritance.
*/
template<class WidgetType>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -38,7 +38,7 @@
// begin namespace SmartWin
/// Aspect class used by dialog Widgets that have the possibility of trapping "drop files events".
/** \ingroup AspectClasses
- * E.g. the WidgetModalDialog can trap "drop files events" therefore they realize the AspectDragDrop through inheritance.
+ * E.g. the ModalDialog can trap "drop files events" therefore they realize the AspectDragDrop through inheritance.
*/
template< class WidgetType >
class AspectDragDrop
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -37,7 +37,7 @@
/// Aspect class used by Widgets that have the possibility of handling the erase
/// background property
/** \ingroup AspectClasses
- * E.g. the WidgetWindow have a AspectEraseBackground Aspect to it therefore
+ * E.g. the Window have a AspectEraseBackground Aspect to it therefore
* Table realize the AspectEraseBackground through inheritance. When the
* Widget needs to erase its background this event will be called with a Canvas
* object which can be used for manipulating the colors etc the system uses to
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMinMax.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMinMax.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMinMax.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -69,21 +69,21 @@
/** This will make the window fill the whole area that the window has available.
* <br>
* This function cannot be called for any Widget types other than those derived
- * from WidgetWindowBase.
+ * from Frame.
*/
void maximize();
/// Minimize your window
/** This will make the window become minimized. <br>
* This function cannot be called for any Widget types other than those derived
- * from WidgetWindowBase.
+ * from Frame.
*/
void minimize();
/// Restores your window
/** This will make the window become restored. <br>
* This function cannot be called for any Widget types other than those derived
- * from WidgetWindowBase.
+ * from Frame.
*/
void restore();
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -78,7 +78,7 @@
/// Aspect class used by Widgets that have the possibility of trapping "mouse
/// clicked" events.
/** \ingroup AspectClasses
- * E.g. the WidgetWindow can trap "mouse clicked events" therefore it realize the
+ * E.g. the Window can trap "mouse clicked events" therefore it realize the
* AspectMouse through inheritance.
*/
template< class WidgetType >
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -19,7 +19,7 @@
/** Base class is for windows common controls */
class Control :
- public MessageMapPolicy< Policies::Subclassed >,
+ public MessageMap< Policies::Subclassed >,
public AspectBorder<Control>,
public AspectContextMenu<Control>,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h 2008-03-30 08:15:26 UTC (rev 1088)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -69,7 +69,7 @@
* complex Widgets lke for instance a ComboBox, a TextBox and so on...
*/
class CoolBar :
- public MessageMapPolicy< Policies::Subclassed >,
+ public MessageMap< Policies::Subclassed >,
// Aspects
public AspectEnabled< CoolBar >,
@@ -101,8 +101,6 @@
/// Object type
typedef ThisType * ObjectType;
- typedef MessageMapPolicy<Policies::Subclassed> PolicyType;
-
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
Copied: dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h (from rev 1088, dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindowBase.h)
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-03-30 08:17:30 UTC (rev 1089)
@@ -0,0 +1,369 @@
+/*
+ Copyright (c) 2005, Thomas Hansen
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of the SmartWin++ nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+#ifndef Frame_h
+#define Frame_h
+
+#include "../Application.h"
+#include "../Rectangle.h"
+#include "../Policies.h"
+#include "../aspects/AspectActivate.h"
+#include "../aspects/AspectBorder.h"
+#include "../aspects/AspectCommand.h"
+#include "../aspects/AspectContextMenu.h"
+#include "../aspects/AspectDragDrop.h"
+#include "../aspects/AspectEnabled.h"
+#include "../aspects/AspectEraseBackground.h"
+#include "../aspects/AspectFocus.h"
+#include "../aspects/AspectFont.h"
+#include "../aspects/AspectHelp.h"
+#include "../aspects/AspectKeyboard.h"
+#include "../aspects/AspectMinMax.h"
+#include "../aspects/AspectMouse.h"
+#include "../aspects/AspectPainting.h"
+#include "../aspects/AspectRaw.h"
+#include "../aspects/AspectSizable.h"
+#include "../aspects/AspectText.h"
+#include "../aspects/AspectVisible.h"
+#include "../xCeption.h"
+
+namespace SmartWin
+{
+// begin namespace SmartWin
+
+/// Main Window class
+/** \ingroup WidgetControls
+ * \WidgetUsageInfo
+ * \image html widgetwindow.png
+ * This class defines a "normal" window or the most commonly used "container
+ * Widget", normally you would define your own class which (indirectly) derives from
+ * this one. <br>
+ * You would normally derive directly from WidgetFactory and then supply this class
+ * as the first template parameter. <br>
+ * The second parameter would then be YOUR CLASS. <br>
+ * Example <br>
+ * <b>class MyMainWindow : public SmartWin::WidgetFactory<SmartWin::Window,
+ * MyMainWindow> { ... };</b> <br>
+ * Note especially that the second template argument to the WidgetFactory template
+ * class would almost ALWAYS be the name of your class derived from WidgetFactory.
+ * <br>
+ * You can also derive directly from Window and skip around the WidgetFactory
+ * factory class, the inheritance string would then become: <br>
+ * <b>class MyMainWindow : public SmartWin::Window<MyMainWindow></b> <br>
+ * But then you wouldn't have access to all the "createxxx" functions from class
+ * WidgetFactory which automatically gurantees that your Widgets get the right parent
+ * etc. <br>
+ * Look at (almost) any of the example projects distributed with the main download of
+ * the library residing in the SmartWinUnitTests directory for an example of how to
+ * use this class with the factory class WidgetFactory.
+ */
+template< class Policy >
+class Frame :
+ public MessageMap< Policy >,
+
+ // Aspects
+ public AspectActivate< Frame< Policy > >,
+ public AspectBorder< Frame< Policy > >,
+ public AspectCommand< Frame< Policy > >,
+ public AspectContextMenu< Frame< Policy > >,
+ public AspectDragDrop< Frame< Policy > >,
+ public AspectEnabled< Frame< Policy > >,
+ public AspectEraseBackground< Frame< Policy > >,
+ public AspectFocus< Frame< Policy > >,
+ public AspectFont< Frame< Policy > >,
+ public AspectHelp< Frame< Policy > >,
+ public AspectKeyboard< Frame< Policy > >,
+ public AspectMinMax<Frame<Policy> >,
+ public AspectMouse< Frame< Policy > >,
+ public AspectPainting< Frame< Policy > >,
+ public AspectRaw< Frame< Policy > >,
+ public AspectSizable< Frame< Policy > >,
+ public AspectText< Frame< Policy > >,
+ public AspectVisible< Frame< Policy > >
+{
+ struct CloseDispatcher
+ {
+ typedef std::tr1::function<bool ()> F;
+
+ CloseDispatcher(const F& f_, Widget* widget_) : f(f_), widget(widget_) { }
+
+ bool operator()(const MSG& msg, LRESULT& ret) {
+ bool destroy = f();
+
+ if ( destroy ) {
+ return false;
+ }
+
+ return true;
+ }
+
+ F f;
+ Widget* widget;
+ };
+
+ struct TimerDispatcher
+ {
+ typedef std::tr1::function<bool ()> F;
+
+ TimerDispatcher(const F& f_) : f(f_) { }
+
+ bool operator()(const MSG& msg, LRESULT& ret) {
+ bool keep = f();
+
+ if(!keep) {
+ ::KillTimer(msg.hwnd, msg.wParam);
+ // TODO remove from message map as well...
+ }
+ return FALSE;
+ }
+
+ F f;
+ };
+
+public:
+ /// Class type
+ typedef Frame< Policy > ThisType;
+
+ /// Object type
+ typedef ThisType * ObjectType;
+
+ // TODO: Outfactor into WidgetClosable
+ /// Event Handler setter for the Closing Event
+ /** If supplied event handler is called before the window is closed. <br>
+ * Signature of event handler must be "bool foo()" <br>
+ * If you return true from your event handler the window is closed, otherwise
+ * the window is NOT allowed to actually close!!
+ */
+ void onClosing(const typename CloseDispatcher::F& f) {
+ this->addCallback(
+ Message( WM_CLOSE ), CloseDispatcher(f, this)
+ );
+ }
+
+ // TODO: Outfactor into "time Aspect" class
+ /// Creates a timer object.
+ /** The supplied function must have the signature bool foo() <br>
+ * The event function will be called when at least milliSeconds seconds have elapsed.
+ * If your event handler returns true, it will keep getting called periodically, otherwise
+ * it will be removed.
+ */
+ void createTimer(const typename TimerDispatcher::F& f, unsigned int milliSeconds, unsigned int id = 0);
+
+ /// Closes ...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-30 08:28:28
|
Revision: 1090
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1090&view=rev
Author: arnetheduck
Date: 2008-03-30 01:28:27 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Add xml->po conversion tool, only pipe when not saving temps
Modified Paths:
--------------
dcplusplus/trunk/SConstruct
Added Paths:
-----------
dcplusplus/trunk/x2po.py
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 13:40:42.691999912 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 13:49:26.227999926 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- smartwin/include/smartwin/widgets/Frame.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetWindowBase.h
smartwin/include/smartwin/widgets/ModalDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetModalDialog.h
smartwin/include/smartwin/widgets/ModelessDialog.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetDialog.h
smartwin/include/smartwin/widgets/Window.h 712@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Finclude%2Fsmartwin%2Fwidgets%2FWidgetWindow.h
+ x2po.py x2po.py-20080329124851-4mzy5m3ojyowxxbv-1
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
Modified: dcplusplus/trunk/SConstruct
===================================================================
--- dcplusplus/trunk/SConstruct 2008-03-30 08:17:30 UTC (rev 1089)
+++ dcplusplus/trunk/SConstruct 2008-03-30 08:28:27 UTC (rev 1090)
@@ -17,7 +17,7 @@
)
gcc_flags = {
- 'common': ['-g', '-Wall', '-Wextra', '-pipe', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-fexceptions', '-mthreads'],
+ 'common': ['-g', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-fexceptions', '-mthreads'],
'debug': [],
'release' : ['-O2', '-mwindows']
}
@@ -105,10 +105,13 @@
env.Append(LIBS = ['stlport.5.1'])
elif 'gcc' in env['TOOLS']:
env.Append(CPPDEFINES = ['BOOST_HAS_GCC_TR1'])
-
-if env['savetemps'] and 'gcc' in env['TOOLS']:
- env.Append(CCFLAGS = ['-save-temps', '-fverbose-asm'])
+if 'gcc' in env['TOOLS']:
+ if env['savetemps']:
+ env.Append(CCFLAGS = ['-save-temps', '-fverbose-asm'])
+ else:
+ env.Append(CCFLAGS = ['-pipe'])
+
if env['unicode']:
env.Append(CPPDEFINES = ['UNICODE', '_UNICODE'])
Added: dcplusplus/trunk/x2po.py
===================================================================
--- dcplusplus/trunk/x2po.py (rev 0)
+++ dcplusplus/trunk/x2po.py 2008-03-30 08:28:27 UTC (rev 1090)
@@ -0,0 +1,365 @@
+# -*- coding: utf-8 -*-
+
+import sys, re, codecs
+
+if len(sys.argv) < 5:
+ print "x2po pot source locale translator project"
+ sys.exit(0)
+
+pot = sys.argv[1]
+source = sys.argv[2]
+locale = sys.argv[3]
+translator = sys.argv[4]
+project = sys.argv[5]
+
+langs = {
+ "aa": "Afar",
+ "ab": "Abkhazian",
+ "ace": "Achinese",
+ "ad": "Adangme",
+ "ae": "Avestan",
+ "af": "Afrikaans",
+ "ak": "Akan",
+ "am": "Amharic",
+ "an": "Aragonese",
+ "ang": "Old English",
+ "ar": "Arabic",
+ "as": "Assamese",
+ "av": "Avaric",
+ "awa": "Awadhi",
+ "ay": "Aymara",
+ "az": "Azerbaijani",
+ "ba": "Bashkir",
+ "bad": "Banda",
+ "bal": "Baluchi",
+ "ban": "Balinese",
+ "be": "Belarusian",
+ "bem": "Bemba",
+ "bg": "Bulgarian",
+ "bh": "Bihari",
+ "bho": "Bhojpuri",
+ "bi": "Bislama",
+ "bik": "Bikol",
+ "bin": "Bini",
+ "bm": "Bambara",
+ "bn": "Bengali",
+ "bo": "Tibetan",
+ "br": "Breton",
+ "bs": "Bosnian",
+ "btk": "Batak",
+ "bug": "Buginese",
+ "ca": "Catalan",
+ "ce": "Chechen",
+ "ceb": "Cebuano",
+ "ch": "Chamorro",
+ "co": "Corsican",
+ "cr": "Cree",
+ "cs": "Czech",
+ "csb": "Kashubian",
+ "cu": "Church Slavic",
+ "cv": "Chuvash",
+ "cy": "Welsh",
+ "da": "Danish",
+ "de": "German",
+ "din": "Dinka",
+ "doi": "Dogri",
+ "dv": "Divehi",
+ "dz": "Dzongkha",
+ "ee": "Ewe",
+ "el": "Greek",
+ "en": "English",
+ "eo": "Esperanto",
+ "es": "Spanish",
+ "et": "Estonian",
+ "eu": "Basque",
+ "fa": "Persian",
+ "ff": "Fulah",
+ "fi": "Finnish",
+ "fil": "Filipino",
+ "fj": "Fijian",
+ "fo": "Faroese",
+ "fon": "Fon",
+ "fr": "French",
+ "fy": "Western Frisian",
+ "ga": "Irish",
+ "gd": "Scots",
+ "gl": "Galician",
+ "gn": "Guarani",
+ "gon": "Gondi",
+ "gsw": "Swiss German",
+ "gu": "Gujarati",
+ "gv": "Manx",
+ "ha": "Hausa",
+ "he": "Hebrew",
+ "hi": "Hindi",
+ "hil": "Hiligaynon",
+ "hmn": "Hmong",
+ "ho": "Hiri Motu",
+ "hr": "Croatian",
+ "ht": "Haitian",
+ "hu": "Hungarian",
+ "hy": "Armenian",
+ "hz": "Herero",
+ "ia": "Interlingua",
+ "id": "Indonesian",
+ "ie": "Interlingue",
+ "ig": "Igbo",
+ "ii": "Sichuan Yi",
+ "ik": "Inupiak",
+ "ilo": "Iloko",
+ "is": "Icelandic",
+ "it": "Italian",
+ "iu": "Inuktitut",
+ "ja": "Japanese",
+ "jab": "Hyam",
+ "jv": "Javanese",
+ "ka": "Georgian",
+ "kab": "Kabyle",
+ "kaj": "Jju",
+ "kam": "Kamba",
+ "kbd": "Kabardian",
+ "kcg": "Tyap",
+ "kdm": "Kagoma",
+ "kg": "Kongo",
+ "ki": "Kikuyu",
+ "kj": "Kuanyama",
+ "kk": "Kazakh",
+ "kl": "Kalaallisut",
+ "km": "Khmer",
+ "kmb": "Kimbundu",
+ "kn": "Kannada",
+ "ko": "Korean",
+ "kr": "Kanuri",
+ "kru": "Kurukh",
+ "ks": "Kashmiri",
+ "ku": "Kurdish",
+ "kv": "Komi",
+ "kw": "Cornish",
+ "ky": "Kirghiz",
+ "kok": "Konkani",
+ "la": "Latin",
+ "lb": "Letzeburgesch",
+ "lg": "Ganda",
+ "li": "Limburgish",
+ "ln": "Lingala",
+ "lo": "Laotian",
+ "lt": "Lithuanian",
+ "lu": "Luba-Katanga",
+ "lua": "Luba-Lulua",
+ "luo": "Luo",
+ "lv": "Latvian",
+ "mad": "Madurese",
+ "mag": "Magahi",
+ "mai": "Maithili",
+ "mak": "Makasar",
+ "man": "Mandingo",
+ "men": "Mende",
+ "mg": "Malagasy",
+ "mh": "Marshallese",
+ "mi": "Maori",
+ "min": "Minangkabau",
+ "mk": "Macedonian",
+ "ml": "Malayalam",
+ "mn": "Mongolian",
+ "mni": "Manipuri",
+ "mo": "Moldavian",
+ "mos": "Mossi",
+ "mr": "Marathi",
+ "ms": "Malay",
+ "mt": "Maltese",
+ "mwr": "Marwari",
+ "my": "Burmese",
+ "myn": "Mayan",
+ "na": "Nauru",
+ "nap": "Neapolitan",
+ "nah": "Nahuatl",
+ "nb": "Norwegian Bokmal",
+ "nd": "North Ndebele",
+ "nds": "Low Saxon",
+ "ne": "Nepali",
+ "ng": "Ndonga",
+ "nl": "Dutch",
+ "nn": "Norwegian Nynorsk",
+ "no": "Norwegian",
+ "nr": "South Ndebele",
+ "nso": "Northern Sotho",
+ "nv": "Navajo",
+ "ny": "Nyanja",
+ "nym": "Nyamwezi",
+ "nyn": "Nyankole",
+ "oc": "Occitan",
+ "oj": "Ojibwa",
+ "om": "(Afan) Oromo",
+ "or": "Oriya",
+ "os": "Ossetian",
+ "pa": "Punjabi",
+ "pag": "Pangasinan",
+ "pam": "Pampanga",
+ "pbb": "Páez",
+ "pi": "Pali",
+ "pl": "Polish",
+ "ps": "Pashto",
+ "pt": "Portuguese",
+ "qu": "Quechua",
+ "raj": "Rajasthani",
+ "rm": "Rhaeto-Roman",
+ "rn": "Kirundi",
+ "ro": "Romanian",
+ "ru": "Russian",
+ "rw": "Kinyarwanda",
+ "sa": "Sanskrit",
+ "sas": "Sasak",
+ "sat": "Santali",
+ "sc": "Sardinian",
+ "scn": "Sicilian",
+ "sd": "Sindhi",
+ "se": "Northern Sami",
+ "sg": "Sango",
+ "shn": "Shan",
+ "si": "Sinhala",
+ "sid": "Sidamo",
+ "sk": "Slovak",
+ "sl": "Slovenian",
+ "sm": "Samoan",
+ "sn": "Shona",
+ "so": "Somali",
+ "sq": "Albanian",
+ "sr": "Serbian",
+ "srr": "Serer",
+ "ss": "Siswati",
+ "st": "Sesotho",
+ "su": "Sundanese",
+ "suk": "Sukuma",
+ "sus": "Susu",
+ "sv": "Swedish",
+ "sw": "Swahili",
+ "ta": "Tamil",
+ "te": "Telugu",
+ "tem": "Timne",
+ "tet": "Tetum",
+ "tg": "Tajik",
+ "th": "Thai",
+ "ti": "Tigrinya",
+ "tiv": "Tiv",
+ "tk": "Turkmen",
+ "tl": "Tagalog",
+ "tn": "Setswana",
+ "to": "Tonga",
+ "tr": "Turkish",
+ "ts": "Tsonga",
+ "tt": "Tatar",
+ "tum": "Tumbuka",
+ "tw": "Twi",
+ "ty": "Tahitian",
+ "ug": "Uighur",
+ "uk": "Ukrainian",
+ "umb": "Umbundu",
+ "ur": "Urdu",
+ "uz": "Uzbek",
+ "ve": "Venda",
+ "vi": "Vietnamese",
+ "vo": "Volapuk",
+ "wal": "Walamo",
+ "war": "Waray",
+ "wen": "Sorbian",
+ "wo": "Wolof",
+ "xh": "Xhosa",
+ "yao": "Yao",
+ "yi": "Yiddish",
+ "yo": "Yoruba",
+ "za": "Zhuang",
+ "zh": "Chinese",
+ "zu": "Zulu",
+ "zap": "Zapotec"
+}
+plurals = {
+ "ja": "nplurals=1; plural=0;" ,
+ "ko": "nplurals=1; plural=0;" ,
+ "vi": "nplurals=1; plural=0;" ,
+ "tr": "nplurals=1; plural=0;" ,
+ "da": "nplurals=2; plural=(n != 1);" ,
+ "nl": "nplurals=2; plural=(n != 1);" ,
+ "en": "nplurals=2; plural=(n != 1);" ,
+ "fo": "nplurals=2; plural=(n != 1);" ,
+ "de": "nplurals=2; plural=(n != 1);" ,
+ "nb": "nplurals=2; plural=(n != 1);" ,
+ "no": "nplurals=2; plural=(n != 1);" ,
+ "nn": "nplurals=2; plural=(n != 1);" ,
+ "sv": "nplurals=2; plural=(n != 1);" ,
+ "et": "nplurals=2; plural=(n != 1);" ,
+ "fi": "nplurals=2; plural=(n != 1);" ,
+ "el": "nplurals=2; plural=(n != 1);" ,
+ "he": "nplurals=2; plural=(n != 1);" ,
+ "it": "nplurals=2; plural=(n != 1);" ,
+ "pt": "nplurals=2; plural=(n != 1);" ,
+ "es": "nplurals=2; plural=(n != 1);" ,
+ "eo": "nplurals=2; plural=(n != 1);" ,
+ "hu": "nplurals=2; plural=(n != 1);" ,
+ "fr": "nplurals=2; plural=(n > 1);" ,
+ "pt_BR": "nplurals=2; plural=(n > 1);" ,
+ "lv": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);" ,
+ "ga": "nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;" ,
+ "ro": "nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;" ,
+ "lt": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "hr": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "sr": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "ru": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "uk": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "sk": "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" ,
+ "cs": "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" ,
+ "pl": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" ,
+ "sl": "nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);"
+
+}
+
+ids = []
+for line in codecs.open(pot, "r", "utf-8"):
+ m = re.search(ur'^msgid "([^"]+)', line)
+ if m:
+ ids += [m.group(1)]
+
+oldmap = { }
+sre = re.compile(ur'<String Name="([^"]+)">([^<]+)<')
+
+for line in codecs.open(u"Example.xml", "r", "utf-8"):
+ m = sre.search(line)
+ if m:
+ oldmap[m.group(1)] = m.group(2)
+
+newmap = { }
+for line in codecs.open(source, "r", "utf-8"):
+ m = sre.search(line)
+ if m:
+ s = oldmap.get(m.group(1))
+ if s and s in ids:
+ newmap[s] = m.group(2).replace('"', '\\"')
+
+out = codecs.open(project + "/po/template-" + locale + ".po", "w", "utf-8")
+plural = plurals.get(locale, "plurals=2; plural=(n != 1);")
+language = langs.get(locale, "XXX");
+
+out.write(r"""
+# LANGUAGE translations for the DC++ package.
+# Copyright (C) 2008 The translators
+# This file is distributed under the same license as the DC++ package.
+# <TRANSLATOR>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT\n"
+"Report-Msgid-Bugs-To: dcp...@li...\n"
+"Last-Translator: <TRANSLATOR>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: PLURAL\n"
+
+""".replace("TRANSLATOR", translator).replace("PROJECT", project).replace("PLURAL", plural).replace("LANGUAGE", language)
+)
+
+for k, v in newmap.iteritems():
+ out.write(u'msgid "' + k + u'"\n')
+ out.write(u'msgstr "' + v + u'"\n')
+ out.write(u'\n')
+
+out.close()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:29:01
|
Revision: 1091
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1091&view=rev
Author: arnetheduck
Date: 2008-03-30 01:28:59 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Don't use control id's
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h
dcplusplus/trunk/smartwin/source/Message.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 13:49:26.227999926 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 16:09:01.500000000 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- x2po.py x2po.py-20080329124851-4mzy5m3ojyowxxbv-1
+
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -34,7 +34,6 @@
#include "../../SmartUtil/tstring.h"
#include <boost/noncopyable.hpp>
-#include <memory>
#include <list>
#include <functional>
#include <tr1/unordered_map>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -55,7 +55,7 @@
* something else. No parameters are passed.
*/
void onClicked(const typename Dispatcher::F& f) {
- W().addCallback(W().getClickMessage(), Dispatcher(f));
+ W().addCallback(WidgetType::getClickMessage(), Dispatcher(f));
}
protected:
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -28,6 +28,8 @@
public AspectPainting< Button >,
public AspectText< Button >
{
+ friend class AspectClickable<Button>;
+ friend class AspectDblClickable<Button>;
friend class WidgetCreator<Button>;
public:
/// Class type
@@ -49,12 +51,6 @@
Seed(const SmartUtil::tstring& caption_ = SmartUtil::tstring());
};
- // Contract needed by AspectClickable Aspect class
- Message getClickMessage();
-
- // Contract needed by AspectDblClickable Aspect class
- Message getDblClickMessage();
-
template<typename SeedType>
void create(const SeedType& cs);
@@ -62,14 +58,22 @@
typedef Button ButtonType;
Button(Widget* parent);
+
+private:
+ // Contract needed by AspectClickable Aspect class
+ static Message getClickMessage();
+
+ // Contract needed by AspectDblClickable Aspect class
+ static Message getDblClickMessage();
+
};
inline Message Button::getClickMessage() {
- return Message( WM_COMMAND, MAKEWPARAM(getControlId(), BN_CLICKED) );
+ return Message( WM_COMMAND, MAKEWPARAM(0, BN_CLICKED) );
}
inline Message Button::getDblClickMessage() {
- return Message( WM_COMMAND, MAKEWPARAM(getControlId(), BN_DBLCLK) );
+ return Message( WM_COMMAND, MAKEWPARAM(0, BN_DBLCLK) );
}
inline Button::Button(Widget* parent) : ControlType(parent) {
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -74,6 +74,8 @@
friend class AspectCollection<ComboBox, int>;
friend class AspectColor<ComboBox>;
friend class AspectSelection<ComboBox, int>;
+ friend class AspectClickable<ComboBox>;
+ friend class AspectDblClickable<ComboBox>;
public:
/// Class type
typedef ComboBox ThisType;
@@ -99,15 +101,6 @@
Seed();
};
- // Aspect expectation implementation
- Message getSelectionChangedMessage();
-
- // Aspect expectation implementation
- Message getClickMessage();
-
- // Aspect expectation implementation
- Message getDblClickMessage();
-
/// Return the selected value of the ComboBox
/** If no item is actually selected the return value is "".
*/
@@ -157,25 +150,31 @@
void clearImpl();
size_t sizeImpl() const;
+ // Aspect expectation implementation
+ static Message getSelectionChangedMessage();
+
+ // Aspect expectation implementation
+ static Message getClickMessage();
+
+ // Aspect expectation implementation
+ static Message getDblClickMessage();
+
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline Message ComboBox::getSelectionChangedMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), CBN_SELENDOK) );
+inline Message ComboBox::getSelectionChangedMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, CBN_SELENDOK) );
}
-inline Message ComboBox::getClickMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), CBN_DROPDOWN) );
+inline Message ComboBox::getClickMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, CBN_DROPDOWN) );
}
-inline Message ComboBox::getDblClickMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), CBN_DBLCLK) );
+inline Message ComboBox::getDblClickMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, CBN_DBLCLK) );
}
inline int ComboBox::getSelectedImpl() const {
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -17,7 +17,6 @@
namespace SmartWin {
/** Base class is for windows common controls */
-
class Control :
public MessageMap< Policies::Subclassed >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -61,6 +61,9 @@
public AspectFont< DateTime >,
public AspectPainting< DateTime >
{
+ friend class WidgetCreator< DateTime >;
+ friend class AspectClickable<DateTime>;
+
struct Dispatcher
{
typedef std::tr1::function<void (const SYSTEMTIME &)> F;
@@ -82,8 +85,6 @@
/// Object type
typedef ThisType* ObjectType;
- friend class WidgetCreator< DateTime >;
-
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
@@ -108,9 +109,6 @@
Seed();
};
- // Aspect expectation implementation
- static Message & getClickMessage();
-
/// Member function Setting the event handler for the "date changed" event
/** The event handler must have the signature "void foo( DateTimePtr
* date, const SYSTEMTIME & st )" <br>
@@ -209,16 +207,18 @@
// WidgetFactory class which is friend
virtual ~DateTime()
{}
+
+private:
+ // Aspect expectation implementation
+ static Message getClickMessage();
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline Message & DateTime::getClickMessage()
-{
- static Message retVal = Message( WM_NOTIFY, DTN_DROPDOWN );
- return retVal;
+inline Message DateTime::getClickMessage() {
+ return Message( WM_NOTIFY, DTN_DROPDOWN );
}
inline SYSTEMTIME DateTime::getDateTime()
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -72,6 +72,8 @@
public AspectText< Label >
{
friend class WidgetCreator< Label >;
+ friend class AspectClickable<Label>;
+ friend class AspectDblClickable<Label>;
public:
/// Class type
typedef Label ThisType;
@@ -94,12 +96,6 @@
Seed(const SmartUtil::tstring& caption_ = SmartUtil::tstring());
};
- // Contract needed by AspectClickable Aspect class
- Message getClickMessage();
-
- // Contract needed by AspectDblClickable Aspect class
- Message getDblClickMessage();
-
/// Actually creates the Static Control
/** You should call WidgetFactory::createStatic if you instantiate class
* directly. <br>
@@ -126,16 +122,20 @@
BitmapPtr itsBitmap;
void setBitmap( HBITMAP bitmap );
+
+ // Contract needed by AspectClickable Aspect class
+ static Message getClickMessage();
+
+ // Contract needed by AspectDblClickable Aspect class
+ static Message getDblClickMessage();
};
-inline Message Label::getClickMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), STN_CLICKED) );
+inline Message Label::getClickMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, STN_CLICKED) );
}
-inline Message Label::getDblClickMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), STN_DBLCLK) );
+inline Message Label::getDblClickMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, STN_DBLCLK) );
}
inline Label::Label( Widget * parent )
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -113,6 +113,8 @@
public AspectPainting< StatusBar< TypeOfStatusBar > >
{
friend class WidgetCreator< StatusBar >;
+ friend class AspectClickable< StatusBar< TypeOfStatusBar > >;
+ friend class AspectDblClickable< StatusBar< TypeOfStatusBar > >;
public:
/// Class type
typedef StatusBar<TypeOfStatusBar> ThisType;
@@ -145,12 +147,6 @@
*/
void refresh();
- // Contract needed by AspectClickable Aspect class
- static const Message& getClickMessage();
-
- // Contract needed by AspectDblClickable Aspect class
- static const Message& getDblClickMessage();
-
/// Actually creates the StatusBar
/** You should call WidgetFactory::createStatusBar if you instantiate class
* directly. <br>
@@ -166,6 +162,12 @@
// WidgetFactory class which is friend
virtual ~StatusBar()
{}
+
+ // Contract needed by AspectClickable Aspect class
+ static Message getClickMessage();
+
+ // Contract needed by AspectDblClickable Aspect class
+ static Message getDblClickMessage();
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -220,17 +222,15 @@
}
template< class TypeOfStatusBar >
-const Message & StatusBar< TypeOfStatusBar >::getClickMessage()
+Message StatusBar< TypeOfStatusBar >::getClickMessage()
{
- static Message retVal = Message( WM_NOTIFY, NM_CLICK );
- return retVal;
+ return Message( WM_NOTIFY, NM_CLICK );
}
template< class TypeOfStatusBar >
-const Message & StatusBar< TypeOfStatusBar >::getDblClickMessage()
+Message StatusBar< TypeOfStatusBar >::getDblClickMessage()
{
- static Message retVal = Message( WM_NOTIFY, NM_DBLCLK );
- return retVal;
+ return Message( WM_NOTIFY, NM_DBLCLK );
}
template< class TypeOfStatusBar >
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h 2008-03-30 08:28:59 UTC (rev 1091)
@@ -75,13 +75,11 @@
public AspectUpdate< TextBoxBase >
{
friend class WidgetCreator< TextBoxBase >;
-
+ friend class AspectUpdate<TextBoxBase>;
+
typedef Dispatchers::VoidVoid<> Dispatcher;
public:
- // Contract needed by AspectUpdate Aspect class
- Message getUpdateMessage();
-
/// Sets the current selection of the Edit Control
/** Start means the offset of where the current selection shall start, if it is
* omitted it defaults to 0. <br>
@@ -187,6 +185,12 @@
// is supposed to do so when parent is killed...
virtual ~TextBoxBase()
{}
+
+private:
+ // Contract needed by AspectUpdate Aspect class
+ static Message getUpdateMessage();
+
+
};
class TextBox :
@@ -280,9 +284,8 @@
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline Message TextBoxBase::getUpdateMessage()
-{
- return Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), EN_UPDATE) );
+inline Message TextBoxBase::getUpdateMessage() {
+ return Message( WM_COMMAND, MAKEWPARAM(0, EN_UPDATE) );
}
inline void TextBoxBase::setSelection( long start, long end )
@@ -356,7 +359,7 @@
inline void TextBoxBase::onTextChanged( const Dispatcher::F& f ) {
this->addCallback(
- Message( WM_COMMAND, MAKEWPARAM(this->getControlId(), EN_CHANGE) ), Dispatcher(f)
+ Message( WM_COMMAND, MAKEWPARAM(0, EN_CHANGE) ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/source/Message.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/Message.cpp 2008-03-30 08:28:27 UTC (rev 1090)
+++ dcplusplus/trunk/smartwin/source/Message.cpp 2008-03-30 08:28:59 UTC (rev 1091)
@@ -71,9 +71,9 @@
} break;
case WM_COMMAND: {
if(msg_.lParam == 0) {
- param = LOWORD( msg_.wParam );
+ param = LOWORD(msg_.wParam);
} else {
- param = msg_.wParam;
+ param = HIWORD(msg_.wParam);
}
} break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:30:19
|
Revision: 1092
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1092&view=rev
Author: arnetheduck
Date: 2008-03-30 01:30:17 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
script to generate cshelp files; added help for hubs, PMs, file lists
Modified Paths:
--------------
dcplusplus/trunk/.bzrignore
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/help/DCPlusPlus.hhp
dcplusplus/trunk/help/compile.cmd
dcplusplus/trunk/help/credits.html
dcplusplus/trunk/help/dialog_adls_properties.html
dcplusplus/trunk/help/dialog_favorite_hub.html
dcplusplus/trunk/help/dialog_user_command.html
dcplusplus/trunk/help/faq_activemode.html
dcplusplus/trunk/help/index.html
dcplusplus/trunk/help/resource.h
dcplusplus/trunk/help/settings_appearance.html
dcplusplus/trunk/help/settings_certs.html
dcplusplus/trunk/help/settings_colors_and_sounds.html
dcplusplus/trunk/help/settings_connection.html
dcplusplus/trunk/help/settings_downloads.html
dcplusplus/trunk/help/settings_expert.html
dcplusplus/trunk/help/settings_favoritedirs.html
dcplusplus/trunk/help/settings_general.html
dcplusplus/trunk/help/settings_logs.html
dcplusplus/trunk/help/settings_queue.html
dcplusplus/trunk/help/settings_sharing.html
dcplusplus/trunk/help/settings_user_commands.html
dcplusplus/trunk/help/toc.hhc
dcplusplus/trunk/help/window_adlsearch.html
dcplusplus/trunk/help/window_download_queue.html
dcplusplus/trunk/help/window_favorite_hubs.html
dcplusplus/trunk/help/window_hub.html
dcplusplus/trunk/help/window_pm.html
dcplusplus/trunk/help/window_public_hubs.html
dcplusplus/trunk/help/window_search.html
dcplusplus/trunk/help/window_search_spy.html
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/FavHubsFrame.cpp
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/HubListsDlg.cpp
dcplusplus/trunk/win32/PrivateFrame.cpp
dcplusplus/trunk/win32/resource.h
Added Paths:
-----------
dcplusplus/trunk/help/cshelp.h
dcplusplus/trunk/help/cshelp_stub.html
dcplusplus/trunk/help/dialog_public_hub_lists.html
dcplusplus/trunk/help/gen_cshelp.py
dcplusplus/trunk/help/window_file_list.html
Removed Paths:
-------------
dcplusplus/trunk/help/cshelp.h
dcplusplus/trunk/help/cshelp.txt
dcplusplus/trunk/help/window_directory_listing.html
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 16:09:01.500000000 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-29 16:36:53.517999887 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:file-ids
-
+ help/cshelp.h cshelp.h-20080329145802-nazh0krdetjcj1vf-1
help/cshelp_stub.html cshelp_stub.html-20080329135634-e80e0eh944gd3f7f-1
help/dialog_public_hub_lists.html dialog_public_hub_li-20080328011507-8vngpwi11xglnxcd-1
help/gen_cshelp.py gen_cshelp.py-20080329135626-eku69z9gc8gikpz6-1
help/window_file_list.html 1051@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:help%2Fwindow_directory_listing.html
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
Modified: dcplusplus/trunk/.bzrignore
===================================================================
--- dcplusplus/trunk/.bzrignore 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/.bzrignore 2008-03-30 08:30:17 UTC (rev 1092)
@@ -10,4 +10,5 @@
natupnp.h
./help/changelog.html
./help/compile.log
+./help/cshelp.txt
./.pydevproject
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/changelog.txt 2008-03-30 08:30:17 UTC (rev 1092)
@@ -1,6 +1,5 @@
-- 0.706 --
* [L#202563] Fixed some missing translations
-* Fixed help links (thanks poy)
* Use setenv on unix (thanks yakov suraev)
* Fixed out of focus window when restoring from icon (poy)
* [L#203865] Fixed multiple instances (poy)
Modified: dcplusplus/trunk/help/DCPlusPlus.hhp
===================================================================
--- dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-30 08:30:17 UTC (rev 1092)
@@ -40,7 +40,7 @@
credits.html
window_hub.html
window_pm.html
-window_directory_listing.html
+window_file_list.html
window_public_hubs.html
window_favorite_hubs.html
window_favorite_users.html
@@ -58,6 +58,7 @@
dialog_user_command.html
dialog_favorite_hub.html
dialog_adls_properties.html
+dialog_public_hub_lists.html
fdl.html
faq_keyboard_commands.html
faq_upnp.html
@@ -79,7 +80,7 @@
IDH_KEYBOARD=faq_keyboard_commands.html
IDH_HUB=window_hub.html
IDH_PM=window_pm.html
-IDH_DIRECTORY_LISTING=window_directory_listing.html
+IDH_FILE_LIST=window_file_list.html
IDH_PUBLIC_HUBS=window_public_hubs.html
IDH_FAVORITE_HUBS=window_favorite_hubs.html
IDH_FAVUSERS=window_favorite_users.html
@@ -97,6 +98,7 @@
IDH_USER_COMMAND=dialog_user_command.html
IDH_FAVORITE_HUB=dialog_favorite_hub.html
IDH_ADLSP=dialog_adls_properties.html
+IDH_PUBLIC_HUB_LISTS=dialog_public_hub_lists.html
IDH_ADVANCED3PAGE=settings_expert.html
IDH_ADVANCEDPAGE=settings_advanced.html
IDH_APPEARANCE2PAGE=settings_colors_and_sounds.html
Modified: dcplusplus/trunk/help/compile.cmd
===================================================================
--- dcplusplus/trunk/help/compile.cmd 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/help/compile.cmd 2008-03-30 08:30:17 UTC (rev 1092)
@@ -1,7 +1,11 @@
@echo off
+
REM generate changelog.html
gen_changelog.py
+REM generate cshelp.h and cshelp.txt
+gen_cshelp.py
+
copy ..\res\users.bmp .
mkdir ..\build\help
hhc.exe DCPlusPlus.hhp > compile.log
Modified: dcplusplus/trunk/help/credits.html
===================================================================
--- dcplusplus/trunk/help/credits.html 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/help/credits.html 2008-03-30 08:30:17 UTC (rev 1092)
@@ -9,6 +9,7 @@
<h1>Help File Credits and License</h1>
<br>
Copyright (c) 2004-2007 Todd Pederzani, Walter Doekes<br>
+Copyright (c) 2008 Jacek Sieka<br>
<br>
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation
Deleted: dcplusplus/trunk/help/cshelp.h
===================================================================
--- dcplusplus/trunk/help/cshelp.h 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/help/cshelp.h 2008-03-30 08:30:17 UTC (rev 1092)
@@ -1,145 +0,0 @@
-// this file contains help ids for field-level help tooltips
-
-#ifndef DCPLUSPLUS_HELP_CSHELP_H
-#define DCPLUSPLUS_HELP_CSHELP_H
-
-#define IDH_DCPP_OK 11000
-#define IDH_DCPP_CANCEL 11001
-#define IDH_DCPP_HELP 11002
-#define IDH_SETTINGS_TREE 11003
-#define IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION 11004
-#define IDH_SETTINGS_GENERAL_NICK 11005
-#define IDH_SETTINGS_GENERAL_EMAIL 11006
-#define IDH_SETTINGS_GENERAL_DESCRIPTION 11007
-#define IDH_SETTINGS_GENERAL_CONNECTION 11008
-#define IDH_SETTINGS_NETWORK_DIRECT 11009
-#define IDH_SETTINGS_NETWORK_FIREWALL_UPNP 11010
-#define IDH_SETTINGS_NETWORK_FIREWALL_NAT 11011
-#define IDH_SETTINGS_NETWORK_FIREWALL_PASSIVE 11012
-#define IDH_SETTINGS_NETWORK_PORT_TCP 11013
-#define IDH_SETTINGS_NETWORK_PORT_UDP 11014
-#define IDH_SETTINGS_NETWORK_PORT_TLS 11015
-#define IDH_SETTINGS_NETWORK_EXTERNAL_IP 11016
-#define IDH_SETTINGS_NETWORK_OVERRIDE 11017
-#define IDH_SETTINGS_NETWORK_DIRECT_OUT 11018
-#define IDH_SETTINGS_NETWORK_SOCKS5 11019
-#define IDH_SETTINGS_NETWORK_SOCKS_SERVER 11020
-#define IDH_SETTINGS_NETWORK_SOCKS_PORT 11021
-#define IDH_SETTINGS_NETWORK_SOCKS_USER 11022
-#define IDH_SETTINGS_NETWORK_SOCKS_PASSWORD 11023
-#define IDH_SETTINGS_NETWORK_SOCKS_RESOLVE 11024
-#define IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR 11025
-#define IDH_SETTINGS_DOWNLOAD_TEMP_DOWNLOAD_DIRECTORY 11026
-#define IDH_SETTINGS_DOWNLOAD_LIMITS 11027
-#define IDH_SETTINGS_DOWNLOAD_DOWNLOADS 11028
-#define IDH_SETTINGS_DOWNLOAD_MAXSPEED 11029
-#define IDH_SETTINGS_DOWNLOAD_PROXY 11030
-#define IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES 11031
-#define IDH_SETTINGS_FAVORITE_DIRS_RENAME 11032
-#define IDH_SETTINGS_FAVORITE_DIRS_REMOVE 11033
-#define IDH_SETTINGS_FAVORITE_DIRS_ADD 11034
-#define IDH_SETTINGS_QUEUE_AUTOPRIO 11035
-#define IDH_SETTINGS_QUEUE_PRIO_HIGHEST 11036
-#define IDH_SETTINGS_QUEUE_PRIO_NORMAL 11037
-#define IDH_SETTINGS_QUEUE_PRIO_HIGH 11038
-#define IDH_SETTINGS_QUEUE_PRIO_LOW 11039
-#define IDH_SETTINGS_QUEUE_AUTODROP 11040
-#define IDH_SETTINGS_QUEUE_AUTODROP_SPEED 11041
-#define IDH_SETTINGS_QUEUE_AUTODROP_ELAPSED 11042
-#define IDH_SETTINGS_QUEUE_AUTODROP_MINSOURCES 11043
-#define IDH_SETTINGS_QUEUE_AUTODROP_INTERVAL 11044
-#define IDH_SETTINGS_QUEUE_AUTODROP_INACTIVITY 11045
-#define IDH_SETTINGS_QUEUE_AUTODROP_FILESIZE 11046
-#define IDH_SETTINGS_UPLOAD_DIRECTORIES 11047
-#define IDH_SETTINGS_UPLOAD_SHAREHIDDEN 11048
-#define IDH_SETTINGS_UPLOAD_RENAME 11049
-#define IDH_SETTINGS_UPLOAD_REMOVE 11050
-#define IDH_SETTINGS_UPLOAD_ADD 11051
-#define IDH_SETTINGS_UPLOAD_MIN_UPLOAD_SPEED 11052
-#define IDH_SETTINGS_UPLOAD_SLOTS 11053
-#define IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE 11054
-#define IDH_SETTINGS_APPEARANCE_TIME_STAMPS_FORMAT 11055
-#define IDH_SETTINGS_APPEARANCE_LANGUAGE 11056
-#define IDH_SETTINGS_APPEARANCE_REQUIRES_RESTART 11057
-#define IDH_SETTINGS_APPEARANCE2_COLORS 11058
-#define IDH_SETTINGS_APPEARANCE2_SELWINCOLOR 11059
-#define IDH_SETTINGS_APPEARANCE2_SELTEXT 11060
-#define IDH_SETTINGS_APPEARANCE2_UPLOAD_BAR_COLOR 11061
-#define IDH_SETTINGS_APPEARANCE2_DOWNLOAD_BAR_COLOR 11062
-#define IDH_SETTINGS_APPEARANCE2_BEEPFILE 11063
-#define IDH_SETTINGS_LOG_DIRECTORY 11064
-#define IDH_SETTINGS_ADVANCED3_ROLLBACK 11065
-#define IDH_SETTINGS_ADVANCED3_MAX_HASH_SPEED 11066
-#define IDH_SETTINGS_ADVANCED3_PM_HISTORY 11067
-#define IDH_SETTINGS_ADVANCED3_MINISLOT_SIZE 11068
-#define IDH_SETTINGS_ADVANCED3_MAX_FILELIST_SIZE 11069
-#define IDH_SETTINGS_ADVANCED3_PRIVATE_ID 11070
-#define IDH_SETTINGS_ADVANCED3_AUTO_REFRESH_TIME 11071
-#define IDH_SETTINGS_ADVANCED3_BUFFERSIZE 11072
-#define IDH_SETTINGS_ADVANCED3_AUTO_SEARCH_LIMIT 11073
-#define IDH_SETTINGS_ADVANCED3_SEARCH_HISTORY 11074
-#define IDH_SETTINGS_ADVANCED3_BIND_ADDRESS 11075
-#define IDH_SETTINGS_ADVANCED3_SOCKET_IN_BUFFER 11076
-#define IDH_SETTINGS_ADVANCED3_SOCKET_OUT_BUFFER 11077
-#define IDH_SETTINGS_ADVANCED3_MIN_SEGMENT_SIZE 11078
-#define IDH_SETTINGS_UC_LIST 11079
-#define IDH_SETTINGS_UC_ADD 11080
-#define IDH_SETTINGS_UC_CHANGE 11081
-#define IDH_SETTINGS_UC_MOVE_UP 11082
-#define IDH_SETTINGS_UC_MOVE_DOWN 11083
-#define IDH_SETTINGS_UC_REMOVE 11084
-#define IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE 11085
-#define IDH_SETTINGS_CERTIFICATES_CERTIFICATE_FILE 11086
-#define IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH 11087
-#define IDH_USER_COMMAND_SEPARATOR 11088
-#define IDH_USER_COMMAND_RAW 11089
-#define IDH_USER_COMMAND_CHAT 11090
-#define IDH_USER_COMMAND_PM 11091
-#define IDH_USER_COMMAND_CONTEXT 11092
-#define IDH_USER_COMMAND_HUB_MENU 11093
-#define IDH_USER_COMMAND_USER_MENU 11094
-#define IDH_USER_COMMAND_SEARCH_MENU 11095
-#define IDH_USER_COMMAND_FILELIST_MENU 11096
-#define IDH_USER_COMMAND_NAME 11097
-#define IDH_USER_COMMAND_COMMAND 11098
-#define IDH_USER_COMMAND_HUB 11099
-#define IDH_USER_COMMAND_NICK 11100
-#define IDH_USER_COMMAND_ONCE 11101
-#define IDH_FAVORITE_HUBS_CONNECT 11102
-#define IDH_FAVORITE_HUBS_NEW 11103
-#define IDH_FAVORITE_HUBS_PROPERTIES 11104
-#define IDH_FAVORITE_HUBS_MOVE_UP 11105
-#define IDH_FAVORITE_HUBS_MOVE_DOWN 11106
-#define IDH_FAVORITE_HUBS_REMOVE 11107
-#define IDH_PUBLIC_HUBS_FILTER 11108
-#define IDH_PUBLIC_HUBS_LISTS 11109
-#define IDH_PUBLIC_HUBS_REFRESH 11110
-#define IDH_SEARCH_SEARCH_FOR 11111
-#define IDH_SEARCH_PURGE 11112
-#define IDH_SEARCH_SEARCH 11113
-#define IDH_SEARCH_SIZE 11114
-#define IDH_SEARCH_TYPE 11115
-#define IDH_SEARCH_SLOTS 11116
-#define IDH_SEARCH_HUBS 11117
-#define IDH_ADLS_NEW 11118
-#define IDH_ADLS_PROPERTIES 11119
-#define IDH_ADLS_MOVE_UP 11120
-#define IDH_ADLS_MOVE_DOWN 11121
-#define IDH_ADLS_REMOVE 11122
-#define IDH_ADLSP_SEARCH_STRING 11123
-#define IDH_ADLSP_SOURCE_TYPE 11124
-#define IDH_ADLSP_MIN_FILE_SIZE 11125
-#define IDH_ADLSP_MAX_FILE_SIZE 11126
-#define IDH_ADLSP_SIZE_TYPE 11127
-#define IDH_ADLSP_DEST_DIR 11128
-#define IDH_ADLSP_ENABLED 11129
-#define IDH_ADLSP_AUTOQUEUE 11130
-#define IDH_SPY_IGNORE_TTH 11131
-#define IDH_FAVORITE_HUB_NAME 11132
-#define IDH_FAVORITE_HUB_ADDRESS 11133
-#define IDH_FAVORITE_HUB_DESC 11134
-#define IDH_FAVORITE_HUB_NICK 11135
-#define IDH_FAVORITE_HUB_PASSWORD 11136
-#define IDH_FAVORITE_HUB_USER_DESC 11137
-
-#endif
Added: dcplusplus/trunk/help/cshelp.h
===================================================================
--- dcplusplus/trunk/help/cshelp.h (rev 0)
+++ dcplusplus/trunk/help/cshelp.h 2008-03-30 08:30:17 UTC (rev 1092)
@@ -0,0 +1,319 @@
+// this file contains help ids for field-level help tooltips
+
+#ifndef DCPLUSPLUS_HELP_CSHELP_H
+#define DCPLUSPLUS_HELP_CSHELP_H
+
+#define IDH_DCPP_OK 11000
+
+#define IDH_DCPP_CANCEL 11001
+
+#define IDH_DCPP_HELP 11002
+
+#define IDH_SETTINGS_TREE 11003
+
+#define IDH_ADLSP_SOURCE_TYPE 11004
+
+#define IDH_ADLSP_SEARCH_STRING 11005
+
+#define IDH_ADLSP_MIN_FILE_SIZE 11006
+
+#define IDH_ADLSP_MAX_FILE_SIZE 11007
+
+#define IDH_ADLSP_SIZE_TYPE 11008
+
+#define IDH_ADLSP_DEST_DIR 11009
+
+#define IDH_ADLSP_ENABLED 11010
+
+#define IDH_ADLSP_AUTOQUEUE 11011
+
+#define IDH_FAVORITE_HUB_NAME 11012
+
+#define IDH_FAVORITE_HUB_ADDRESS 11013
+
+#define IDH_FAVORITE_HUB_DESC 11014
+
+#define IDH_FAVORITE_HUB_NICK 11015
+
+#define IDH_FAVORITE_HUB_PASSWORD 11016
+
+#define IDH_FAVORITE_HUB_USER_DESC 11017
+
+#define IDH_PUBLIC_HUB_LISTS_EDIT_BOX 11018
+
+#define IDH_PUBLIC_HUB_LISTS_LIST 11019
+
+#define IDH_PUBLIC_HUB_LISTS_ADD 11020
+
+#define IDH_PUBLIC_HUB_LISTS_MOVE_UP 11021
+
+#define IDH_PUBLIC_HUB_LISTS_MOVE_DOWN 11022
+
+#define IDH_PUBLIC_HUB_LISTS_EDIT 11023
+
+#define IDH_PUBLIC_HUB_LISTS_REMOVE 11024
+
+#define IDH_USER_COMMAND_SEPARATOR 11025
+
+#define IDH_USER_COMMAND_RAW 11026
+
+#define IDH_USER_COMMAND_CHAT 11027
+
+#define IDH_USER_COMMAND_PM 11028
+
+#define IDH_USER_COMMAND_CONTEXT 11029
+
+#define IDH_USER_COMMAND_HUB_MENU 11030
+
+#define IDH_USER_COMMAND_USER_MENU 11031
+
+#define IDH_USER_COMMAND_SEARCH_MENU 11032
+
+#define IDH_USER_COMMAND_FILELIST_MENU 11033
+
+#define IDH_USER_COMMAND_NAME 11034
+
+#define IDH_USER_COMMAND_COMMAND 11035
+
+#define IDH_USER_COMMAND_HUB 11036
+
+#define IDH_USER_COMMAND_NICK 11037
+
+#define IDH_USER_COMMAND_ONCE 11038
+
+#define IDH_SETTINGS_APPEARANCE_REQUIRES_RESTART 11039
+
+#define IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE 11040
+
+#define IDH_SETTINGS_APPEARANCE_TIME_STAMPS_FORMAT 11041
+
+#define IDH_SETTINGS_APPEARANCE_LANGUAGE 11042
+
+#define IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE 11043
+
+#define IDH_SETTINGS_CERTIFICATES_CERTIFICATE_FILE 11044
+
+#define IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH 11045
+
+#define IDH_SETTINGS_APPEARANCE2_COLORS 11046
+
+#define IDH_SETTINGS_APPEARANCE2_SELWINCOLOR 11047
+
+#define IDH_SETTINGS_APPEARANCE2_SELTEXT 11048
+
+#define IDH_SETTINGS_APPEARANCE2_UPLOAD_BAR_COLOR 11049
+
+#define IDH_SETTINGS_APPEARANCE2_DOWNLOAD_BAR_COLOR 11050
+
+#define IDH_SETTINGS_APPEARANCE2_BEEPFILE 11051
+
+#define IDH_SETTINGS_NETWORK_DIRECT 11052
+
+#define IDH_SETTINGS_NETWORK_FIREWALL_UPNP 11053
+
+#define IDH_SETTINGS_NETWORK_FIREWALL_NAT 11054
+
+#define IDH_SETTINGS_NETWORK_FIREWALL_PASSIVE 11055
+
+#define IDH_SETTINGS_NETWORK_PORT_TCP 11056
+
+#define IDH_SETTINGS_NETWORK_PORT_UDP 11057
+
+#define IDH_SETTINGS_NETWORK_PORT_TLS 11058
+
+#define IDH_SETTINGS_NETWORK_EXTERNAL_IP 11059
+
+#define IDH_SETTINGS_NETWORK_OVERRIDE 11060
+
+#define IDH_SETTINGS_NETWORK_DIRECT_OUT 11061
+
+#define IDH_SETTINGS_NETWORK_SOCKS5 11062
+
+#define IDH_SETTINGS_NETWORK_SOCKS_SERVER 11063
+
+#define IDH_SETTINGS_NETWORK_SOCKS_PORT 11064
+
+#define IDH_SETTINGS_NETWORK_SOCKS_USER 11065
+
+#define IDH_SETTINGS_NETWORK_SOCKS_PASSWORD 11066
+
+#define IDH_SETTINGS_NETWORK_SOCKS_RESOLVE 11067
+
+#define IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR 11068
+
+#define IDH_SETTINGS_DOWNLOAD_TEMP_DOWNLOAD_DIRECTORY 11069
+
+#define IDH_SETTINGS_DOWNLOAD_LIMITS 11070
+
+#define IDH_SETTINGS_DOWNLOAD_DOWNLOADS 11071
+
+#define IDH_SETTINGS_DOWNLOAD_MAXSPEED 11072
+
+#define IDH_SETTINGS_DOWNLOAD_PROXY 11073
+
+#define IDH_SETTINGS_ADVANCED3_ROLLBACK 11074
+
+#define IDH_SETTINGS_ADVANCED3_MAX_HASH_SPEED 11075
+
+#define IDH_SETTINGS_ADVANCED3_PM_HISTORY 11076
+
+#define IDH_SETTINGS_ADVANCED3_MINISLOT_SIZE 11077
+
+#define IDH_SETTINGS_ADVANCED3_MAX_FILELIST_SIZE 11078
+
+#define IDH_SETTINGS_ADVANCED3_PRIVATE_ID 11079
+
+#define IDH_SETTINGS_ADVANCED3_AUTO_REFRESH_TIME 11080
+
+#define IDH_SETTINGS_ADVANCED3_BUFFERSIZE 11081
+
+#define IDH_SETTINGS_ADVANCED3_AUTO_SEARCH_LIMIT 11082
+
+#define IDH_SETTINGS_ADVANCED3_SEARCH_HISTORY 11083
+
+#define IDH_SETTINGS_ADVANCED3_BIND_ADDRESS 11084
+
+#define IDH_SETTINGS_ADVANCED3_SOCKET_IN_BUFFER 11085
+
+#define IDH_SETTINGS_ADVANCED3_SOCKET_OUT_BUFFER 11086
+
+#define IDH_SETTINGS_ADVANCED3_MIN_SEGMENT_SIZE 11087
+
+#define IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES 11088
+
+#define IDH_SETTINGS_FAVORITE_DIRS_RENAME 11089
+
+#define IDH_SETTINGS_FAVORITE_DIRS_REMOVE 11090
+
+#define IDH_SETTINGS_FAVORITE_DIRS_ADD 11091
+
+#define IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION 11092
+
+#define IDH_SETTINGS_GENERAL_NICK 11093
+
+#define IDH_SETTINGS_GENERAL_EMAIL 11094
+
+#define IDH_SETTINGS_GENERAL_DESCRIPTION 11095
+
+#define IDH_SETTINGS_GENERAL_CONNECTION 11096
+
+#define IDH_SETTINGS_LOG_DIRECTORY 11097
+
+#define IDH_SETTINGS_QUEUE_AUTOPRIO 11098
+
+#define IDH_SETTINGS_QUEUE_PRIO_HIGHEST 11099
+
+#define IDH_SETTINGS_QUEUE_PRIO_NORMAL 11100
+
+#define IDH_SETTINGS_QUEUE_PRIO_HIGH 11101
+
+#define IDH_SETTINGS_QUEUE_PRIO_LOW 11102
+
+#define IDH_SETTINGS_QUEUE_AUTODROP 11103
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_SPEED 11104
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_ELAPSED 11105
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_MINSOURCES 11106
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_INTERVAL 11107
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_INACTIVITY 11108
+
+#define IDH_SETTINGS_QUEUE_AUTODROP_FILESIZE 11109
+
+#define IDH_SETTINGS_UPLOAD_DIRECTORIES 11110
+
+#define IDH_SETTINGS_UPLOAD_SHAREHIDDEN 11111
+
+#define IDH_SETTINGS_UPLOAD_RENAME 11112
+
+#define IDH_SETTINGS_UPLOAD_REMOVE 11113
+
+#define IDH_SETTINGS_UPLOAD_ADD 11114
+
+#define IDH_SETTINGS_UPLOAD_MIN_UPLOAD_SPEED 11115
+
+#define IDH_SETTINGS_UPLOAD_SLOTS 11116
+
+#define IDH_SETTINGS_UC_LIST 11117
+
+#define IDH_SETTINGS_UC_ADD 11118
+
+#define IDH_SETTINGS_UC_CHANGE 11119
+
+#define IDH_SETTINGS_UC_MOVE_UP 11120
+
+#define IDH_SETTINGS_UC_MOVE_DOWN 11121
+
+#define IDH_SETTINGS_UC_REMOVE 11122
+
+#define IDH_ADLS_NEW 11123
+
+#define IDH_ADLS_PROPERTIES 11124
+
+#define IDH_ADLS_MOVE_UP 11125
+
+#define IDH_ADLS_MOVE_DOWN 11126
+
+#define IDH_ADLS_REMOVE 11127
+
+#define IDH_FAVORITE_HUBS_CONNECT 11128
+
+#define IDH_FAVORITE_HUBS_NEW 11129
+
+#define IDH_FAVORITE_HUBS_PROPERTIES 11130
+
+#define IDH_FAVORITE_HUBS_MOVE_UP 11131
+
+#define IDH_FAVORITE_HUBS_MOVE_DOWN 11132
+
+#define IDH_FAVORITE_HUBS_REMOVE 11133
+
+#define IDH_FILE_LIST_DIRS 11134
+
+#define IDH_FILE_LIST_FILES 11135
+
+#define IDH_FILE_LIST_SUBSTRACT 11136
+
+#define IDH_FILE_LIST_MATCH_QUEUE 11137
+
+#define IDH_FILE_LIST_FIND 11138
+
+#define IDH_FILE_LIST_NEXT 11139
+
+#define IDH_HUB_CHAT 11140
+
+#define IDH_HUB_MESSAGE 11141
+
+#define IDH_HUB_FILTER 11142
+
+#define IDH_PM_CHAT 11143
+
+#define IDH_PM_MESSAGE 11144
+
+#define IDH_PUBLIC_HUBS_FILTER 11145
+
+#define IDH_PUBLIC_HUBS_LISTS 11146
+
+#define IDH_PUBLIC_HUBS_REFRESH 11147
+
+#define IDH_SEARCH_SEARCH_FOR 11148
+
+#define IDH_SEARCH_PURGE 11149
+
+#define IDH_SEARCH_SEARCH 11150
+
+#define IDH_SEARCH_SIZE 11151
+
+#define IDH_SEARCH_TYPE 11152
+
+#define IDH_SEARCH_SLOTS 11153
+
+#define IDH_SEARCH_HUBS 11154
+
+#define IDH_SPY_IGNORE_TTH 11155
+
+
+#endif
Deleted: dcplusplus/trunk/help/cshelp.txt
===================================================================
--- dcplusplus/trunk/help/cshelp.txt 2008-03-30 08:28:59 UTC (rev 1091)
+++ dcplusplus/trunk/help/cshelp.txt 2008-03-30 08:30:17 UTC (rev 1092)
@@ -1,276 +0,0 @@
-.topic IDH_DCPP_OK
-Press this button to save your changes and close this dialog.
-.topic IDH_DCPP_CANCEL
-Press this button to close this dialog without saving your changes.
-.topic IDH_DCPP_HELP
-Press this button to launch the help file.
-.topic IDH_SETTINGS_TREE
-Choose a settings category here.
-.topic IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION
-This is general information about yourself. The nick is required, though it's suggested that you pick the correct connection type as well.
-.topic IDH_SETTINGS_GENERAL_NICK
-This nickname, or handle, will identify you when you join a hub. It can be overridden on a per-hub basis in the Favorite Hub Properties.
-.topic IDH_SETTINGS_GENERAL_EMAIL
-This field is for sharing your email address, if you wish it.
-.topic IDH_SETTINGS_GENERAL_DESCRIPTION
-This description will show in the user list. It can be overridden on a per-hub basis in the Favorite Hub Properties.
-.topic IDH_SETTINGS_GENERAL_CONNECTION
-This drop-down contains a number of common upload speeds (in MiB/s), please choose the one closest to your own. Do not put in your download speed; this setting is a measure of how fast a source you are likely to be for other users.
-.topic IDH_SETTINGS_NETWORK_DIRECT
-Select this mode if your computer is hooked directly to the internet. Do not select this mode if you have a router (firewall) or a software firewall.
-.topic IDH_SETTINGS_NETWORK_FIREWALL_UPNP
-Select this mode if you are behind a firewall that supports the UPnP standard for program auto-configuration. DC++ will automatically open the ports it needs and obtain your external IP address. This mode is not available on operating systems before Windows XP, as it was the first version to have UPnP support.
-.topic IDH_SETTINGS_NETWORK_FIREWALL_NAT
-Select this mode if you are behind a firewall (router), and will set up the TCP and UDP port forwarding on your own. You will need to specify the external IP address of your router using the setting below if you want downloads to work properly.
-.topic IDH_SETTINGS_NETWORK_FIREWALL_PASSIVE
-Select this mode if none of the previous options apply. In this mode, DC++ will not try to make inbound connections, only outbound ones. This mode carries some limitations: - only 5 results per user will be returned in response to searches; - you will not be able to download from other passive users.
-.topic IDH_SETTINGS_NETWORK_PORT_TCP
-This is the port that DC++ listens on for incoming client connections. If this setting is blank, DC++ will use a random port between 1025 and 32000.
-.topic IDH_SETTINGS_NETWORK_PORT_UDP
-This is the port that DC++ listens on for incoming search results. If this setting is blank, DC++ will use a random port between 1025 and 32000.
-.topic IDH_SETTINGS_NETWORK_PORT_TLS
-This is the port that DC++ listens on for TLS connections. If this setting is blank, DC++ will use a random port between 1025 and 32000.
-.topic IDH_SETTINGS_NETWORK_EXTERNAL_IP
-If you're directly connected to the internet, DC++ will tell remote users to connect to your local IP. Fill in this box only if you need to override the auto-detection. Ordinarily, only users behind a home router (NAT device) will need to fill in this box. If you put a DNS name here, DC++ will try to resolve it into an IP address before use.
-.topic IDH_SETTINGS_NETWORK_OVERRIDE
-Enable this to always use the IP address in "External / WAN IP", and not let either UPnP or connected hubs change it.
-.topic IDH_SETTINGS_NETWORK_DIRECT_OUT
-Select this mode if you can make unrestricted outbound connections. This includes connecting to any IP address on any port.
-.topic IDH_SETTINGS_NETWORK_SOCKS5
-Select this mode if you want to make outbound connections through a SOCKS proxy. The caveats for Firewall (passive) mode also apply here. SOCKS5 proxies are not the same as HTTP proxies. DC++'s SOCKS5 support does not include GSSAPI.
-.topic IDH_SETTINGS_NETWORK_SOCKS_SERVER
-This is the IP, not host name, of your SOCKS5 server.
-.topic IDH_SETTINGS_NETWORK_SOCKS_PORT
-The port that your SOCKS5 server runs on. The default is 1080.
-.topic IDH_SETTINGS_NETWORK_SOCKS_USER
-Login name for the SOCKS5 proxy; may be required.
-.topic IDH_SETTINGS_NETWORK_SOCKS_PASSWORD
-Password for the SOCKS5 proxy; may be required.
-.topic IDH_SETTINGS_NETWORK_SOCKS_RESOLVE
-Enable this to use the SOCKS5 proxy, instead of the local name server, to resolve host names into IP addresses.
-.topic IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR
-After a download is complete, DC++ tries to move your just finished file to this directory. It defaults to the "Downloads\" subdirectory under where the DC++ executable is located.
-.topic IDH_SETTINGS_DOWNLOAD_TEMP_DOWNLOAD_DIRECTORY
-All incomplete downloads will be stored in this directory. If empty, temporary downloads will be stored in the "Incomplete\" subdirectory under where the DC++ executable is located. You can use %[targetdrive] for optional unfinished directory for target ...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-30 08:31:54
|
Revision: 1093
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1093&view=rev
Author: arnetheduck
Date: 2008-03-30 01:31:52 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Fixed line history when "Use Ctrl ..." is disabled
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/win32/HubFrame.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 16:36:53.517999887 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-29 17:27:03.002000093 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:file-ids
- help/cshelp.h cshelp.h-20080329145802-nazh0krdetjcj1vf-1
help/cshelp_stub.html cshelp_stub.html-20080329135634-e80e0eh944gd3f7f-1
help/dialog_public_hub_lists.html dialog_public_hub_li-20080328011507-8vngpwi11xglnxcd-1
help/gen_cshelp.py gen_cshelp.py-20080329135626-eku69z9gc8gikpz6-1
help/window_file_list.html 1051@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:help%2Fwindow_directory_listing.html
+
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:30:17 UTC (rev 1092)
+++ dcplusplus/trunk/changelog.txt 2008-03-30 08:31:52 UTC (rev 1093)
@@ -12,6 +12,7 @@
* Both up&downloads are disconnected if evil users quit (thanks poy)
* Add average share to status bar (thanks mikejj)
* Minor improvements to load / save dialogs
+* [L#208684] Fixed line history when "Use Ctrl ..." is disabled (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-03-30 08:30:17 UTC (rev 1092)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-03-30 08:31:52 UTC (rev 1093)
@@ -665,7 +665,7 @@
}
bool HubFrame::historyActive() {
- return isAltPressed() || (isControlPressed() && BOOLSETTING(USE_CTRL_FOR_LINE_HISTORY));
+ return isAltPressed() || !BOOLSETTING(USE_CTRL_FOR_LINE_HISTORY) || isControlPressed();
}
bool HubFrame::handleUsersKeyDown(int c) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:32:24
|
Revision: 1094
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1094&view=rev
Author: arnetheduck
Date: 2008-03-30 01:32:18 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
don't use COLOR_MENUBAR which is for > XP, and normalize other menu colors
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-29 17:27:03.002000093 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-30 00:47:06.986000061 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:31:52 UTC (rev 1093)
+++ dcplusplus/trunk/changelog.txt 2008-03-30 08:32:18 UTC (rev 1094)
@@ -13,6 +13,7 @@
* Add average share to status bar (thanks mikejj)
* Minor improvements to load / save dialogs
* [L#208684] Fixed line history when "Use Ctrl ..." is disabled (poy)
+* [L#208917] Fixed menu background colors (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-30 08:31:52 UTC (rev 1093)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-30 08:32:18 UTC (rev 1094)
@@ -85,9 +85,6 @@
/// Strip bar color
COLORREF colorStrip;
- /// Menu bar color
- COLORREF colorMenuBar;
-
/// Highlighted menu item color
COLORREF colorHighlight;
@@ -104,13 +101,11 @@
*/
MenuColorInfo( COLORREF menuColor = ColorUtilities::darkenColor( ::GetSysColor( COLOR_WINDOW ), 0.02 ),
COLORREF stripColor = ColorUtilities::darkenColor( ::GetSysColor( COLOR_3DFACE ), 0.02 ),
- COLORREF menuBarColor = ::GetSysColor( COLOR_MENUBAR ),
COLORREF highlightColor = ::GetSysColor( COLOR_HIGHLIGHT ),
COLORREF titleTextColor = ::GetSysColor( COLOR_MENUTEXT ),
COLORREF imageBackground = RGB( 0, 0, 0 ) ) // black
: colorMenu( menuColor ),
colorStrip( stripColor ),
- colorMenuBar( menuBarColor ),
colorHighlight( highlightColor ),
colorTitleText( titleTextColor ),
colorImageBackground( imageBackground )
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-30 08:31:52 UTC (rev 1093)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-30 08:32:18 UTC (rev 1094)
@@ -387,19 +387,9 @@
ItemDataWrapper * wrapper = reinterpret_cast< ItemDataWrapper * >( drawInfo->itemData );
xAssert( wrapper != 0, _T( "Unsupported menu item in drawItem()" ) );
- // setup colors
- MenuColorInfo colorInfo = wrapper->menu->itsColorInfo;
- COLORREF colorMenuBar = colorInfo.colorMenuBar;
- COLORREF colorMenuDraw = colorInfo.colorMenu; // color for drawing menu
- COLORREF colorFillHighlighted = ColorUtilities::lightenColor( colorInfo.colorHighlight, 0.7 );
-
// if processing menu bar
const bool isMenuBar = ::GetMenu( wrapper->menu->getParent()->handle() ) == wrapper->menu->handle();
- // change menu draw color for menubars
- if ( isMenuBar )
- colorMenuDraw = colorMenuBar;
-
// init struct for menu item info
MENUITEMINFO info;
memset( & info, 0, sizeof( MENUITEMINFO ) );
@@ -493,6 +483,8 @@
itemRectangle.size.x -= sidebarWidth;
}
+ const MenuColorInfo& colorInfo = wrapper->menu->itsColorInfo;
+
// draw sidebar with menu title
if ( ( drawInfo->itemAction & ODA_DRAWENTIRE ) && ( wrapper->menu->drawSidebar ) && !wrapper->menu->itsTitle.empty() )
{
@@ -512,7 +504,7 @@
Rectangle textRectangle( 0, 0, sidebarWidth, rect.bottom - rect.top );
// draw background
- Brush brush ( colorInfo.colorMenuBar );
+ Brush brush ( colorInfo.colorStrip );
canvas.fillRectangle( textRectangle, brush );
// draw title
@@ -531,20 +523,10 @@
::DeleteObject( titleFont );
// set item background
- if ( wrapper->isMenuTitleItem ) // for title
{
- Brush brush ( colorMenuBar );
- canvas.fillRectangle( itemRectangle, brush );
-
- // draw raised border
- RECT rc( itemRectangle );
- ::DrawEdge( canvas.handle(), & rc, EDGE_RAISED, BF_RECT );
+ Brush brush((wrapper->isMenuTitleItem || isMenuBar) ? colorInfo.colorStrip : colorInfo.colorMenu);
+ canvas.fillRectangle(itemRectangle, brush);
}
- else // for normal items
- {
- Brush brush ( colorMenuDraw );
- canvas.fillRectangle( itemRectangle, brush );
- }
if ( isMenuBar && isSelected ) // draw selected menu bar item
{
@@ -554,8 +536,6 @@
// and brush for filling item
COLORREF colorBorder = 0;
Canvas::Selector select_pen(canvas, *PenPtr(new Pen(colorBorder)));
- Canvas::Selector select_brush(canvas, *BrushPtr(new Brush(ColorUtilities::lightenColor( colorMenuBar, 0.5 ))));
-
canvas.rectangle( itemRectangle );
} // end if
else if ( ( isSelected || isHighlighted ) && !isDisabled ) // draw selected or highlighted menu item (if not inactive)
@@ -563,7 +543,7 @@
// select pen for drawing broder
// and brush for filling item
Canvas::Selector select_pen(canvas, *PenPtr(new Pen(colorInfo.colorHighlight)));
- Canvas::Selector select_brush(canvas, *BrushPtr(new Brush(colorFillHighlighted)));
+ Canvas::Selector select_brush(canvas, *BrushPtr(new Brush(ColorUtilities::lightenColor( colorInfo.colorHighlight, 0.7 ))));
canvas.rectangle( itemRectangle );
} // end if
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-30 08:33:33
|
Revision: 1095
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1095&view=rev
Author: arnetheduck
Date: 2008-03-30 01:33:27 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
make frame a control, fix toolbar
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ProgressBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Slider.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Spinner.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Tree.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
dcplusplus/trunk/win32/AboutDlg.cpp
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/resource.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-30 00:47:06.986000061 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-30 10:12:32.273999929 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:ancestry:v3-trunk1
- arn...@gm...-20080329054606-ubefm4h98xjgvif9
+ arn...@gm...-20080329054606-ubefm4h98xjgvif9
arn...@gm...-20080329220538-g3f1nvcfh1ycetw7
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/changelog.txt 2008-03-30 08:33:27 UTC (rev 1095)
@@ -14,6 +14,7 @@
* Minor improvements to load / save dialogs
* [L#208684] Fixed line history when "Use Ctrl ..." is disabled (poy)
* [L#208917] Fixed menu background colors (poy)
+* [L#208344] Fix about dialog up/down stats
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -18,7 +18,7 @@
/** Common stuff for all buttons */
class Button :
- public Control,
+ public CommonControl,
public AspectClickable<Button>,
public AspectColor<Button>,
public AspectColorCtlImpl<Button>,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -57,12 +57,12 @@
* value at a time from a list of values.
*/
class ComboBox :
+ public CommonControl,
// Aspects
public AspectClickable< ComboBox >,
public AspectCollection<ComboBox, int>,
public AspectColor< ComboBox >,
public AspectColorCtlImpl<ComboBox>,
- public Control,
public AspectDblClickable< ComboBox >,
public AspectFocus< ComboBox >,
public AspectFont< ComboBox >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -16,43 +16,36 @@
namespace SmartWin {
-/** Base class is for windows common controls */
-class Control :
- public MessageMap< Policies::Subclassed >,
+/** Base class for all windows */
+template<typename Policy>
+class Control:
+ public MessageMap<Policy>,
- public AspectBorder<Control>,
- public AspectContextMenu<Control>,
- public AspectEnabled<Control>,
- public AspectHelp<Control>,
- public AspectKeyboard<Control>,
- public AspectMouse<Control>,
- public AspectRaw<Control>,
- public AspectSizable<Control>,
- public AspectVisible<Control>
+ public AspectBorder<Control<Policy> >,
+ public AspectContextMenu<Control<Policy> >,
+ public AspectEnabled<Control<Policy> >,
+ public AspectHelp<Control<Policy> >,
+ public AspectKeyboard<Control<Policy> >,
+ public AspectMouse<Control<Policy> >,
+ public AspectRaw<Control<Policy> >,
+ public AspectSizable<Control<Policy> >,
+ public AspectVisible<Control<Policy> >
{
public:
- unsigned int getControlId();
- virtual HWND create(const Seed& cs);
protected:
- typedef Control ControlType;
+ typedef Control<Policy> ControlType;
Control(Widget* parent);
};
-inline Control::Control(Widget* parent) : PolicyType(parent) {
- xAssert( parent, _T( "Common Controls must have a parent" ) );
+template<typename Policy>
+Control<Policy>::Control(Widget* parent) : MessageMap<Policy>(parent) {
+
}
-inline HWND Control::create(const Seed& cs) {
- xAssert((cs.style & WS_CHILD) == WS_CHILD, _T("Common controls must have WS_CHILD style"));
- return PolicyType::create(cs);
-}
+typedef Control<Policies::Subclassed> CommonControl;
-inline unsigned int Control::getControlId() {
- return static_cast<unsigned int>(::GetWindowLongPtr(handle(), GWLP_ID));
}
-}
-
#endif /*CONTROL_H_*/
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -54,7 +54,7 @@
* declare a point in time within 1800 - 2100
*/
class DateTime :
- public Control,
+ public CommonControl,
// Aspects
public AspectClickable< DateTime >,
public AspectFocus< DateTime >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -30,26 +30,16 @@
#include "../Application.h"
#include "../Rectangle.h"
-#include "../Policies.h"
#include "../aspects/AspectActivate.h"
-#include "../aspects/AspectBorder.h"
#include "../aspects/AspectCommand.h"
-#include "../aspects/AspectContextMenu.h"
#include "../aspects/AspectDragDrop.h"
-#include "../aspects/AspectEnabled.h"
#include "../aspects/AspectEraseBackground.h"
#include "../aspects/AspectFocus.h"
#include "../aspects/AspectFont.h"
-#include "../aspects/AspectHelp.h"
-#include "../aspects/AspectKeyboard.h"
#include "../aspects/AspectMinMax.h"
-#include "../aspects/AspectMouse.h"
#include "../aspects/AspectPainting.h"
-#include "../aspects/AspectRaw.h"
-#include "../aspects/AspectSizable.h"
#include "../aspects/AspectText.h"
-#include "../aspects/AspectVisible.h"
-#include "../xCeption.h"
+#include "Control.h"
namespace SmartWin
{
@@ -83,27 +73,18 @@
*/
template< class Policy >
class Frame :
- public MessageMap< Policy >,
+ public Control< Policy >,
// Aspects
public AspectActivate< Frame< Policy > >,
- public AspectBorder< Frame< Policy > >,
public AspectCommand< Frame< Policy > >,
- public AspectContextMenu< Frame< Policy > >,
public AspectDragDrop< Frame< Policy > >,
- public AspectEnabled< Frame< Policy > >,
public AspectEraseBackground< Frame< Policy > >,
public AspectFocus< Frame< Policy > >,
public AspectFont< Frame< Policy > >,
- public AspectHelp< Frame< Policy > >,
- public AspectKeyboard< Frame< Policy > >,
public AspectMinMax<Frame<Policy> >,
- public AspectMouse< Frame< Policy > >,
public AspectPainting< Frame< Policy > >,
- public AspectRaw< Frame< Policy > >,
- public AspectSizable< Frame< Policy > >,
- public AspectText< Frame< Policy > >,
- public AspectVisible< Frame< Policy > >
+ public AspectText< Frame< Policy > >
{
struct CloseDispatcher
{
@@ -359,7 +340,7 @@
template< class Policy >
Frame< Policy >::Frame( Widget * parent )
- : Frame<Policy>::PolicyType( parent )
+ : Control<Policy>( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -60,7 +60,7 @@
* It can load a bitmap.
*/
class Label :
- public Control,
+ public CommonControl,
// Aspects
public AspectClickable< Label >,
public AspectColor< Label >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ProgressBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ProgressBar.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ProgressBar.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -51,7 +51,7 @@
* jobs, often used when downloading from internet or installing applications etc.
*/
class ProgressBar :
- public Control,
+ public CommonControl,
// Aspects
public AspectPainting< ProgressBar >
{
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Slider.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Slider.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Slider.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -56,7 +56,7 @@
* the Spinner control, but have another visual appearance.
*/
class Slider :
- public Control,
+ public CommonControl,
// Aspects
public AspectFocus< Slider >,
public AspectPainting< Slider >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Spinner.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Spinner.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Spinner.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -54,7 +54,7 @@
* other for softer.
*/
class Spinner :
- public Control,
+ public CommonControl,
// Aspects
public AspectFocus< Spinner >,
public AspectPainting< Spinner >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -104,7 +104,7 @@
template< class TypeOfStatusBar = NoSection >
class StatusBar :
public TypeOfStatusBar,
- public Control,
+ public CommonControl,
// Aspects
public AspectClickable< StatusBar< TypeOfStatusBar > >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -63,7 +63,7 @@
* has.
*/
class TabSheet :
- public Control,
+ public CommonControl,
// Aspects
public AspectCollection<TabSheet, int>,
public AspectFocus< TabSheet >,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -68,7 +68,7 @@
* to "map" an LPARAM value to a physical rownumber and vice versa.
*/
class Table :
- public Control,
+ public CommonControl,
// Aspect classes
public AspectClickable< Table >,
public AspectCollection<Table, int>,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -64,7 +64,7 @@
* < ul > < li >RichTextBox< /li > < /ul >
*/
class TextBoxBase :
- public Control,
+ public CommonControl,
// Aspect classes
public AspectColor< TextBoxBase >,
public AspectColorCtlImpl<TextBoxBase>,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -38,6 +38,8 @@
#include "../resources/ImageList.h"
#include "Control.h"
+#include <vector>
+
namespace SmartWin
{
// begin namespace SmartWin
@@ -57,7 +59,7 @@
* to view the log of URL's you have been to etc...
*/
class ToolBar :
- public Control,
+public CommonControl,
// Aspects
public AspectFocus< ToolBar >,
public AspectFont< ToolBar >
@@ -109,7 +111,7 @@
*/
void appendSeparator();
- void appendItem(unsigned int id, int image, const SmartUtil::tstring& toolTip, const Dispatcher::F& f = Dispatcher::F());
+ void appendItem(int image, const SmartUtil::tstring& toolTip, const Dispatcher::F& f = Dispatcher::F());
/// Set the image list with the normal button images.
/** normalImageList is the image list that contains the images
@@ -180,7 +182,7 @@
ImageListPtr itsHotImageList;
ImageListPtr itsDisabledImageList;
- //void addBitmap( HBITMAP hBit, unsigned int noButtonsInBitmap );
+ std::vector<Dispatcher::F> commands;
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Tree.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Tree.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Tree.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -61,7 +61,7 @@
*/
class Tree :
- public Control,
+ public CommonControl,
// Aspects
public AspectClickable< Tree >,
public AspectCollection<Tree, HTREEITEM>,
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -58,8 +58,6 @@
TabSheet::ObjectType getTab();
- virtual bool tryFire(const MSG& msg, LRESULT& retVal);
-
const Rectangle& getClientSize() const { return clientSize; }
void create( const Seed & cs = Seed() );
Modified: dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp 2008-03-30 08:33:27 UTC (rev 1095)
@@ -28,8 +28,22 @@
}
}
-void ToolBar::appendItem( unsigned int id, int image, const SmartUtil::tstring& toolTip, const Dispatcher::F& f)
+void ToolBar::appendItem( int image, const SmartUtil::tstring& toolTip, const Dispatcher::F& f)
{
+ int id = -1;
+
+ if(f) {
+ for(id = 0; id < (int)commands.size(); ++id) {
+ if(!commands[id])
+ break;
+ }
+ if(id == (int)commands.size()) {
+ commands.push_back(f);
+ } else {
+ commands[id] = f;
+ }
+ }
+
// Adding button
TBBUTTON tb = { 0 };
tb.iBitmap = image;
@@ -42,24 +56,17 @@
xCeption x( _T( "Error while trying to add a button to toolbar..." ) );
throw x;
}
-
- if(f)
- addCallback(Message(WM_COMMAND, id), Dispatcher(f));
}
-bool ToolBar::tryFire( const MSG & msg, LRESULT & retVal )
-{
- bool handled = PolicyType::tryFire(msg, retVal);
-
- if(!handled && msg.message == WM_COMMAND) {
- Widget* parent = getParent();
- if(parent != NULL) {
- // Maybe parent knows what to do with the WM_COMMAND (in case of shared menu/toolbar id's)
- handled = parent->tryFire(msg, retVal);
+bool ToolBar::tryFire( const MSG & msg, LRESULT & retVal ) {
+ if(msg.message == WM_COMMAND && msg.lParam == reinterpret_cast<LPARAM>(handle())) {
+ size_t id = LOWORD(msg.wParam);
+ if(id < commands.size() && commands[id]) {
+ commands[id]();
+ return true;
}
}
-
- return handled;
+ return PolicyType::tryFire(msg, retVal);
}
}
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-03-30 08:33:27 UTC (rev 1095)
@@ -397,15 +397,4 @@
return false;
}
-bool WidgetTabView::tryFire(const MSG& msg, LRESULT& retVal) {
- bool handled = PolicyType::tryFire(msg, retVal);
- if(!handled && msg.message == WM_COMMAND && getTab()) {
- TabInfo* ti = getTabInfo(getTab()->getSelected());
- if(ti) {
- handled = ti->w->tryFire(msg, retVal);
- }
- }
- return handled;
}
-
-}
Modified: dcplusplus/trunk/win32/AboutDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-30 08:33:27 UTC (rev 1095)
@@ -58,7 +58,7 @@
setItemText(IDC_VERSION, Text::toT(APPNAME " " VERSIONSTRING) + T_("\n(c) Copyright 2001-2008 Jacek Sieka\nEx-codeveloper: Per Lind\303\251n\nGraphics: Martin Skogevall et al.\nDC++ is licenced under GPL\nhttp://dcplusplus.sourceforge.net/"));
attachTextBox(IDC_TTH)->setText(WinUtil::tth);
attachTextBox(IDC_THANKS)->setText(Text::toT(thanks));
- setItemText(IDC_TOTALS, str(TF_("Upload: %1%, Download: %2%") % Text::toT(Util::formatBytes(SETTING(TOTAL_UPLOAD))) % Text::toT(Util::formatBytes(SETTING(TOTAL_DOWNLOAD)))));
+ setItemText(IDC_UPDOWN, str(TF_("Upload: %1%, Download: %2%") % Text::toT(Util::formatBytes(SETTING(TOTAL_UPLOAD))) % Text::toT(Util::formatBytes(SETTING(TOTAL_DOWNLOAD)))));
setItemText(IDC_GREETZ, T_("Greetz and Contributors"));
setItemText(IDC_TOTALS, T_("Totals"));
setItemText(IDC_LATEST_VERSION, T_("Latest stable version"));
Modified: dcplusplus/trunk/win32/DCPlusPlus.rc
===================================================================
--- dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-30 08:33:27 UTC (rev 1095)
@@ -99,7 +99,7 @@
GROUPBOX "Latest stable version",IDC_LATEST_VERSION,7,239,229,24,BS_CENTER
CTEXT "0.xxx",IDC_LATEST,13,250,218,8
GROUPBOX "Totals",IDC_TOTALS,7,197,229,39,BS_CENTER
- CTEXT "Upload: xx.xx MiB, Download: xx.xx MiB",IDC_TOTALS,13,208,218,8
+ CTEXT "Upload: xx.xx MiB, Download: xx.xx MiB",IDC_UPDOWN,13,208,218,8
CTEXT "Ratio (Up/Down): x.xx",IDC_RATIO,13,221,218,8
EDITTEXT IDC_THANKS,13,122,218,66,ES_MULTILINE | ES_READONLY | WS_VSCROLL
CTEXT "Static",IDC_VERSION,13,37,218,54
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-03-30 08:33:27 UTC (rev 1095)
@@ -279,29 +279,29 @@
}
int image = 0;
- toolbar->appendItem(IDC_PUBLIC_HUBS, image++, T_("Public Hubs"));
+ toolbar->appendItem(image++, T_("Public Hubs"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_PUBLIC_HUBS));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_RECONNECT, image++, T_("Reconnect"));
- toolbar->appendItem(IDC_FOLLOW, image++, T_("Follow last redirect"));
+ toolbar->appendItem(image++, T_("Reconnect"), std::tr1::bind(&MainWindow::handleForward, this, IDC_PUBLIC_HUBS));
+ toolbar->appendItem(image++, T_("Follow last redirect"), std::tr1::bind(&MainWindow::handleForward, this, IDC_FOLLOW));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_FAVORITE_HUBS, image++, T_("Favorite Hubs"));
- toolbar->appendItem(IDC_FAVUSERS, image++, T_("Favorite Users"));
+ toolbar->appendItem(image++, T_("Favorite Hubs"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_FAVORITE_HUBS));
+ toolbar->appendItem(image++, T_("Favorite Users"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_FAVUSERS));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_QUEUE, image++, T_("Download Queue"));
- toolbar->appendItem(IDC_FINISHED_DL, image++, T_("Finished Downloads"));
- toolbar->appendItem(IDC_WAITING_USERS, image++, T_("Waiting Users"));
- toolbar->appendItem(IDC_FINISHED_UL, image++, T_("Finished Uploads"));
+ toolbar->appendItem(image++, T_("Download Queue"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_QUEUE));
+ toolbar->appendItem(image++, T_("Finished Downloads"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_FINISHED_DL));
+ toolbar->appendItem(image++, T_("Waiting Users"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_WAITING_USERS));
+ toolbar->appendItem(image++, T_("Finished Uploads"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_FINISHED_UL));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_SEARCH, image++, T_("Search"));
- toolbar->appendItem(IDC_ADL_SEARCH, image++, T_("ADL Search"));
- toolbar->appendItem(IDC_SEARCH_SPY, image++, T_("Search Spy"));
+ toolbar->appendItem(image++, T_("Search"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_SEARCH));
+ toolbar->appendItem(image++, T_("ADL Search"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_ADL_SEARCH));
+ toolbar->appendItem(image++, T_("Search Spy"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_SEARCH_SPY));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_OPEN_FILE_LIST, image++, T_("Open file list..."));
+ toolbar->appendItem(image++, T_("Open file list..."), std::tr1::bind(&MainWindow::handleOpenFileList, this));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_SETTINGS, image++, T_("Settings"));
- toolbar->appendItem(IDC_NOTEPAD, image++, T_("Notepad"));
+ toolbar->appendItem(image++, T_("Settings"), std::tr1::bind(&MainWindow::handleSettings, this));
+ toolbar->appendItem(image++, T_("Notepad"), std::tr1::bind(&MainWindow::handleOpenWindow, this, IDC_NOTEPAD));
toolbar->appendSeparator();
- toolbar->appendItem(IDC_WHATS_THIS, image++, T_("\"What's this?\" help"), std::tr1::bind(&MainWindow::handleWhatsThis, this));
+ toolbar->appendItem(image++, T_("\"What's this?\""), std::tr1::bind(&MainWindow::handleWhatsThis, this));
}
void MainWindow::initStatusBar() {
@@ -354,6 +354,13 @@
close(true);
}
+void MainWindow::handleForward(WPARAM wParam) {
+ SmartWin::WidgetChildWindow* active = getMDIParent()->getActive();
+ if(active) {
+ active->sendMessage(WM_COMMAND, wParam, 0);
+ }
+}
+
void MainWindow::handleQuickConnect() {
if (SETTING(NICK).empty()) {
postMessage(WM_COMMAND, IDC_SETTINGS);
Modified: dcplusplus/trunk/win32/MainWindow.h
===================================================================
--- dcplusplus/trunk/win32/MainWindow.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/win32/MainWindow.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -159,6 +159,7 @@
void handleWhatsThis();
void handleSize();
void handleActivate(bool active);
+ void handleForward(WPARAM wParam);
LRESULT handleEndSession();
LRESULT handleTrayIcon(LPARAM lParam);
Modified: dcplusplus/trunk/win32/resource.h
===================================================================
--- dcplusplus/trunk/win32/resource.h 2008-03-30 08:32:18 UTC (rev 1094)
+++ dcplusplus/trunk/win32/resource.h 2008-03-30 08:33:27 UTC (rev 1095)
@@ -442,6 +442,7 @@
#define IDC_SETTINGS_PRIVATE_KEY_FILE 2299
...
[truncated message content] |
|
From: <arn...@us...> - 2008-04-07 18:48:38
|
Revision: 1096
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1096&view=rev
Author: arnetheduck
Date: 2008-04-07 11:48:32 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
fix the search window bug, re-open the one about line history
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/SearchFrame.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-30 10:12:32.273999929 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-30 15:16:07.595999956 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-30 08:33:27 UTC (rev 1095)
+++ dcplusplus/trunk/changelog.txt 2008-04-07 18:48:32 UTC (rev 1096)
@@ -12,9 +12,9 @@
* Both up&downloads are disconnected if evil users quit (thanks poy)
* Add average share to status bar (thanks mikejj)
* Minor improvements to load / save dialogs
-* [L#208684] Fixed line history when "Use Ctrl ..." is disabled (poy)
* [L#208917] Fixed menu background colors (poy)
* [L#208344] Fix about dialog up/down stats
+* [L#209099] Fixed non-disappearing controls in search (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-03-30 08:33:27 UTC (rev 1095)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 18:48:32 UTC (rev 1096)
@@ -665,7 +665,7 @@
}
bool HubFrame::historyActive() {
- return isAltPressed() || !BOOLSETTING(USE_CTRL_FOR_LINE_HISTORY) || isControlPressed();
+ return isAltPressed() || (BOOLSETTING(USE_CTRL_FOR_LINE_HISTORY) && isControlPressed());
}
bool HubFrame::handleUsersKeyDown(int c) {
Modified: dcplusplus/trunk/win32/SearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.cpp 2008-03-30 08:33:27 UTC (rev 1095)
+++ dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 18:48:32 UTC (rev 1096)
@@ -86,6 +86,7 @@
searchLabel(0),
searchBox(0),
purge(0),
+ doSearch(0),
sizeLabel(0),
mode(0),
size(0),
@@ -97,7 +98,6 @@
onlyFree(BOOLSETTING(SEARCH_ONLY_FREE_SLOTS)),
hubsLabel(0),
hubs(0),
- doSearch(0),
results(0),
showUI(0),
bShowUI(true),
@@ -386,19 +386,6 @@
hubs->setBounds(rect);
} else {
results->setBounds(r);
-
- SmartWin::Rectangle rNULL(0, 0, 0, 0);
- searchBox->setBounds(rNULL);
- mode->setBounds(rNULL);
- purge->setBounds(rNULL);
- size->setBounds(rNULL);
- sizeMode->setBounds(rNULL);
- fileType->setBounds(rNULL);
-
- sizeLabel->setBounds(rNULL);
- typeLabel->setBounds(rNULL);
- optionLabel->setBounds(rNULL);
- hubsLabel->setBounds(rNULL);
}
}
@@ -599,6 +586,22 @@
void SearchFrame::handleShowUIClicked() {
bShowUI = showUI->getChecked();
+
+ searchLabel->setVisible(bShowUI);
+ searchBox->setVisible(bShowUI);
+ purge->setVisible(bShowUI);
+ doSearch->setVisible(bShowUI);
+ sizeLabel->setVisible(bShowUI);
+ mode->setVisible(bShowUI);
+ size->setVisible(bShowUI);
+ sizeMode->setVisible(bShowUI);
+ typeLabel->setVisible(bShowUI);
+ fileType->setVisible(bShowUI);
+ optionLabel->setVisible(bShowUI);
+ slots->setVisible(bShowUI);
+ hubsLabel->setVisible(bShowUI);
+ hubs->setVisible(bShowUI);
+
layout();
}
Modified: dcplusplus/trunk/win32/SearchFrame.h
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.h 2008-03-30 08:33:27 UTC (rev 1095)
+++ dcplusplus/trunk/win32/SearchFrame.h 2008-04-07 18:48:32 UTC (rev 1096)
@@ -157,6 +157,7 @@
LabelPtr searchLabel;
ComboBoxPtr searchBox;
ButtonPtr purge;
+ ButtonPtr doSearch;
LabelPtr sizeLabel;
ComboBoxPtr mode;
@@ -175,8 +176,6 @@
typedef WidgetHubs* WidgetHubsPtr;
WidgetHubsPtr hubs;
- ButtonPtr doSearch;
-
typedef TypedTable<SearchInfo> WidgetResults;
typedef WidgetResults* WidgetResultsPtr;
WidgetResultsPtr results;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:49:50
|
Revision: 1097
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1097&view=rev
Author: arnetheduck
Date: 2008-04-07 11:49:38 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
use WM_SYSKEYDOWN to catch Alt+key
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/help/settings_advanced.html
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h
dcplusplus/trunk/win32/HubFrame.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-30 15:16:07.595999956 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-30 15:48:35.204999924 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-04-07 18:48:32 UTC (rev 1096)
+++ dcplusplus/trunk/changelog.txt 2008-04-07 18:49:38 UTC (rev 1097)
@@ -15,6 +15,7 @@
* [L#208917] Fixed menu background colors (poy)
* [L#208344] Fix about dialog up/down stats
* [L#209099] Fixed non-disappearing controls in search (poy)
+* [L#208684] Made the Alt key work again for line history in hub window (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/help/settings_advanced.html
===================================================================
--- dcplusplus/trunk/help/settings_advanced.html 2008-04-07 18:48:32 UTC (rev 1096)
+++ dcplusplus/trunk/help/settings_advanced.html 2008-04-07 18:49:38 UTC (rev 1097)
@@ -112,7 +112,7 @@
will not appear in your file list until the next refresh.</dd>
<dt>Use CTRL for line history</dt>
<dd>Press up arrow while holding down CTRL to scroll through line
-history. If not enabled, up arrow will be enough.</dd>
+history. If not enabled, you can still use ALT.</dd>
<dt>Don't automatically disconnect favorite users who leave the hub</dt>
<dd>With this option enabled, and <a href="window_settings_advanced.html#disconnect">Automatically disconnect users who leave the hub</a>, users who are in your <a href="favorite_users.html">Favorite users</a> page are not disconnected.</dd>
<dt>Show shell menu where possible</dt>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h 2008-04-07 18:48:32 UTC (rev 1096)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h 2008-04-07 18:49:38 UTC (rev 1097)
@@ -154,6 +154,14 @@
onKey(WM_KEYUP, f);
}
+ void onSysKeyDown(const typename Dispatcher::F& f) {
+ onKey(WM_SYSKEYDOWN, f);
+ }
+
+ void onSysKeyUp(const typename Dispatcher::F& f) {
+ onKey(WM_SYSKEYUP, f);
+ }
+
protected:
virtual ~AspectKeyboard()
{}
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 18:48:32 UTC (rev 1096)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 18:49:38 UTC (rev 1097)
@@ -99,6 +99,7 @@
addWidget(message, true, false);
message->onRaw(std::tr1::bind(&HubFrame::handleMessageGetDlgCode, this), SmartWin::Message(WM_GETDLGCODE));
message->onKeyDown(std::tr1::bind(&HubFrame::handleMessageKeyDown, this, _1));
+ message->onSysKeyDown(std::tr1::bind(&HubFrame::handleMessageKeyDown, this, _1));
message->onChar(std::tr1::bind(&HubFrame::handleMessageChar, this, _1));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:50:40
|
Revision: 1098
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1098&view=rev
Author: arnetheduck
Date: 2008-04-07 11:50:33 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
help in the tab control
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
dcplusplus/trunk/win32/MainWindow.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-30 15:48:35.204999924 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-31 14:45:49.411999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 18:49:38 UTC (rev 1097)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 18:50:33 UTC (rev 1098)
@@ -18,6 +18,10 @@
public AspectRaw<WidgetTabView>,
public AspectSizable<WidgetTabView>
{
+ typedef std::tr1::function<void (const SmartUtil::tstring&)> TitleChangedFunction;
+ typedef std::tr1::function<void (HWND, unsigned)> HelpFunction;
+ typedef std::tr1::function<bool (const ScreenCoordinate&)> ContextMenuFunction;
+
public:
/// Class type
typedef WidgetTabView ThisType;
@@ -48,12 +52,16 @@
SmartUtil::tstring getTabText(WidgetChildWindow* w);
- void onTitleChanged(const std::tr1::function<void (const SmartUtil::tstring&)>& f) {
+ void onTitleChanged(const TitleChangedFunction& f) {
titleChangedFunction = f;
}
- void onTabContextMenu(WidgetChildWindow* w, const std::tr1::function<bool (const ScreenCoordinate& pt)>& f);
+ void onHelp(const HelpFunction& f) {
+ helpFunction = f;
+ }
+ void onTabContextMenu(WidgetChildWindow* w, const ContextMenuFunction& f);
+
bool filter(const MSG& msg);
TabSheet::ObjectType getTab();
@@ -75,7 +83,7 @@
struct TabInfo {
TabInfo(WidgetChildWindow* w_) : w(w_) { }
WidgetChildWindow* w;
- std::tr1::function<bool (const ScreenCoordinate& pt)> handleContextMenu;
+ ContextMenuFunction handleContextMenu;
};
static WindowClass windowClass;
@@ -83,7 +91,8 @@
TabSheet::ObjectType tab;
ToolTip::ObjectType tip;
- std::tr1::function<void (const SmartUtil::tstring&)> titleChangedFunction;
+ TitleChangedFunction titleChangedFunction;
+ HelpFunction helpFunction;
bool toggleActive;
@@ -114,6 +123,7 @@
void handleLeftMouseUp(const MouseEventResult& mouseEventResult);
bool handleContextMenu(SmartWin::ScreenCoordinate pt);
void handleMiddleMouseDown(const MouseEventResult& mouseEventResult);
+ void handleHelp(HWND hWnd, unsigned id);
SmartUtil::tstring formatTitle(SmartUtil::tstring title);
void layout();
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-04-07 18:49:38 UTC (rev 1097)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-04-07 18:50:33 UTC (rev 1098)
@@ -37,6 +37,7 @@
tab->onLeftMouseUp(std::tr1::bind(&WidgetTabView::handleLeftMouseUp, this, _1));
tab->onContextMenu(std::tr1::bind(&WidgetTabView::handleContextMenu, this, _1));
tab->onMiddleMouseDown(std::tr1::bind(&WidgetTabView::handleMiddleMouseDown, this, _1));
+ tab->onHelp(std::tr1::bind(&WidgetTabView::handleHelp, this, _1, _2));
tip = WidgetCreator<ToolTip>::attach(this, tab->getToolTips()); // created and managed by the tab control thanks to the TCS_TOOLTIPS style
if(tip) {
@@ -104,7 +105,7 @@
return SmartUtil::tstring();
}
-void WidgetTabView::onTabContextMenu(WidgetChildWindow* w, const std::tr1::function<bool (const ScreenCoordinate& pt)>& f) {
+void WidgetTabView::onTabContextMenu(WidgetChildWindow* w, const ContextMenuFunction& f) {
TabInfo* ti = getTabInfo(w);
if(ti) {
ti->handleContextMenu = f;
@@ -378,6 +379,18 @@
ti->w->close();
}
+void WidgetTabView::handleHelp(HWND hWnd, unsigned id) {
+ if(helpFunction) {
+ // hWnd and id are those of the whole tab control; not those of the specific tab on which the user wants help for
+ TabInfo* ti = getTabInfo(tab->hitTest(ScreenCoordinate(Point::fromLParam(::GetMessagePos()))));
+ if(ti)
+ id = ti->w->getHelpId();
+
+ // even if no tab was found below the cursor, forward the message to the application so that it can display its default help
+ helpFunction(hWnd, id);
+ }
+}
+
bool WidgetTabView::filter(const MSG& msg) {
if(tip)
tip->relayEvent(msg);
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 18:49:38 UTC (rev 1097)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 18:50:33 UTC (rev 1098)
@@ -171,7 +171,9 @@
cs.icon = SmartWin::IconPtr(new SmartWin::Icon(IDR_MAINFRAME));
cs.background = (HBRUSH)(COLOR_3DFACE + 1);
createWindow(cs);
-
+
+ setHelpId(IDH_STARTPAGE);
+
paned = createHPaned();
paned->setRelativePos(0.7);
}
@@ -318,6 +320,7 @@
cs.toggleActive = BOOLSETTING(TOGGLE_ACTIVE_WINDOW);
tabs = createTabView(cs);
tabs->onTitleChanged(std::tr1::bind(&MainWindow::handleTabsTitleChanged, this, _1));
+ tabs->onHelp(std::tr1::bind(&WinUtil::help, _1, _2));
paned->setFirst(tabs);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:52:25
|
Revision: 1099
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1099&view=rev
Author: arnetheduck
Date: 2008-04-07 11:51:57 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
rename create&attach functions for Table and Label
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ModalDialog.h
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/FavoriteDirsPage.cpp
dcplusplus/trunk/win32/HubListsDlg.cpp
dcplusplus/trunk/win32/LineDlg.cpp
dcplusplus/trunk/win32/LogPage.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/UCPage.cpp
dcplusplus/trunk/win32/UploadPage.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-31 14:45:49.411999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-31 15:51:08.490000010 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-04-07 18:51:57 UTC (rev 1099)
@@ -105,10 +105,10 @@
/// MessageBox class and object type.
typedef SmartWin::MessageBox MessageBox;
- /// DataGrid class type.
+ /// Table class type.
typedef SmartWin::Table Table;
- /// DataGrid object type.
+ /// Table object type.
typedef typename Table::ObjectType TablePtr;
/// TreeView class type.
@@ -192,10 +192,10 @@
/// ComboBox object type.
typedef typename ComboBox::ObjectType ComboBoxPtr;
- /// Static class type.
+ /// Label class type.
typedef SmartWin::Label Label;
- /// Static object type.
+ /// Label object type.
typedef typename Label::ObjectType LabelPtr;
/// CheckBox class type.
@@ -282,7 +282,7 @@
* Use e.g. the Dialog Designer to design a dialog and attach the controls
* with this function.
*/
- TablePtr attachList( unsigned id );
+ TablePtr attachTable( unsigned id );
/// Creates a Check Box and returns a pointer to it.
/** DON'T delete the returned pointer!!!
@@ -447,18 +447,18 @@
*/
ComboBoxPtr attachComboBox( unsigned id );
- /// Creates a Static Control and returns a pointer to it.
+ /// Creates a Label Control and returns a pointer to it.
/** DON'T delete the returned pointer!!!
*/
- LabelPtr createStatic( const typename Label::Seed & cs = Label::Seed() );
+ LabelPtr createLabel( const typename Label::Seed & cs = Label::Seed() );
/// \ingroup SubclassDialog
- /// Subclasses a Static Control from the given resource id.
+ /// Subclasses a Label Control from the given resource id.
/** DON'T delete the returned pointer!!! <br>
* Use e.g. the Dialog Designer to design a dialog and attach the controls
* with this function.
*/
- LabelPtr attachStatic( unsigned id );
+ LabelPtr attachLabel( unsigned id );
ToolTipPtr createToolTip( const typename ToolTip::Seed & cs = ToolTip::Seed() );
protected:
@@ -520,7 +520,7 @@
template<typename ContainerWidgetType>
typename WidgetFactory< ContainerWidgetType >::TablePtr
-WidgetFactory< ContainerWidgetType >::attachList( unsigned id )
+WidgetFactory< ContainerWidgetType >::attachTable( unsigned id )
{
return WidgetCreator< Table >::attach( this, id );
}
@@ -728,14 +728,14 @@
template<typename ContainerWidgetType>
typename WidgetFactory< ContainerWidgetType >::LabelPtr
-WidgetFactory< ContainerWidgetType >::createStatic( const typename Label::Seed & cs )
+WidgetFactory< ContainerWidgetType >::createLabel( const typename Label::Seed & cs )
{
return WidgetCreator< Label >::create( this, cs );
}
template<typename ContainerWidgetType>
typename WidgetFactory< ContainerWidgetType >::LabelPtr
-WidgetFactory< ContainerWidgetType >::attachStatic( unsigned id )
+WidgetFactory< ContainerWidgetType >::attachLabel( unsigned id )
{
return WidgetCreator< Label >::attach( this, id );
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ModalDialog.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ModalDialog.h 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ModalDialog.h 2008-04-07 18:51:57 UTC (rev 1099)
@@ -93,7 +93,7 @@
* you wish to use, and set the event handlers for all controls and events you
* wish to handle. <br>
* Example : <br>
- * LabelPtr prompt = attachStatic( IDC_PROMPT ); <br>
+ * LabelPtr prompt = attachLabel( IDC_PROMPT ); <br>
* prompt->onClicked( &X::myClickMethod ); <br>
* ...etc...
*/
@@ -107,7 +107,7 @@
* constructor of your dialog, <br>
* and in your initDialog you create the dialog's Widgets yourself. <br>
* Example : <br>
- * LabelPtr prompt = createStatic(); <br>
+ * LabelPtr prompt = createLabel(); <br>
* prompt->setBounds( 10, 100, 100, 50 ); <br>
* prompt->setText( _T("testing") );
*/
Modified: dcplusplus/trunk/win32/Appearance2Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Appearance2Page.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/Appearance2Page.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -78,7 +78,7 @@
WinUtil::decodeFont(Text::toT(SETTING(TEXT_FONT)), logFont);
font = SmartWin::FontPtr(new SmartWin::Font(::CreateFontIndirect(&logFont), true));
- example = attachStatic(IDC_COLOREXAMPLE);
+ example = attachLabel(IDC_COLOREXAMPLE);
example->setColor(fg, bg);
example->setFont(font);
Modified: dcplusplus/trunk/win32/FavoriteDirsPage.cpp
===================================================================
--- dcplusplus/trunk/win32/FavoriteDirsPage.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/FavoriteDirsPage.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -52,7 +52,7 @@
WinUtil::setHelpIds(this, helpItems);
PropPage::translate(handle(), texts);
- directories = attachList(IDC_FAVORITE_DIRECTORIES);
+ directories = attachTable(IDC_FAVORITE_DIRECTORIES);
directories->setTableStyle(LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
TStringList columns;
Modified: dcplusplus/trunk/win32/HubListsDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/HubListsDlg.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/HubListsDlg.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -62,7 +62,7 @@
editBox = attachTextBox(IDC_LIST_EDIT_BOX);
- hubLists = attachList(IDC_LIST_LIST);
+ hubLists = attachTable(IDC_LIST_LIST);
hubLists->setTableStyle(LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
TStringList columns;
Modified: dcplusplus/trunk/win32/LineDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/LineDlg.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/LineDlg.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -34,7 +34,7 @@
bool LineDlg::initDialog() {
attachButton(IDOK)->onClicked(std::tr1::bind(&LineDlg::okClicked, this));
attachButton(IDCANCEL)->onClicked(std::tr1::bind(&LineDlg::cancelClicked, this));
- attachStatic(IDC_DESCRIPTION)->setText(desc);
+ attachLabel(IDC_DESCRIPTION)->setText(desc);
line = attachTextBox(IDC_LINE);
line->setFocus();
Modified: dcplusplus/trunk/win32/LogPage.cpp
===================================================================
--- dcplusplus/trunk/win32/LogPage.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/LogPage.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -78,7 +78,7 @@
attachButton(IDC_BROWSE_LOG)->onClicked(std::tr1::bind(&LogPage::handleBrowseClicked, this));
- dataGrid = attachList(IDC_LOG_OPTIONS);
+ dataGrid = attachTable(IDC_LOG_OPTIONS);
dataGrid->onRaw(std::tr1::bind(&LogPage::handleItemChanged, this), SmartWin::Message(WM_NOTIFY, LVN_ITEMCHANGED));
logFormat = attachTextBox(IDC_LOG_FORMAT);
Modified: dcplusplus/trunk/win32/SearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -113,22 +113,22 @@
cs.exStyle = WS_EX_TRANSPARENT;
cs.caption = T_("Search for");
- searchLabel = createStatic(cs);
+ searchLabel = createLabel(cs);
searchLabel->setHelpId(IDH_SEARCH_SEARCH_FOR);
cs.caption = T_("Size");
- sizeLabel = createStatic(cs);
+ sizeLabel = createLabel(cs);
sizeLabel->setHelpId(IDH_SEARCH_SIZE);
cs.caption = T_("File type");
- typeLabel = createStatic(cs);
+ typeLabel = createLabel(cs);
typeLabel->setHelpId(IDH_SEARCH_TYPE);
cs.caption = T_("Search options");
- optionLabel = createStatic(cs);
+ optionLabel = createLabel(cs);
cs.caption = T_("Hubs");
- hubsLabel = createStatic(cs);
+ hubsLabel = createLabel(cs);
hubsLabel->setHelpId(IDH_SEARCH_HUBS);
}
Modified: dcplusplus/trunk/win32/UCPage.cpp
===================================================================
--- dcplusplus/trunk/win32/UCPage.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/UCPage.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -59,7 +59,7 @@
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
- commands = attachList(IDC_MENU_ITEMS);
+ commands = attachTable(IDC_MENU_ITEMS);
commands->setTableStyle(LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
TStringList columns;
Modified: dcplusplus/trunk/win32/UploadPage.cpp
===================================================================
--- dcplusplus/trunk/win32/UploadPage.cpp 2008-04-07 18:50:33 UTC (rev 1098)
+++ dcplusplus/trunk/win32/UploadPage.cpp 2008-04-07 18:51:57 UTC (rev 1099)
@@ -78,7 +78,7 @@
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
- directories = attachList(IDC_DIRECTORIES);
+ directories = attachTable(IDC_DIRECTORIES);
directories->setTableStyle(LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
TStringList columns;
@@ -108,7 +108,7 @@
CheckBoxPtr shareHidden = attachCheckBox(IDC_SHAREHIDDEN);
shareHidden->onClicked(std::tr1::bind(&UploadPage::handleShareHiddenClicked, this, shareHidden));
- total = attachStatic(IDC_TOTAL);
+ total = attachLabel(IDC_TOTAL);
total->setText(Text::toT(Util::formatBytes(ShareManager::getInstance()->getShareSize())));
ButtonPtr button = attachButton(IDC_RENAME);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:53:49
|
Revision: 1100
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1100&view=rev
Author: arnetheduck
Date: 2008-04-07 11:53:15 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
don't add new callbacks everytime a menu opens
Modified Paths:
--------------
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-31 15:51:08.490000010 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-31 16:07:57.911999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-04-07 18:51:57 UTC (rev 1099)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-04-07 18:53:15 UTC (rev 1100)
@@ -66,8 +66,8 @@
}
// set default drawing
- itsParent->addCallback(Message(WM_DRAWITEM), DrawItemDispatcher(std::tr1::bind(&WidgetMenu::handleDrawItem, this, _1, _2)));
- itsParent->addCallback(Message(WM_MEASUREITEM), MeasureItemDispatcher(std::tr1::bind(&WidgetMenu::handleMeasureItem, this, _1)));
+ itsParent->setCallback(Message(WM_DRAWITEM), DrawItemDispatcher(std::tr1::bind(&WidgetMenu::handleDrawItem, this, _1, _2)));
+ itsParent->setCallback(Message(WM_MEASUREITEM), MeasureItemDispatcher(std::tr1::bind(&WidgetMenu::handleMeasureItem, this, _1)));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:54:27
|
Revision: 1101
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1101&view=rev
Author: arnetheduck
Date: 2008-04-07 11:54:23 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
Fixed parsing of non-XML hub lists
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/FavoriteManager.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-31 16:07:57.911999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-31 17:25:13.130000114 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
bugs: https://launchpad.net/bugs/209684 fixed
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-04-07 18:53:15 UTC (rev 1100)
+++ dcplusplus/trunk/changelog.txt 2008-04-07 18:54:23 UTC (rev 1101)
@@ -16,6 +16,7 @@
* [L#208344] Fix about dialog up/down stats
* [L#209099] Fixed non-disappearing controls in search (poy)
* [L#208684] Made the Alt key work again for line history in hub window (poy)
+* [L#209684] Fixed parsing of non-XML hub lists (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/dcpp/FavoriteManager.cpp
===================================================================
--- dcplusplus/trunk/dcpp/FavoriteManager.cpp 2008-04-07 18:53:15 UTC (rev 1100)
+++ dcplusplus/trunk/dcpp/FavoriteManager.cpp 2008-04-07 18:54:23 UTC (rev 1101)
@@ -295,8 +295,8 @@
continue;
StringList::const_iterator k = tok.getTokens().begin();
+ const string& name = *k++;
const string& server = *k++;
- const string& name = *k++;
const string& desc = *k++;
const string& usersOnline = *k++;
list.push_back(HubEntry(name, server, desc, usersOnline));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 18:56:54
|
Revision: 1102
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1102&view=rev
Author: arnetheduck
Date: 2008-04-07 11:56:50 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
Move child windows where they belong in the inheritance structure
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h
dcplusplus/trunk/smartwin/source/widgets/MDIFrame.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
dcplusplus/trunk/win32/MDIChildFrame.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/MainWindowFactory.cpp
dcplusplus/trunk/win32/SplashWindow.cpp
dcplusplus/trunk/win32/TransferView.cpp
dcplusplus/trunk/win32/TransferView.h
dcplusplus/trunk/win32/WinUtil.cpp
Added Paths:
-----------
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCloseable.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectTimer.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
dcplusplus/trunk/smartwin/source/widgets/ModalDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/ModelessDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/Window.cpp
Removed Paths:
-------------
dcplusplus/trunk/smartwin/source/widgets/WidgetDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetModalDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetWindow.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-31 17:25:13.130000114 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
bugs: https://launchpad.net/bugs/209684 fixed
+ timestamp: 2008-03-31 20:44:36.398000002 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
-
+ smartwin/include/smartwin/aspects/AspectCloseable.h aspectcloseable.h-20080331184314-ain6peu31zweti0t-1
smartwin/include/smartwin/aspects/AspectTimer.h aspecttimer.h-20080331184314-ain6peu31zweti0t-2
smartwin/include/smartwin/widgets/Composite.h composite.h-20080331184314-ain6peu31zweti0t-3
smartwin/include/smartwin/widgets/Container.h container.h-20080331184314-ain6peu31zweti0t-4
smartwin/source/widgets/ModalDialog.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetModalDialog.cpp
smartwin/source/widgets/ModelessDialog.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetDialog.cpp
smartwin/source/widgets/Window.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetWindow.cpp
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/changelog.txt 2008-04-07 18:56:50 UTC (rev 1102)
@@ -17,6 +17,7 @@
* [L#209099] Fixed non-disappearing controls in search (poy)
* [L#208684] Made the Alt key work again for line history in hub window (poy)
* [L#209684] Fixed parsing of non-XML hub lists (poy)
+* [L#205660] Readded hub column to transfers (thanks mikejj)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -58,13 +58,6 @@
return retVal;
}
- static typename WidgetType::ObjectType createWindow( Widget * parent, const typename WidgetType::Seed & cs )
- {
- typename WidgetType::ObjectType retVal(new WidgetType( parent ));
- retVal->createWindow( cs );
- return retVal;
- }
-
template< class ContainerType >
static typename WidgetType::ObjectType create( Widget * parent, ContainerType * container, const typename WidgetType::Seed & cs )
{
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactory.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -35,6 +35,7 @@
#include "widgets/MessageBox.h"
#include "widgets/CheckBox.h"
#include "widgets/ComboBox.h"
+#include "widgets/Container.h"
#include "widgets/Table.h"
#include "widgets/DateTime.h"
#include "widgets/GroupBox.h"
@@ -211,10 +212,10 @@
typedef typename DateTime::ObjectType DateTimePtr;
/// WidgetChildWindow class type.
- typedef SmartWin::WidgetChildWindow WidgetChildWindow;
+ typedef SmartWin::Container Container;
/// WidgetChildWindow object type.
- typedef typename WidgetChildWindow::ObjectType WidgetChildWindowPtr;
+ typedef typename Container::ObjectType ContainerPtr;
/// Window class type.
typedef SmartWin::Window Window;
@@ -300,7 +301,7 @@
/// Creates a child window and returns a pointer to it.
/** DON'T delete the returned pointer!!!
*/
- WidgetChildWindowPtr createWidgetChildWindow( const typename WidgetChildWindow::Seed & cs = WidgetChildWindow::Seed() );
+ ContainerPtr createContainer( const typename Container::Seed & cs = Container::Seed() );
/// Creates a Tree View and returns a pointer to it.
/** DON'T delete the returned pointer!!!
@@ -540,10 +541,10 @@
}
template<typename ContainerWidgetType>
-typename WidgetFactory< ContainerWidgetType >::WidgetChildWindowPtr
-WidgetFactory< ContainerWidgetType >::createWidgetChildWindow( const typename WidgetChildWindow::Seed & cs )
+typename WidgetFactory< ContainerWidgetType >::ContainerPtr
+WidgetFactory< ContainerWidgetType >::createContainer( const typename Container::Seed & cs )
{
- return WidgetCreator< WidgetChildWindow >::createWindow( this, cs );
+ return WidgetCreator< Container >::create( this, cs );
}
template<typename ContainerWidgetType>
Added: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCloseable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCloseable.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCloseable.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -0,0 +1,62 @@
+#ifndef ASPECTCLOSE_H_
+#define ASPECTCLOSE_H_
+
+namespace SmartWin {
+
+template< class WidgetType >
+class AspectCloseable {
+ WidgetType& W() { return *static_cast<WidgetType*>(this); }
+
+ struct Dispatcher {
+ typedef std::tr1::function<bool ()> F;
+
+ Dispatcher(const F& f_) : f(f_) { }
+
+ bool operator()(const MSG& msg, LRESULT& ret) {
+ return !f();
+ }
+
+ F f;
+ };
+
+public:
+ /// Closes the window
+ /** Call this function to raise the "Closing" event. <br>
+ * This will normally try to close the window. <br>
+ * Note! <br>
+ * If this event is trapped and we in that event handler state that we DON'T
+ * want to close the window (by returning false) the window will not be close.
+ * <br>
+ * Note! <br>
+ * If the asyncron argument is true the message will be posted to the message
+ * que meaning that the close event will be done asyncronously and therefore the
+ * function will return immediately and the close event will be handled when the
+ * close event pops up in the event handler que.
+ */
+ void close( bool asyncron = false );
+
+ /// Event Handler setter for the Closing Event
+ /** If supplied event handler is called before the window is closed. <br>
+ * Signature of event handler must be "bool foo()" <br>
+ * If you return true from your event handler the window is closed, otherwise
+ * the window is NOT allowed to actually close!!
+ */
+ void onClosing(const typename Dispatcher::F& f);
+};
+
+template< class WidgetType >
+void AspectCloseable< WidgetType >::close( bool asyncron ) {
+ if ( asyncron )
+ W().postMessage(WM_CLOSE); // Return now
+ else
+ W().sendMessage(WM_CLOSE); // Return after close is done.
+}
+
+template<typename WidgetType>
+void AspectCloseable<WidgetType>::onClosing(const typename Dispatcher::F& f) {
+ W().addCallback(Message(WM_CLOSE), Dispatcher(f));
+}
+
+}
+
+#endif /*ASPECTCLOSE_H_*/
Added: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectTimer.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectTimer.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectTimer.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -0,0 +1,49 @@
+#ifndef ASPECTTIMER_H_
+#define ASPECTTIMER_H_
+
+namespace SmartWin {
+
+template< class WidgetType >
+class AspectTimer {
+ WidgetType& W() { return *static_cast<WidgetType*>(this); }
+ HWND H() { return W().handle(); }
+
+ struct Dispatcher {
+ typedef std::tr1::function<bool ()> F;
+
+ Dispatcher(const F& f_) : f(f_) { }
+
+ bool operator()(const MSG& msg, LRESULT& ret) {
+ if(!f()) {
+ /// @todo remove from message map as well...
+ ::KillTimer(msg.hwnd, msg.wParam);
+ }
+ return FALSE;
+ }
+
+ F f;
+ };
+
+
+public:
+ /// Creates a timer object.
+ /** The supplied function must have the signature bool foo() <br>
+ * The event function will be called when at least milliSeconds seconds have elapsed.
+ * If your event handler returns true, it will keep getting called periodically, otherwise
+ * it will be removed.
+ */
+ void createTimer(const typename Dispatcher::F& f, unsigned int milliSeconds, unsigned int id = 0);
+
+};
+
+template< class WidgetType >
+void AspectTimer< WidgetType >::createTimer( const typename Dispatcher::F& f,
+ unsigned int milliSecond, unsigned int id)
+{
+ ::SetTimer( H(), id, static_cast< UINT >( milliSecond ), NULL);
+ W().addCallback(Message( WM_TIMER, id ), Dispatcher(f));
+}
+
+}
+
+#endif /*ASPECTTIMER_H_*/
Added: dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -0,0 +1,95 @@
+#ifndef COMPOSITE_H_
+#define COMPOSITE_H_
+
+#include "../aspects/AspectActivate.h"
+#include "../aspects/AspectCommand.h"
+#include "../aspects/AspectDragDrop.h"
+#include "../aspects/AspectEraseBackground.h"
+#include "../aspects/AspectFocus.h"
+#include "../aspects/AspectFont.h"
+#include "../aspects/AspectPainting.h"
+#include "../aspects/AspectText.h"
+#include "../resources/Icon.h"
+#include "../Policies.h"
+#include "../WidgetCreator.h"
+#include "../WindowClass.h"
+#include "Control.h"
+
+#include <boost/scoped_ptr.hpp>
+
+namespace SmartWin {
+
+template<typename Policy>
+class Composite :
+ public Control<Policy>,
+ // Aspects
+ public AspectActivate< Composite< Policy > >,
+ public AspectCommand< Composite< Policy > >,
+ public AspectDragDrop< Composite< Policy > >,
+ public AspectEraseBackground< Composite< Policy > >,
+ public AspectFocus< Composite< Policy > >,
+ public AspectFont< Composite< Policy > >,
+ public AspectPainting< Composite< Policy > >,
+ public AspectText< Composite< Policy > >
+{
+public:
+ typedef Composite<Policy> ThisType;
+
+ typedef ThisType* ObjectType;
+
+ typedef Control<Policy> BaseType;
+
+ /// Seed class
+ /** This class contains all of the values needed to create the widget. It also
+ * knows the type of the class whose seed values it contains. Every widget
+ * should define one of these.
+ */
+ struct Seed : public BaseType::Seed {
+ IconPtr icon;
+ IconPtr smallIcon;
+ HBRUSH background;
+ LPCTSTR menuName;
+ HCURSOR cursor;
+
+ /// Fills with default parameters
+ Seed(DWORD style);
+ };
+
+
+ template<typename ChildSeed>
+ typename ChildSeed::ObjectType add(const ChildSeed& seed) {
+ return WidgetCreator<typename ChildSeed::WidgetType>::create(this, seed);
+ }
+
+ virtual void create(const Seed& cs);
+protected:
+ friend class WidgetCreator<Composite<Policy> >;
+
+ explicit Composite( Widget * parent ) : BaseType( parent )
+ {};
+
+private:
+ boost::scoped_ptr<WindowClass> windowClass;
+};
+
+template<typename Policy>
+Composite<Policy>::Seed::Seed(DWORD style) :
+ BaseType::Seed(NULL, style | WS_CLIPCHILDREN),
+ background(( HBRUSH )( COLOR_APPWORKSPACE + 1 )),
+ menuName(NULL),
+ cursor(NULL)
+{
+}
+
+template<typename Policy>
+void Composite<Policy>::create(const Seed& cs) {
+ windowClass.reset(new WindowClass(WindowClass::getNewClassName(this), &ThisType::wndProc, cs.menuName, cs.background, cs.icon, cs.smallIcon, cs.cursor));
+
+ Seed cs2 = cs;
+ cs2.className = windowClass->getClassName();
+ BaseType::create( cs2 );
+}
+
+}
+
+#endif /*COMPOSITE_H_*/
Added: dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -0,0 +1,39 @@
+#ifndef CONTAINER_H_
+#define CONTAINER_H_
+
+#include "../Policies.h"
+#include "Composite.h"
+
+namespace SmartWin {
+
+class Container :
+ public Composite<Policies::Normal>
+{
+ friend class WidgetCreator<Container>;
+public:
+ typedef Container ThisType;
+
+ typedef ThisType* ObjectType;
+
+ typedef Composite<Policies::Normal> BaseType;
+
+ struct Seed : public BaseType::Seed {
+ Seed();
+ };
+
+ // Use our seed type
+ virtual void create( const Seed& cs = Seed() );
+
+protected:
+ Container(Widget* parent) : BaseType(parent) { }
+};
+
+inline Container::Seed::Seed() : BaseType::Seed(WS_CHILD | WS_CLIPSIBLINGS) {
+
+}
+
+inline void Container::create(const Seed& cs) {
+ BaseType::create(cs);
+}
+}
+#endif /*CONTAINER_H_*/
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -5,6 +5,7 @@
#include "../xCeption.h"
#include "../aspects/AspectBorder.h"
+#include "../aspects/AspectCloseable.h"
#include "../aspects/AspectContextMenu.h"
#include "../aspects/AspectEnabled.h"
#include "../aspects/AspectHelp.h"
@@ -12,6 +13,7 @@
#include "../aspects/AspectMouse.h"
#include "../aspects/AspectRaw.h"
#include "../aspects/AspectSizable.h"
+#include "../aspects/AspectTimer.h"
#include "../aspects/AspectVisible.h"
namespace SmartWin {
@@ -22,6 +24,7 @@
public MessageMap<Policy>,
public AspectBorder<Control<Policy> >,
+ public AspectCloseable<Control<Policy> >,
public AspectContextMenu<Control<Policy> >,
public AspectEnabled<Control<Policy> >,
public AspectHelp<Control<Policy> >,
@@ -29,10 +32,16 @@
public AspectMouse<Control<Policy> >,
public AspectRaw<Control<Policy> >,
public AspectSizable<Control<Policy> >,
+ public AspectTimer<Control<Policy> >,
public AspectVisible<Control<Policy> >
{
public:
-
+ typedef MessageMap<Policy> BaseType;
+
+ struct Seed : public BaseType::Seed {
+ Seed(LPCTSTR className, DWORD style);
+ };
+
protected:
typedef Control<Policy> ControlType;
@@ -46,6 +55,13 @@
typedef Control<Policies::Subclassed> CommonControl;
+template<typename Policy>
+Control<Policy>::Seed::Seed(LPCTSTR className, DWORD style) :
+ BaseType::Seed(NULL, style | WS_VISIBLE)
+{
+
}
+}
+
#endif /*CONTROL_H_*/
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -30,16 +30,8 @@
#include "../Application.h"
#include "../Rectangle.h"
-#include "../aspects/AspectActivate.h"
-#include "../aspects/AspectCommand.h"
-#include "../aspects/AspectDragDrop.h"
-#include "../aspects/AspectEraseBackground.h"
-#include "../aspects/AspectFocus.h"
-#include "../aspects/AspectFont.h"
#include "../aspects/AspectMinMax.h"
-#include "../aspects/AspectPainting.h"
-#include "../aspects/AspectText.h"
-#include "Control.h"
+#include "Composite.h"
namespace SmartWin
{
@@ -73,102 +65,22 @@
*/
template< class Policy >
class Frame :
- public Control< Policy >,
-
- // Aspects
- public AspectActivate< Frame< Policy > >,
- public AspectCommand< Frame< Policy > >,
- public AspectDragDrop< Frame< Policy > >,
- public AspectEraseBackground< Frame< Policy > >,
- public AspectFocus< Frame< Policy > >,
- public AspectFont< Frame< Policy > >,
- public AspectMinMax<Frame<Policy> >,
- public AspectPainting< Frame< Policy > >,
- public AspectText< Frame< Policy > >
+ public Composite< Policy >,
+ public AspectMinMax<Frame<Policy> >
{
- struct CloseDispatcher
- {
- typedef std::tr1::function<bool ()> F;
-
- CloseDispatcher(const F& f_, Widget* widget_) : f(f_), widget(widget_) { }
-
- bool operator()(const MSG& msg, LRESULT& ret) {
- bool destroy = f();
-
- if ( destroy ) {
- return false;
- }
-
- return true;
- }
-
- F f;
- Widget* widget;
- };
-
- struct TimerDispatcher
- {
- typedef std::tr1::function<bool ()> F;
-
- TimerDispatcher(const F& f_) : f(f_) { }
-
- bool operator()(const MSG& msg, LRESULT& ret) {
- bool keep = f();
-
- if(!keep) {
- ::KillTimer(msg.hwnd, msg.wParam);
- // TODO remove from message map as well...
- }
- return FALSE;
- }
-
- F f;
- };
-
public:
/// Class type
typedef Frame< Policy > ThisType;
/// Object type
typedef ThisType * ObjectType;
+
+ typedef Composite< Policy > BaseType;
+
+ struct Seed : public BaseType::Seed {
+ Seed(DWORD style);
+ };
- // TODO: Outfactor into WidgetClosable
- /// Event Handler setter for the Closing Event
- /** If supplied event handler is called before the window is closed. <br>
- * Signature of event handler must be "bool foo()" <br>
- * If you return true from your event handler the window is closed, otherwise
- * the window is NOT allowed to actually close!!
- */
- void onClosing(const typename CloseDispatcher::F& f) {
- this->addCallback(
- Message( WM_CLOSE ), CloseDispatcher(f, this)
- );
- }
-
- // TODO: Outfactor into "time Aspect" class
- /// Creates a timer object.
- /** The supplied function must have the signature bool foo() <br>
- * The event function will be called when at least milliSeconds seconds have elapsed.
- * If your event handler returns true, it will keep getting called periodically, otherwise
- * it will be removed.
- */
- void createTimer(const typename TimerDispatcher::F& f, unsigned int milliSeconds, unsigned int id = 0);
-
- /// Closes the window
- /** Call this function to raise the "Closing" event. <br>
- * This will normally try to close the window. <br>
- * Note! <br>
- * If this event is trapped and we in that event handler state that we DON'T
- * want to close the window (by returning false) the window will not be close.
- * <br>
- * Note! <br>
- * If the asyncron argument is true the message will be posted to the message
- * que meaning that the close event will be done asyncronously and therefore the
- * function will return immediately and the close event will be handled when the
- * close event pops up in the event handler que.
- */
- void close( bool asyncron = false );
-
// TODO: Outfactor to system implementation type, see e.g. WidgetFactory
#ifndef WINCE
/// Animates a window
@@ -228,34 +140,17 @@
// directly
virtual ~Frame()
{}
-
-
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-template< class Policy >
-void Frame< Policy >::createTimer( const typename TimerDispatcher::F& f,
- unsigned int milliSecond, unsigned int id)
-{
-
- ::SetTimer( this->handle(), id, static_cast< UINT >( milliSecond ), NULL);
- addCallback(
- Message( WM_TIMER, id ), TimerDispatcher(f)
- );
+template<typename Policy>
+Frame<Policy>::Seed::Seed(DWORD style) : Frame<Policy>::BaseType::Seed(WS_OVERLAPPEDWINDOW) {
+
}
-template< class Policy >
-void Frame< Policy >::close( bool asyncron )
-{
- if ( asyncron )
- this->postMessage(WM_CLOSE); // Return now
- else
- this->sendMessage(WM_CLOSE); // Return after close is done.
-}
-
#ifndef WINCE
template< class Policy >
void Frame< Policy >::animateSlide( bool show, bool left, unsigned int time )
@@ -340,7 +235,7 @@
template< class Policy >
Frame< Policy >::Frame( Widget * parent )
- : Control<Policy>( parent )
+ : Composite<Policy>( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h 2008-04-07 18:54:23 UTC (rev 1101)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h 2008-04-07 18:56:50 UTC (rev 1102)
@@ -28,11 +28,7 @@
#ifndef MDIFrame_h
#define MDIFrame_h
-#include "../WindowsHeaders.h"
-#include "../Rectangle.h"
-#include "../WindowClass.h"
#include "Frame.h"
-#include <boost/scoped_ptr.hpp>
namespace SmartWin
{
@@ -53,10 +49,8 @@
* features of MDIFrameBase.
*/
class MDIFrame
- : public Frame< Policies::MDIFrame<MDIFrame > >
+ : public Frame< Policies::MDIFrame<MDIFrame> >
{
- typedef Frame< Policies::MDIFrame<MDIFrame > > BaseType;
-
public:
/// Class type
typedef MDIFrame ThisType;
@@ -64,58 +58,30 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef Frame< Policies::MDIFrame<MDIFrame> > BaseType;
+
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
class Seed
- : public Widget::Seed
+ : public BaseType::Seed
{
public:
- IconPtr icon;
- IconPtr iconSmall;
- HBRUSH background;
- LPCTSTR menuName;
- HCURSOR cursor;
-
/// Fills with default parameters
- // explicit to avoid conversion through SmartWin::CreationalStruct
Seed();
-
};
/// Actually creates the window
/** This one creates the window. <br>
* All MDIFrames, and classes derived from them must create the Window
* before using it with functions such as setBounds() or setVisible( false ). <br>
- * The simple version "createWindow()" uses a default Seed for the window attributes.
+ * The simple version "create()" uses a default Seed for the window attributes.
* The seed is not taken a constant because the class name will be generated at registration.
*/
- void createWindow( Seed = Seed() );
+ void create( const Seed& cs = Seed() );
- /// Creates an invisible window, for quiet initialization.
- /** Same as createWindow, except that the window lacks WS_VISIBLE.
- * Since you must create the window before you add other Widgets,
- * and doing so causes a bit of screen flash before the final window
- * is ready, createInvisibleWindow() lets you add Widgets while
- * the main Widget is not visible. Of course you could do code like <br>
- *
- * Seed defInvisible = Seed(); <br>
- * defInvisible.style= defInvisible.style & ( ~ WS_VISIBLE ); <br>
- * createWindow( defInvisible ); <br>
- *
- * but this is ...
[truncated message content] |
|
From: <arn...@us...> - 2008-04-07 19:05:13
|
Revision: 1103
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1103&view=rev
Author: arnetheduck
Date: 2008-04-07 12:04:50 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
Rework seeds, needs more work
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/DateTime.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/GroupBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Label.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIChild.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIFrame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/MDIParent.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ModelessDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/RadioButton.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TextBox.h
dcplusplus/trunk/smartwin/source/widgets/Button.cpp
dcplusplus/trunk/smartwin/source/widgets/CheckBox.cpp
dcplusplus/trunk/smartwin/source/widgets/ComboBox.cpp
dcplusplus/trunk/smartwin/source/widgets/CoolBar.cpp
dcplusplus/trunk/smartwin/source/widgets/DateTime.cpp
dcplusplus/trunk/smartwin/source/widgets/GroupBox.cpp
dcplusplus/trunk/smartwin/source/widgets/Label.cpp
dcplusplus/trunk/smartwin/source/widgets/MDIChild.cpp
dcplusplus/trunk/smartwin/source/widgets/MDIFrame.cpp
dcplusplus/trunk/smartwin/source/widgets/MDIParent.cpp
dcplusplus/trunk/smartwin/source/widgets/ProgressBar.cpp
dcplusplus/trunk/smartwin/source/widgets/RadioButton.cpp
dcplusplus/trunk/smartwin/source/widgets/TextBox.cpp
dcplusplus/trunk/smartwin/source/widgets/Window.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/SystemFrame.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-31 20:44:36.398000002 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-04-01 00:06:48.601000071 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
- smartwin/include/smartwin/aspects/AspectCloseable.h aspectcloseable.h-20080331184314-ain6peu31zweti0t-1
smartwin/include/smartwin/aspects/AspectTimer.h aspecttimer.h-20080331184314-ain6peu31zweti0t-2
smartwin/include/smartwin/widgets/Composite.h composite.h-20080331184314-ain6peu31zweti0t-3
smartwin/include/smartwin/widgets/Container.h container.h-20080331184314-ain6peu31zweti0t-4
smartwin/source/widgets/ModalDialog.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetModalDialog.cpp
smartwin/source/widgets/ModelessDialog.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetDialog.cpp
smartwin/source/widgets/Window.cpp 800@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:smartwin%2Fsource%2Fwidgets%2FWidgetWindow.cpp
+
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -64,45 +64,6 @@
: public boost::noncopyable
{
public:
- /** Most Widgets can override the creational parameters which sets the style and the
- * initial position of the Widget, those Widgets will take an object of this type to
- * their creational function(s).
- */
- struct Seed {
- LPCTSTR className;
-
- /// Initial caption
- /** Windows with a title bar will use this string in the title bar. Controls with
- * caption (e.g. static control, edit control) will use it in the control. <br>
- * It is feed directly to CreateWindowEx, this means that it follows its
- * conventions. In particular, the string "#num" has a special meaning.
- */
- SmartUtil::tstring caption;
-
- /// The style of the object (starts with WS_ or BS_ etc...)
- /** WARNING: The creation of most of the controls require WS_CHILD to be set.
- * This is done, by default, in the appropriate controls. If you override the
- * default style, then be sure that WS_CHILD is set (if needed).
- */
- DWORD style;
-
- /// The Extended Style of the object (starts often with WS_EX_ etc)
- DWORD exStyle;
-
- /// The initial position / size of the Widget
- Rectangle location;
-
- HMENU menuHandle;
-
- /// Constructor initializing all member variables to default values
- Seed(LPCTSTR className_, DWORD style_ = WS_VISIBLE, DWORD exStyle_ = 0,
- const SmartUtil::tstring& caption_ = SmartUtil::tstring(),
- const Rectangle& location_ = letTheSystemDecide, HMENU menuHandle_ = NULL)
- : className(className_), caption(caption_), style( style_ ), exStyle( exStyle_ ), location( location_ ), menuHandle( menuHandle_ )
- {}
-
- };
-
/// Returns the HWND to the Widget
/** Returns the HWND to the inner window of the Widget. <br>
* If you need to do directly manipulation of the window use this function to
@@ -178,17 +139,58 @@
*/
void attach( unsigned id );
- virtual void attach(HWND wnd);
+protected:
+ /** Most Widgets can override the creational parameters which sets the style and the
+ * initial position of the Widget, those Widgets will take an object of this type to
+ * their creational function(s).
+ */
+ struct Seed {
+ LPCTSTR className;
-protected:
+ /// Initial caption
+ /** Windows with a title bar will use this string in the title bar. Controls with
+ * caption (e.g. static control, edit control) will use it in the control. <br>
+ * It is feed directly to CreateWindowEx, this means that it follows its
+ * conventions. In particular, the string "#num" has a special meaning.
+ */
+ SmartUtil::tstring caption;
+
+ /// The style of the object (starts with WS_ or BS_ etc...)
+ /** WARNING: The creation of most of the controls require WS_CHILD to be set.
+ * This is done, by default, in the appropriate controls. If you override the
+ * default style, then be sure that WS_CHILD is set (if needed).
+ */
+ DWORD style;
+
+ /// The Extended Style of the object (starts often with WS_EX_ etc)
+ DWORD exStyle;
+
+ /// The initial position / size of the Widget
+ Rectangle location;
+
+ HMENU menuHandle;
+
+ /// Constructor initializing all member variables to default values
+ Seed(LPCTSTR className_, DWORD style_ = WS_VISIBLE, DWORD exStyle_ = 0,
+ const SmartUtil::tstring& caption_ = SmartUtil::tstring(),
+ const Rectangle& location_ = letTheSystemDecide, HMENU menuHandle_ = NULL)
+ : className(className_), caption(caption_), style( style_ ), exStyle( exStyle_ ), location( location_ ), menuHandle( menuHandle_ )
+ {}
+
+ };
+
+
+
Widget(Widget * parent);
virtual ~Widget();
- // Creates the Widget, should NOT be called directly but overridden in the
- // derived class (with no parameters)
- virtual HWND create( const Seed & cs );
+ // Creates the Widget, should not be called directly but overridden in the
+ // derived class - otherwise the wrong seed will be used
+ HWND create(const Seed & cs);
+ virtual void attach(HWND wnd);
+
private:
friend class Application;
template<typename T> friend T hwnd_cast(HWND hwnd);
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -41,35 +41,24 @@
* E.g. the AspectTextBox have a "text" Aspect therefore they realize the AspectText
* through inheritance.
*/
-template< class WidgetType >
+template<typename WidgetType>
class AspectText
{
WidgetType& W() { return *static_cast<WidgetType*>(this); }
const WidgetType& W() const { return *static_cast<const WidgetType*>(this); }
- static SmartUtil::tstring isActive(const MSG& msg) {
+ static SmartUtil::tstring getText(const MSG& msg) {
return SmartUtil::tstring( reinterpret_cast< TCHAR * >( msg.lParam ) );
}
- typedef Dispatchers::ConvertBase<SmartUtil::tstring, &AspectText<WidgetType>::isActive, false> Dispatcher;
- friend class Dispatchers::ConvertBase<SmartUtil::tstring, &AspectText<WidgetType>::isActive, false>;
+ typedef Dispatchers::ConvertBase<SmartUtil::tstring, &AspectText<WidgetType>::getText, false> Dispatcher;
+ friend class Dispatchers::ConvertBase<SmartUtil::tstring, &AspectText<WidgetType>::getText, false>;
public:
/// Sets the text of the AspectText realizing class
/** The txt parameter is the new text to put into the realizing object.
*/
void setText( const SmartUtil::tstring & txt );
- /// Sets the text in the Edit Control so that endl causes a new line.
- /** Just the same as setText except that CR are expanded to LF CR
- * Replaces \n with \r\n so that Windows textbox understands "endl"
- */
- void setTextLines( const SmartUtil::tstring & txt );
-
- /// Returns a string in which \n is replaced with with \r\n
- /** The purpose is to enable Windows textboxs to understand "endl"
- */
- static SmartUtil::tstring replaceEndlWithLfCr( const SmartUtil::tstring & txt );
-
/// Gets the text of the AspectText realizing class
/** The Return value is the text of the realizing class.
*/
@@ -87,7 +76,6 @@
void onTextChanging(const typename Dispatcher::F& f) {
W().addCallback(Message( WM_SETTEXT ), Dispatcher(f));
}
-
protected:
virtual ~AspectText()
{}
@@ -97,38 +85,11 @@
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template< class WidgetType >
-void AspectText< WidgetType >::setText( const SmartUtil::tstring & txt )
-{
+void AspectText< WidgetType >::setText( const SmartUtil::tstring & txt ) {
W().sendMessage(WM_SETTEXT, 0, reinterpret_cast< LPARAM >(txt.c_str()) );
}
-
template< class WidgetType >
-SmartUtil::tstring AspectText< WidgetType >::replaceEndlWithLfCr( const SmartUtil::tstring & txt )
-{
- // Replaces \n with \r\n so that Windows textbox understands "endl"
- SmartUtil::tstring txtEndl= txt;
-
- SmartUtil::tstring::size_type pos= txtEndl.find( _T('\n'), 0 );
- while ( SmartUtil::tstring::npos != pos ) {
- if(pos > 0 && txtEndl[pos-1] != _T('\r')) {
- txtEndl.replace( pos, 1, _T("\r\n") );
- pos += 2; // Don't find the replacement \n.
- } else {
- pos++;
- }
- pos = txtEndl.find( _T('\n'), pos );
- }
- return txtEndl;
-}
-
-template< class WidgetType >
-void AspectText< WidgetType >::setTextLines( const SmartUtil::tstring & inTxt )
-{
- setText( replaceEndlWithLfCr( inTxt ) );
-}
-
-template< class WidgetType >
size_t AspectText< WidgetType >::length( ) const {
return W().sendMessage(WM_GETTEXTLENGTH);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -43,17 +43,17 @@
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed : public Widget::Seed {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
FontPtr font;
/// Fills with default parameters
- Seed(const SmartUtil::tstring& caption_ = SmartUtil::tstring());
+ Seed(const SmartUtil::tstring& caption_ = SmartUtil::tstring(), DWORD style = 0);
};
template<typename SeedType>
- void create(const SeedType& cs);
-
+ void create(const SeedType& cs = SeedType());
protected:
typedef Button ButtonType;
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -59,14 +59,17 @@
/// Object type
typedef ThisType* ObjectType;
+
+ typedef Button BaseType;
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed : public Widget::Seed {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
FontPtr font;
/// Fills with default parameters
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ComboBox.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -82,16 +82,17 @@
/// Object type
typedef ThisType* ObjectType;
+
+ typedef CommonControl BaseType;
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
FontPtr font;
/// Use extended ui
@@ -101,11 +102,6 @@
Seed();
};
- /// Return the selected value of the ComboBox
- /** If no item is actually selected the return value is "".
- */
- SmartUtil::tstring getSelectedValue();
-
/// Appends a value to the ComboBox.
/** The return value is the index of the new item appended.
*/
@@ -185,14 +181,6 @@
ComboBox_SetCurSel( handle(), idx );
}
-inline SmartUtil::tstring ComboBox::getSelectedValue()
-{
- int txtLength = ::GetWindowTextLength( handle() );
- SmartUtil::tstring retVal(txtLength, '\0');
- ::GetWindowText( handle(), &retVal[0], txtLength );
- return retVal;
-}
-
inline void ComboBox::clearImpl()
{
ComboBox_ResetContent( handle() );
@@ -229,17 +217,8 @@
return static_cast<size_t>(ComboBox_GetCount( handle() )); // Number of items present.
}
-inline SmartUtil::tstring ComboBox::getValue( int index )
-{
- // Uses CB_GETLBTEXTLEN and CB_GETLBTEXT
- int txtLength = ComboBox_GetLBTextLen( handle(), index );
- SmartUtil::tstring retVal(txtLength, '\0');
- ComboBox_GetLBText( handle(), index, &retVal[0] );
- return retVal;
-}
-
inline ComboBox::ComboBox( Widget * parent )
- : ControlType( parent )
+ : BaseType( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Composite.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -52,13 +52,12 @@
HCURSOR cursor;
/// Fills with default parameters
- Seed(DWORD style);
+ Seed(const SmartUtil::tstring& caption, DWORD style, DWORD exStyle);
};
-
- template<typename ChildSeed>
- typename ChildSeed::ObjectType add(const ChildSeed& seed) {
- return WidgetCreator<typename ChildSeed::WidgetType>::create(this, seed);
+ template<typename SeedType>
+ typename SeedType::WidgetType::ObjectType addChild(const SeedType& seed) {
+ return WidgetCreator<typename SeedType::WidgetType>::create(this, seed);
}
virtual void create(const Seed& cs);
@@ -73,8 +72,8 @@
};
template<typename Policy>
-Composite<Policy>::Seed::Seed(DWORD style) :
- BaseType::Seed(NULL, style | WS_CLIPCHILDREN),
+Composite<Policy>::Seed::Seed(const SmartUtil::tstring& caption, DWORD style, DWORD exStyle) :
+ BaseType::Seed(NULL, style | WS_CLIPCHILDREN, 0, caption),
background(( HBRUSH )( COLOR_APPWORKSPACE + 1 )),
menuName(NULL),
cursor(NULL)
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -18,17 +18,19 @@
typedef Composite<Policies::Normal> BaseType;
struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
Seed();
};
// Use our seed type
- virtual void create( const Seed& cs = Seed() );
+ void create( const Seed& cs = Seed() );
protected:
Container(Widget* parent) : BaseType(parent) { }
};
-inline Container::Seed::Seed() : BaseType::Seed(WS_CHILD | WS_CLIPSIBLINGS) {
+inline Container::Seed::Seed() : BaseType::Seed(NULL, WS_CHILD | WS_CLIPSIBLINGS, 0) {
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -38,26 +38,26 @@
public:
typedef MessageMap<Policy> BaseType;
+protected:
struct Seed : public BaseType::Seed {
- Seed(LPCTSTR className, DWORD style);
+ Seed(LPCTSTR className, DWORD style, DWORD exStyle = 0, const SmartUtil::tstring& caption = SmartUtil::tstring());
};
-protected:
typedef Control<Policy> ControlType;
Control(Widget* parent);
};
+typedef Control<Policies::Subclassed> CommonControl;
+
template<typename Policy>
Control<Policy>::Control(Widget* parent) : MessageMap<Policy>(parent) {
}
-typedef Control<Policies::Subclassed> CommonControl;
-
template<typename Policy>
-Control<Policy>::Seed::Seed(LPCTSTR className, DWORD style) :
- BaseType::Seed(NULL, style | WS_VISIBLE)
+Control<Policy>::Seed::Seed(LPCTSTR className, DWORD style, DWORD exStyle, const SmartUtil::tstring& caption) :
+ BaseType::Seed(NULL, style | WS_VISIBLE, exStyle, caption)
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h 2008-04-07 18:56:50 UTC (rev 1102)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/CoolBar.h 2008-04-07 19:04:50 UTC (rev 1103)
@@ -38,16 +38,6 @@
#include "../aspects/AspectSizable.h"
#include "../aspects/AspectVisible.h"
#include "../xCeption.h"
-#include "Button.h"
-#include "CheckBox.h"
-#include "ComboBox.h"
-#include "DateTime.h"
-#include "GroupBox.h"
-#include "WidgetMenu.h"
-#include "Spinner.h"
-#include "TextBox.h"
-#include "Tree.h"
-#include "RadioButton.h"
namespace SmartWin
{
@@ -66,7 +56,9 @@
* of buttons, one for going "home", one to stop rendering of the current page, one
* to view the log of URL's you have been to etc... In addition to serving like a
* dockable toolbar ( see ToolBar ) a Coolbar Widget can also contain more
- * complex Widgets lke for instance a ComboBox, a TextBox and so on...
+ * complex Widgets lke for instance a ComboBox, a TextBox and so on...
+ *
+ * @todo This class needs some love...
*/
class CoolBar :
public MessageMap< Policies::Subclassed >,
@@ -99,50 +91,21 @@
typedef CoolBar ThisType;
/// Object type
- typedef ThisType * ObjectType;
+ typedef ThisType* ObjectType;
+
+ typedef MessageMap<Policies::Subclassed> BaseType;
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
Seed();
};
- /// ComboBox object type.
- typedef ComboBox::ObjectType ComboBoxPtr;
-
- /// TextBox object type.
- typedef TextBox::ObjectType TextBoxPtr;
-
- /// Button object type.
- typedef Button::ObjectType ButtonPtr;
-
- /// Button object type.
- typedef Tree::ObjectType TreePtr;
-
- /// CheckBox object type.
- typedef CheckBox::ObjectType CheckBoxPtr;
-
- /// Spinner object type.
- typedef Spinner::ObjectType SpinnerPtr;
-
- /// GroupBox object type.
- typedef GroupBox::ObjectType GroupBoxPtr;
-
- /// RadioButton object type.
- typedef RadioButton::ObjectType RadioButtonPtr;
-
- /// DateTimePicker object type.
- typedef DateTime::ObjectType DateTimePtr;
-
- /// Menu object type.
- typedef WidgetMenu::ObjectType WidgetMenuPtr;
-
/// Actually creates the Coolbar
/** You should call WidgetFactory::createCoolbar if you instantiate class
* directly. <br>
@@ -150,55 +113,6 @@
*/
void create( const Seed & cs = Seed() );
- RadioButtonPtr sow( GroupBoxPtr & parent, const RadioButton::Seed & cs )
- {
-#ifdef PORT_ME
- RadioButtonPtr retVal ( WidgetCreator< RadioButton >::create( parent, internal_::getTypedParentOrThrow < EventHandlerClass * >( this ), cs ) );
- retVal->setBounds( 0, 0, cs.location.width(), cs.location.size.y );
- parent->addChild( retVal );
- return retVal;
-#endif
- return NULL;
- }
-
- /// Creates a Widget using its CreationalInfo
- /** Adds up the created widget into a new band in the Coolbar control
- */
- template< class A_Seed >
- typename A_Seed::WidgetType::ObjectType sow( const /*typename*/ A_Seed & cs, const SmartUtil::tstring & label = _T("") )
- {
- typename A_Seed::WidgetType::ObjectType retVal ( WidgetCreator< typename A_Seed::WidgetType >::create( this, cs ) );
- retVal->setBounds( 0, 0, cs.location.width(), cs.location.size.y );
- this->addChild( retVal, cs.location.width(), cs.location.size.y, label );
- return retVal;
- }
-
- //TODO: update this help
- /// Creates a ComboBox Widget inside the Coolbar
- /** The returned ComboBox is roughly the same object type as a "normal"
- * ComboBox, though size and position doesn't count since the Coolbar will
- * control these properties itself. Apart from that the combobox has the same
- * properties as a normal ComboBox. The width and the openedHeight
- * properties is the width of the combobox and the height of the dropped down
- * viewable area of the ComboBox. The bandHeight is the height of the actual
- * band Note that the rect part of the CreationalStruct passed is more or less
- * ignored...
- */
-
- //template< >
- //typename CoolBar< EventHandlerClass >::ComboBoxPtr // Bug in VC++7.1 Koenig Lookup forces us to give full type of return value...
- //sow< typename CoolBar< EventHandlerClass >::ComboBox::Seed >
- // ( const typename CoolBar< EventHandlerClass >::Seed & cs, const SmartUtil::tstring & label = _T("") )
- //{
- // typename CoolBar< EventHandlerClass >::ObjectType retVal (WidgetCreator< typename CoolBar< EventHandlerClass > >::create( this, cs ));
- // retVal->setBounds( 0, 0, cs.rect.width(), cs.rect.size.y );
- // //TODO: use something like cs.itsOpenedHeight
- // this->addChild( retVal, cs.rect.width(), cs.rect.size.y, label );
- // return retVal;
- //}
-
- //TODO: Menu specialization
-
/// Refreshes the Coolbar
/** Call this one after the container widget has been resized to make sure the
* coolbar is having the right size...
@@ -223,8 +137,8 @@
// Implementation of class
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-inline CoolBar::CoolBar( SmartWin::Widget * parent )
- : PolicyType( parent )
+inline CoolBar::CoolBar( ...
[truncated message content] |
|
From: <arn...@us...> - 2008-04-07 19:08:50
|
Revision: 1104
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1104&view=rev
Author: arnetheduck
Date: 2008-04-07 12:08:26 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
use addChild, update&add Seeds
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/source/widgets/CoolBar.cpp
dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp
dcplusplus/trunk/smartwin/source/widgets/Table.cpp
dcplusplus/trunk/win32/ADLSearchFrame.cpp
dcplusplus/trunk/win32/AspectStatus.h
dcplusplus/trunk/win32/ComboBox.cpp
dcplusplus/trunk/win32/ComboBox.h
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/FavHubsFrame.cpp
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/NotepadFrame.cpp
dcplusplus/trunk/win32/PrivateFrame.cpp
dcplusplus/trunk/win32/PublicHubsFrame.cpp
dcplusplus/trunk/win32/QueueFrame.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/SettingsDialog.h
dcplusplus/trunk/win32/SplashWindow.cpp
dcplusplus/trunk/win32/SpyFrame.cpp
dcplusplus/trunk/win32/SystemFrame.cpp
dcplusplus/trunk/win32/TextBox.cpp
dcplusplus/trunk/win32/TextBox.h
dcplusplus/trunk/win32/TextFrame.cpp
dcplusplus/trunk/win32/TransferView.cpp
dcplusplus/trunk/win32/WinUtil.cpp
dcplusplus/trunk/win32/WinUtil.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-04-01 00:06:48.601000071 +0200
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-04-01 10:10:01.834000111 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -38,6 +38,8 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef CommonControl BaseType;
+
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
@@ -54,6 +56,7 @@
template<typename SeedType>
void create(const SeedType& cs = SeedType());
+
protected:
typedef Button ButtonType;
@@ -76,7 +79,7 @@
return Message( WM_COMMAND, MAKEWPARAM(0, BN_DBLCLK) );
}
-inline Button::Button(Widget* parent) : ControlType(parent) {
+inline Button::Button(Widget* parent) : BaseType(parent) {
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Frame.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -147,7 +147,7 @@
template<typename Policy>
Frame<Policy>::Seed::Seed(const SmartUtil::tstring& caption, DWORD style, DWORD exStyle) :
- BaseType::Seed(caption, WS_OVERLAPPEDWINDOW, exStyle)
+ BaseType::Seed(caption, style | WS_OVERLAPPEDWINDOW, exStyle)
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/StatusBar.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -122,19 +122,20 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef CommonControl BaseType;
+
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
FontPtr font;
/// Fills with default parameters
- explicit Seed();
+ explicit Seed(bool sizeGrip = true);
};
/// Refreshes the status bar, must be called after main window has been resized
@@ -175,8 +176,10 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template< class TypeOfStatusBar >
-StatusBar< TypeOfStatusBar >::Seed::Seed() : Widget::Seed(STATUSCLASSNAME, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP | WS_CLIPSIBLINGS) {
-
+StatusBar< TypeOfStatusBar >::Seed::Seed(bool sizeGrip) : BaseType::Seed(STATUSCLASSNAME, WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS) {
+ if(sizeGrip) {
+ style |= SBARS_SIZEGRIP;
+ }
}
inline void Section::setSections( const std::vector< unsigned > & width )
@@ -235,14 +238,14 @@
template< class TypeOfStatusBar >
StatusBar< TypeOfStatusBar >::StatusBar( SmartWin::Widget * parent )
- : ControlType( parent )
+ : BaseType( parent )
{
}
template< class TypeOfStatusBar >
void StatusBar< TypeOfStatusBar >::create( const Seed & cs )
{
- ControlType::create(cs);
+ BaseType::create(cs);
if(cs.font)
setFont( cs.font );
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -116,15 +116,17 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef CommonControl BaseType;
+
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
+ struct Seed : public BaseType::Seed {
public:
+ typedef ThisType WidgetType;
+
FontPtr font;
/// Fills with default parameters
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Table.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -108,6 +108,8 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef CommonControl BaseType;
+
typedef std::tr1::function<int (LPARAM a, LPARAM b)> SortFunction;
/// Seed class
@@ -115,10 +117,9 @@
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
FontPtr font;
/// List view extended styles (LVS_EX_*)
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -56,7 +56,7 @@
titleChangedFunction = f;
}
- void onTabContextMenu(Container* w, const std::tr1::function<bool (const ScreenCoordinate& pt)>& f);
+ void onTabContextMenu(Container* w, const ContextMenuFunction& f);
void onHelp(const HelpFunction& f) {
helpFunction = f;
Modified: dcplusplus/trunk/smartwin/source/widgets/CoolBar.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/CoolBar.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/source/widgets/CoolBar.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -5,7 +5,7 @@
namespace SmartWin {
CoolBar::Seed::Seed() :
- Widget::Seed(REBARCLASSNAME, WS_CHILD | WS_VISIBLE | RBS_VARHEIGHT | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | CCS_NODIVIDER)
+ BaseType::Seed(REBARCLASSNAME, WS_CHILD | WS_VISIBLE | RBS_VARHEIGHT | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | CCS_NODIVIDER)
{
}
Modified: dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -3,7 +3,7 @@
namespace SmartWin {
TabSheet::Seed::Seed() :
- Widget::Seed(WC_TABCONTROL, WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN),
+ BaseType::Seed(WC_TABCONTROL, WS_CHILD | WS_TABSTOP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN),
font(new Font(DefaultGuiFont))
{
}
Modified: dcplusplus/trunk/smartwin/source/widgets/Table.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/Table.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/smartwin/source/widgets/Table.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -11,7 +11,7 @@
bool Table::ComCtl6 = false;
Table::Seed::Seed() :
- Widget::Seed(WC_LISTVIEW, WS_CHILD | WS_VISIBLE | WS_TABSTOP | LVS_REPORT | LVS_EDITLABELS),
+ BaseType::Seed(WC_LISTVIEW, WS_CHILD | WS_TABSTOP | LVS_REPORT | LVS_EDITLABELS),
font(new Font(DefaultGuiFont)),
lvStyle(0)
{
@@ -37,7 +37,7 @@
}
Table::Table( SmartWin::Widget * parent )
- : ControlType( parent ),
+ : BaseType( parent ),
itsEditRow(0),
itsEditColumn(0),
itsXMousePosition(0),
Modified: dcplusplus/trunk/win32/ADLSearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/ADLSearchFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/ADLSearchFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -48,7 +48,7 @@
{
Table::Seed cs = WinUtil::Seeds::Table;
cs.lvStyle |= LVS_EX_CHECKBOXES;
- items = createTable(cs);
+ items = addChild(cs);
addWidget(items);
items->createColumns(WinUtil::getStrings(columnNames));
@@ -65,37 +65,37 @@
Button::Seed cs = WinUtil::Seeds::button;
cs.caption = T_("&New...");
- add = createButton(cs);
+ add = addChild(cs);
add->setHelpId(IDH_ADLS_NEW);
add->onClicked(std::tr1::bind(&ADLSearchFrame::handleAdd, this));
addWidget(add);
cs.caption = T_("&Properties");
- properties = createButton(cs);
+ properties = addChild(cs);
properties->setHelpId(IDH_ADLS_PROPERTIES);
properties->onClicked(std::tr1::bind(&ADLSearchFrame::handleProperties, this));
addWidget(properties);
cs.caption = T_("Move &Up");
- up = createButton(cs);
+ up = addChild(cs);
up->setHelpId(IDH_ADLS_MOVE_UP);
up->onClicked(std::tr1::bind(&ADLSearchFrame::handleUp, this));
addWidget(up);
cs.caption = T_("Move &Down");
- down = createButton(cs);
+ down = addChild(cs);
down->setHelpId(IDH_ADLS_MOVE_DOWN);
down->onClicked(std::tr1::bind(&ADLSearchFrame::handleDown, this));
addWidget(down);
cs.caption = T_("&Remove");
- remove = createButton(cs);
+ remove = addChild(cs);
remove->setHelpId(IDH_ADLS_REMOVE);
remove->onClicked(std::tr1::bind(&ADLSearchFrame::handleRemove, this));
addWidget(remove);
cs.caption = T_("&Help");
- help = createButton(cs);
+ help = addChild(cs);
help->setHelpId(IDH_DCPP_HELP);
help->onClicked(std::tr1::bind(&WinUtil::help, handle(), IDH_ADL_SEARCH));
addWidget(help);
Modified: dcplusplus/trunk/win32/AspectStatus.h
===================================================================
--- dcplusplus/trunk/win32/AspectStatus.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/AspectStatus.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -36,12 +36,7 @@
}
void initStatus(bool sizeGrip = false) {
- StatusBarSections::Seed cs;
- cs.style = WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
- if(sizeGrip) {
- cs.style |= SBARS_SIZEGRIP;
- }
- status = static_cast<WidgetType*>(this)->createStatusBarSections(cs);
+ status = static_cast<WidgetType*>(this)->addChild(StatusBarSections::Seed(sizeGrip));
statusTip = static_cast<WidgetType*>(this)->createToolTip();
statusTip->setTool(status, std::tr1::bind(&ThisType::handleToolTip, this));
Modified: dcplusplus/trunk/win32/ComboBox.cpp
===================================================================
--- dcplusplus/trunk/win32/ComboBox.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/ComboBox.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -20,6 +20,11 @@
#include "ComboBox.h"
+ComboBox::Seed::Seed() :
+ BaseType::Seed()
+{
+}
+
ComboBox::ComboBox( SmartWin::Widget * parent ) : BaseType(parent), textBox(0) {
}
Modified: dcplusplus/trunk/win32/ComboBox.h
===================================================================
--- dcplusplus/trunk/win32/ComboBox.h 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/ComboBox.h 2008-04-07 19:08:26 UTC (rev 1104)
@@ -22,13 +22,19 @@
#include "TextBox.h"
class ComboBox : public SmartWin::ComboBox {
-private:
typedef SmartWin::ComboBox BaseType;
+
public:
typedef ComboBox ThisType;
typedef ThisType* ObjectType;
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
+ Seed();
+ };
+
explicit ComboBox( SmartWin::Widget * parent );
typedef TextBox::ObjectType TextBoxPtr;
Modified: dcplusplus/trunk/win32/DirectoryListingFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -158,22 +158,22 @@
Button::Seed cs = WinUtil::Seeds::button;
cs.caption = T_("Subtract list");
- listDiff = createButton(cs);
+ listDiff = addChild(cs);
listDiff->setHelpId(IDH_FILE_LIST_SUBSTRACT);
listDiff->onClicked(std::tr1::bind(&DirectoryListingFrame::handleListDiff, this));
cs.caption = T_("Match queue");
- matchQueue = createButton(cs);
+ matchQueue = addChild(cs);
matchQueue->setHelpId(IDH_FILE_LIST_MATCH_QUEUE);
matchQueue->onClicked(std::tr1::bind(&DirectoryListingFrame::handleMatchQueue, this));
cs.caption = T_("Find");
- find = createButton(cs);
+ find = addChild(cs);
find->setHelpId(IDH_FILE_LIST_FIND);
find->onClicked(std::tr1::bind(&DirectoryListingFrame::handleFind, this));
cs.caption = T_("Next");
- findNext = createButton(cs);
+ findNext = addChild(cs);
findNext->setHelpId(IDH_FILE_LIST_NEXT);
findNext->onClicked(std::tr1::bind(&DirectoryListingFrame::handleFindNext, this));
}
Modified: dcplusplus/trunk/win32/FavHubsFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/FavHubsFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/FavHubsFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -52,7 +52,7 @@
Table::Seed cs = WinUtil::Seeds::Table;
cs.style |= LVS_NOSORTHEADER;
cs.lvStyle |= LVS_EX_CHECKBOXES;
- hubs = createTable(cs);
+ hubs = addChild(cs);
addWidget(hubs);
hubs->createColumns(WinUtil::getStrings(columnNames));
@@ -69,37 +69,37 @@
Button::Seed cs = WinUtil::Seeds::button;
cs.caption = T_("&Connect");
- connect = createButton(cs);
+ connect = addChild(cs);
connect->setHelpId(IDH_FAVORITE_HUBS_CONNECT);
connect->onClicked(std::tr1::bind(&FavHubsFrame::openSelected, this));
addWidget(connect);
cs.caption = T_("&New...");
- add = createButton(cs);
+ add = addChild(cs);
add->setHelpId(IDH_FAVORITE_HUBS_NEW);
add->onClicked(std::tr1::bind(&FavHubsFrame::handleAdd, this));
addWidget(add);
cs.caption = T_("&Properties");
- properties = createButton(cs);
+ properties = addChild(cs);
properties->setHelpId(IDH_FAVORITE_HUBS_PROPERTIES);
properties->onClicked(std::tr1::bind(&FavHubsFrame::handleProperties, this));
addWidget(properties);
cs.caption = T_("Move &Up");
- up = createButton(cs);
+ up = addChild(cs);
up->setHelpId(IDH_FAVORITE_HUBS_MOVE_UP);
up->onClicked(std::tr1::bind(&FavHubsFrame::handleUp, this));
addWidget(up);
cs.caption = T_("Move &Down");
- down = createButton(cs);
+ down = addChild(cs);
down->setHelpId(IDH_FAVORITE_HUBS_MOVE_DOWN);
down->onClicked(std::tr1::bind(&FavHubsFrame::handleDown, this));
addWidget(down);
cs.caption = T_("&Remove");
- remove = createButton(cs);
+ remove = addChild(cs);
remove->setHelpId(IDH_FAVORITE_HUBS_REMOVE);
remove->onClicked(std::tr1::bind(&FavHubsFrame::handleRemove, this));
addWidget(remove);
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -94,7 +94,7 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE;
- message = createTextBox(cs);
+ message = addChild(cs);
message->setHelpId(IDH_HUB_MESSAGE);
addWidget(message, true, false);
message->onRaw(std::tr1::bind(&HubFrame::handleMessageGetDlgCode, this), SmartWin::Message(WM_GETDLGCODE));
@@ -106,14 +106,14 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL;
- filter = createTextBox(cs);
+ filter = addChild(cs);
filter->setHelpId(IDH_HUB_FILTER);
addWidget(filter);
filter->onKeyUp(std::tr1::bind(&HubFrame::handleFilterKey, this, _1));
}
{
- filterType = createComboBox(WinUtil::Seeds::comboBoxStatic);
+ filterType = addChild(WinUtil::Seeds::comboBoxStatic);
filterType->setHelpId(IDH_HUB_FILTER);
addWidget(filterType);
@@ -128,7 +128,7 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_READONLY;
- chat = createTextBox(cs);
+ chat = addChild(cs);
chat->setHelpId(IDH_HUB_CHAT);
chat->setTextLimit(0);
addWidget(chat);
@@ -156,7 +156,7 @@
{
CheckBox::Seed cs(_T("+/-"));
cs.style &= ~WS_TABSTOP;
- showUsers = createCheckBox(cs);
+ showUsers = addChild(cs);
showUsers->setChecked(BOOLSETTING(GET_USER_INFO));
}
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -161,8 +161,7 @@
cs.location = SmartWin::Rectangle(pos_x, pos_y, size_x, size_y);
}
- cs.style = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN;
- cs.exStyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE;
+ cs.exStyle |= WS_EX_APPWINDOW;
if (ResourceManager::getInstance()->isRTL())
cs.exStyle |= WS_EX_RTLREADING;
Modified: dcplusplus/trunk/win32/NotepadFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/NotepadFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/NotepadFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -30,7 +30,7 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | ES_NOHIDESEL | ES_WANTRETURN;
- pad = createTextBox(cs);
+ pad = addChild(cs);
addWidget(pad);
}
Modified: dcplusplus/trunk/win32/PrivateFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/PrivateFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/PrivateFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -100,7 +100,7 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE;
- message = createTextBox(cs);
+ message = addChild(cs);
message->setHelpId(IDH_PM_MESSAGE);
addWidget(message, true);
message->onKeyDown(std::tr1::bind(&PrivateFrame::handleKeyDown, this, _1));
@@ -110,7 +110,7 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_READONLY;
- chat = createTextBox(cs);
+ chat = addChild(cs);
chat->setHelpId(IDH_PM_CHAT);
chat->setTextLimit(0);
addWidget(chat);
Modified: dcplusplus/trunk/win32/PublicHubsFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/PublicHubsFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/PublicHubsFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -121,14 +121,14 @@
{
TextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL;
- filter = createTextBox(cs);
+ filter = addChild(cs);
filter->setHelpId(IDH_PUBLIC_HUBS_FILTER);
addWidget(filter);
filter->onKeyDown(std::tr1::bind(&PublicHubsFrame::handleFilterKeyDown, this, _1));
}
{
- filterSel = createComboBox(WinUtil::Seeds::comboBoxStatic);
+ filterSel = addChild(WinUtil::Seeds::comboBoxStatic);
filterSel->setHelpId(IDH_PUBLIC_HUBS_FILTER);
addWidget(filterSel);
@@ -140,7 +140,7 @@
filterSel->setSelected(COLUMN_LAST);
filterSel->onSelectionChanged(std::tr1::bind(&PublicHubsFrame::updateList, this));
- pubLists = createComboBox(WinUtil::Seeds::comboBoxStatic);
+ pubLists = addChild(WinUtil::Seeds::comboBoxStatic);
pubLists->setHelpId(IDH_PUBLIC_HUBS_LISTS);
addWidget(pubLists);
pubLists->onSelectionChanged(std::tr1::bind(&PublicHubsFrame::handleListSelChanged, this));
@@ -150,14 +150,14 @@
Button::Seed cs = WinUtil::Seeds::button;
cs.caption = T_("&Configure");
- configure = createButton(cs);
+ configure = addChild(cs);
configure->setHelpId(IDH_PUBLIC_HUBS_LISTS);
configure->setFont(WinUtil::font);
addWidget(configure);
configure->onClicked(std::tr1::bind(&PublicHubsFrame::handleConfigure, this));
cs.caption = T_("&Refresh");
- refresh = createButton(cs);
+ refresh = addChild(cs);
refresh->setHelpId(IDH_PUBLIC_HUBS_REFRESH);
refresh->setFont(WinUtil::font);
addWidget(refresh);
@@ -167,12 +167,12 @@
cs.exStyle = WS_EX_TRANSPARENT;
cs.caption = T_("F&ilter");
- filterDesc = createButton(cs);
+ filterDesc = addChild(cs);
filterDesc->setHelpId(IDH_PUBLIC_HUBS_FILTER);
filterDesc->setFont(WinUtil::font);
cs.caption = T_("Configured Public Hub Lists");
- lists = createButton(cs);
+ lists = addChild(cs);
lists->setHelpId(IDH_PUBLIC_HUBS_LISTS);
lists->setFont(WinUtil::font);
}
Modified: dcplusplus/trunk/win32/QueueFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/QueueFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/QueueFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -98,7 +98,7 @@
{
CheckBox::Seed cs;
cs.caption = _T("+/-");
- showTree = createCheckBox(cs);
+ showTree = addChild(cs);
showTree->setChecked(BOOLSETTING(QUEUEFRAME_SHOW_TREE));
showTree->onClicked(std::tr1::bind(&QueueFrame::handleShowTreeClicked, this));
}
Modified: dcplusplus/trunk/win32/SearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 19:04:50 UTC (rev 1103)
+++ dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 19:08:26 UTC (rev 1104)
@@ -117,23 +117,23 @@
searchLabel->setHelpId(IDH_SEARCH_SEARCH_FOR);
cs.caption = T_("Size");
- sizeLabel = createLabel(cs);
+ sizeLabel = addChild(cs);
sizeLabel->setHelpId(IDH...
[truncated message content] |
|
From: <arn...@us...> - 2008-04-07 19:10:29
|
Revision: 1105
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1105&view=rev
Author: arnetheduck
Date: 2008-04-07 12:09:37 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
Fixed file list refresh happenning 1 minute later than expected
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/ShareManager.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-04-01 10:10:01.834000111 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-04-01 10:12:47.505000114 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-04-07 19:08:26 UTC (rev 1104)
+++ dcplusplus/trunk/changelog.txt 2008-04-07 19:09:37 UTC (rev 1105)
@@ -18,6 +18,7 @@
* [L#208684] Made the Alt key work again for line history in hub window (poy)
* [L#209684] Fixed parsing of non-XML hub lists (poy)
* [L#205660] Readded hub column to transfers (thanks mikejj)
+* Fixed file list refresh happenning 1 minute later than expected (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/dcpp/ShareManager.cpp
===================================================================
--- dcplusplus/trunk/dcpp/ShareManager.cpp 2008-04-07 19:08:26 UTC (rev 1104)
+++ dcplusplus/trunk/dcpp/ShareManager.cpp 2008-04-07 19:09:37 UTC (rev 1105)
@@ -1401,7 +1401,7 @@
void ShareManager::on(TimerManagerListener::Minute, uint32_t tick) throw() {
if(SETTING(AUTO_REFRESH_TIME) > 0) {
- if(lastFullUpdate + SETTING(AUTO_REFRESH_TIME) * 60 * 1000 < tick) {
+ if(lastFullUpdate + SETTING(AUTO_REFRESH_TIME) * 60 * 1000 <= tick) {
refresh(true, true);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 19:12:36
|
Revision: 1106
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1106&view=rev
Author: arnetheduck
Date: 2008-04-07 12:11:56 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
update TabView's Seed
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
dcplusplus/trunk/win32/MainWindow.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-04-01 10:12:47.505000114 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-04-01 10:41:17.615000010 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
1081 zouzou123gen-20080401084117-24a454g8o0x656kg
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 19:09:37 UTC (rev 1105)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabView.h 2008-04-07 19:11:56 UTC (rev 1106)
@@ -29,14 +29,15 @@
/// Object type
typedef ThisType * ObjectType;
- typedef MessageMap<Policies::Normal> PolicyType;
+ typedef MessageMap<Policies::Normal> BaseType;
- class Seed : public Widget::Seed {
- public:
- /// Fills with default parameters
- Seed();
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
bool toggleActive;
+
+ /// Fills with default parameters
+ Seed(bool toggleActive_ = false);
};
void add(Container* w, const IconPtr& icon);
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-04-07 19:09:37 UTC (rev 1105)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-04-07 19:11:56 UTC (rev 1106)
@@ -5,14 +5,14 @@
WindowClass WidgetTabView::windowClass(_T("WidgetTabView"), &WidgetTabView::wndProc, NULL, ( HBRUSH )( COLOR_WINDOW + 1 ));
-WidgetTabView::Seed::Seed() :
- Widget::Seed(windowClass.getClassName(), WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE),
- toggleActive(false)
+WidgetTabView::Seed::Seed(bool toggleActive_) :
+ BaseType::Seed(windowClass.getClassName(), WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE),
+ toggleActive(toggleActive_)
{
}
WidgetTabView::WidgetTabView(Widget* w) :
- PolicyType(w),
+ BaseType(w),
tab(0),
tip(0),
toggleActive(false),
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:09:37 UTC (rev 1105)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:11:56 UTC (rev 1106)
@@ -261,6 +261,8 @@
}
void MainWindow::initToolbar() {
+ dcdebug("initToolbar\n");
+
ToolBar::Seed cs;
cs.style |= TBSTYLE_FLAT;
toolbar = createToolbar(cs);
@@ -314,10 +316,8 @@
}
void MainWindow::initTabs() {
- WidgetTabView::Seed cs;
- cs.style = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE;
- cs.toggleActive = BOOLSETTING(TOGGLE_ACTIVE_WINDOW);
- tabs = createTabView(cs);
+ dcdebug("initTabs\n");
+ tabs = addChild(WidgetTabView::Seed(BOOLSETTING(TOGGLE_ACTIVE_WINDOW)));
tabs->onTitleChanged(std::tr1::bind(&MainWindow::handleTabsTitleChanged, this, _1));
tabs->onHelp(std::tr1::bind(&WinUtil::help, _1, _2));
paned->setFirst(tabs);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 19:15:06
|
Revision: 1107
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1107&view=rev
Author: arnetheduck
Date: 2008-04-07 12:14:27 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
more Seed updates, no ::CreateWindowEx error anymore
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolTip.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h
dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp
dcplusplus/trunk/smartwin/source/widgets/ToolTip.cpp
dcplusplus/trunk/smartwin/source/widgets/Window.cpp
dcplusplus/trunk/win32/AspectStatus.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/WidgetPaned.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-04-01 10:41:17.615000010 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-04-01 15:31:46.911999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
1081 zouzou123gen-20080401084117-24a454g8o0x656kg
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
1081 zouzou123gen-20080401084117-24a454g8o0x656kg
1082 zouzou123gen-20080401133146-jabb5i8870fg6f66
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -57,7 +57,7 @@
template<typename Policy>
Control<Policy>::Seed::Seed(LPCTSTR className, DWORD style, DWORD exStyle, const SmartUtil::tstring& caption) :
- BaseType::Seed(NULL, style | WS_VISIBLE, exStyle, caption)
+ BaseType::Seed(className, style | WS_VISIBLE, exStyle, caption)
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolBar.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -59,15 +59,13 @@
* to view the log of URL's you have been to etc...
*/
class ToolBar :
-public CommonControl,
+ public CommonControl,
// Aspects
public AspectFocus< ToolBar >,
public AspectFont< ToolBar >
{
typedef Dispatchers::VoidVoid<> Dispatcher;
- typedef SmartWin::AspectSizable< ToolBar > AspectSizable;
friend class WidgetCreator< ToolBar >;
- friend class SmartWin::AspectSizable<ToolBar>;
public:
/// Class type
typedef ToolBar ThisType;
@@ -75,15 +73,16 @@
/// Object type
typedef ThisType* ObjectType;
+ typedef CommonControl BaseType;
+
/// Seed class
/** This class contains all of the values needed to create the widget. It also
* knows the type of the class whose seed values it contains. Every widget
* should define one of these.
*/
- class Seed
- : public Widget::Seed
- {
- public:
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
/// Fills with default parameters
Seed();
};
@@ -293,7 +292,7 @@
}
inline ToolBar::ToolBar( SmartWin::Widget * parent )
- : ControlType( parent )
+ : BaseType( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolTip.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolTip.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/ToolTip.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -46,10 +46,11 @@
/// Object type
typedef ThisType * ObjectType;
- class Seed
- : public Widget::Seed
- {
- public:
+ typedef MessageMap< Policies::Subclassed > BaseType;
+
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
/// Fills with default parameters
Seed();
};
@@ -78,7 +79,7 @@
};
inline ToolTip::ToolTip( Widget * parent )
- : PolicyType( parent )
+ : BaseType( parent )
{
// Can't have a text box without a parent...
xAssert( parent, _T( "Can't have a ToolTip without a parent..." ) );
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Window.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -85,11 +85,10 @@
* should define one of these.
*/
struct Seed : public BaseType::Seed {
- public:
- typedef Window::ThisType WidgetType;
+ typedef ThisType WidgetType;
/// Fills with default parameters
- Seed();
+ Seed(const SmartUtil::tstring& caption = SmartUtil::tstring());
};
/// Actually creates the window
@@ -99,7 +98,7 @@
* The simple version "create()" uses a default Seed for the window attributes.
* The seed is not taken a constant because the class name will be generated at registration.
*/
- virtual void create( const Seed& cs = Seed() );
+ void create( const Seed& cs = Seed() );
// TODO: Check up if the CREATESTRUCT * actualy IS modyfiable...!!
/// Setting the event handler for the "create" event
Modified: dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/source/widgets/ToolBar.cpp 2008-04-07 19:14:27 UTC (rev 1107)
@@ -3,13 +3,13 @@
namespace SmartWin {
ToolBar::Seed::Seed() :
- Widget::Seed(TOOLBARCLASSNAME, WS_CHILD | WS_VISIBLE | TBSTYLE_LIST | TBSTYLE_TOOLTIPS)
+ BaseType::Seed(TOOLBARCLASSNAME, WS_CHILD | TBSTYLE_LIST | TBSTYLE_TOOLTIPS)
{
}
void ToolBar::create( const Seed & cs )
{
- ControlType::create(cs);
+ BaseType::create(cs);
this->sendMessage(TB_SETEXTENDEDSTYLE, 0, TBSTYLE_EX_MIXEDBUTTONS);
Modified: dcplusplus/trunk/smartwin/source/widgets/ToolTip.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/ToolTip.cpp 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/source/widgets/ToolTip.cpp 2008-04-07 19:14:27 UTC (rev 1107)
@@ -3,7 +3,7 @@
namespace SmartWin {
ToolTip::Seed::Seed() :
- Widget::Seed(TOOLTIPS_CLASS, WS_POPUP | TTS_ALWAYSTIP | TTS_NOPREFIX, WS_EX_TRANSPARENT)
+ BaseType::Seed(TOOLTIPS_CLASS, WS_POPUP | TTS_ALWAYSTIP | TTS_NOPREFIX, WS_EX_TRANSPARENT)
{
}
@@ -11,7 +11,7 @@
{
xAssert((cs.style & WS_POPUP) == WS_POPUP, _T("Widget must have WS_POPUP style"));
- PolicyType::create(cs);
+ BaseType::create(cs);
}
void ToolTip::relayEvent(const MSG& msg) {
Modified: dcplusplus/trunk/smartwin/source/widgets/Window.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/Window.cpp 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/smartwin/source/widgets/Window.cpp 2008-04-07 19:14:27 UTC (rev 1107)
@@ -2,9 +2,7 @@
namespace SmartWin {
-// TODO add caption
-Window::Seed::Seed() : BaseType::Seed(SmartUtil::tstring(), 0, 0) {
-
+Window::Seed::Seed(const SmartUtil::tstring& caption) : BaseType::Seed(caption, 0, 0) {
}
void Window::create(const Seed& cs) {
Modified: dcplusplus/trunk/win32/AspectStatus.h
===================================================================
--- dcplusplus/trunk/win32/AspectStatus.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/win32/AspectStatus.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -38,7 +38,7 @@
void initStatus(bool sizeGrip = false) {
status = static_cast<WidgetType*>(this)->addChild(StatusBarSections::Seed(sizeGrip));
- statusTip = static_cast<WidgetType*>(this)->createToolTip();
+ statusTip = static_cast<WidgetType*>(this)->addChild(SmartWin::ToolTip::Seed());
statusTip->setTool(status, std::tr1::bind(&ThisType::handleToolTip, this));
}
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-04-07 19:14:27 UTC (rev 1107)
@@ -145,16 +145,15 @@
}
void MainWindow::initWindow() {
-
// Create main window
dcdebug("initWindow\n");
- Seed cs;
- int pos_x= SETTING(MAIN_WINDOW_POS_X);
- int pos_y= SETTING(MAIN_WINDOW_POS_Y);
- int size_x= SETTING(MAIN_WINDOW_SIZE_X);
- int size_y= SETTING(MAIN_WINDOW_SIZE_Y);
+ Seed cs(_T(APPNAME) _T(" ") _T(VERSIONSTRING));
+ int pos_x = SETTING(MAIN_WINDOW_POS_X);
+ int pos_y = SETTING(MAIN_WINDOW_POS_Y);
+ int size_x = SETTING(MAIN_WINDOW_SIZE_X);
+ int size_y = SETTING(MAIN_WINDOW_SIZE_Y);
if ( (pos_x != static_cast<int>(CW_USEDEFAULT)) &&(pos_y != static_cast<int>(CW_USEDEFAULT))&&(size_x
!= static_cast<int>(CW_USEDEFAULT))&&(size_y != static_cast<int>(CW_USEDEFAULT))&&(pos_x > 0&& pos_y > 0)
&&(size_x > 10&& size_y > 10)) {
@@ -165,15 +164,13 @@
if (ResourceManager::getInstance()->isRTL())
cs.exStyle |= WS_EX_RTLREADING;
- // Set window name
- cs.caption = _T(APPNAME) _T(" ") _T(VERSIONSTRING);
cs.icon = SmartWin::IconPtr(new SmartWin::Icon(IDR_MAINFRAME));
cs.background = (HBRUSH)(COLOR_3DFACE + 1);
create(cs);
setHelpId(IDH_STARTPAGE);
- paned = createHPaned();
+ paned = addChild(WidgetHPaned::Seed());
paned->setRelativePos(0.7);
}
@@ -265,7 +262,7 @@
ToolBar::Seed cs;
cs.style |= TBSTYLE_FLAT;
- toolbar = createToolbar(cs);
+ toolbar = addChild(cs);
{
SmartWin::ImageListPtr list(new SmartWin::ImageList(20, 20, ILC_COLOR32 | ILC_MASK));
SmartWin::Bitmap bmp(IDB_TOOLBAR20);
Modified: dcplusplus/trunk/win32/WidgetPaned.h
===================================================================
--- dcplusplus/trunk/win32/WidgetPaned.h 2008-04-07 19:11:56 UTC (rev 1106)
+++ dcplusplus/trunk/win32/WidgetPaned.h 2008-04-07 19:14:27 UTC (rev 1107)
@@ -34,15 +34,14 @@
/// Class type
typedef WidgetPaned< horizontal > ThisType;
- typedef SmartWin::MessageMap< SmartWin::Policies::Normal > PolicyType;
-
/// Object type
typedef ThisType * ObjectType;
- class Seed
- : public Widget::Seed
- {
- public:
+ typedef SmartWin::MessageMap< SmartWin::Policies::Normal > BaseType;
+
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
explicit Seed();
};
@@ -123,13 +122,13 @@
SmartWin::IconPtr(), SmartWin::IconPtr(), LoadCursor( 0, horizontal ? IDC_SIZENS : IDC_SIZEWE ));
template< bool horizontal >
-WidgetPaned< horizontal >::Seed::Seed() : SmartWin::Widget::Seed(windowClass.getClassName(), WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS)
+WidgetPaned< horizontal >::Seed::Seed() : BaseType::Seed(windowClass.getClassName(), WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS)
{
}
template< bool horizontal >
WidgetPaned< horizontal >::WidgetPaned( SmartWin::Widget * parent )
- : PolicyType( parent )
+ : BaseType( parent )
, pos(0.5)
, moving(false)
{
@@ -139,7 +138,7 @@
template< bool horizontal >
void WidgetPaned< horizontal >::create( const Seed & cs )
{
- PolicyType::create(cs);
+ BaseType::create(cs);
onLeftMouseDown(std::tr1::bind(&ThisType::handleLButtonDown, this, _1));
onMouseMove(std::tr1::bind(&ThisType::handleMouseMove, this, _1));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-04-07 19:18:25
|
Revision: 1108
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1108&view=rev
Author: arnetheduck
Date: 2008-04-07 12:17:43 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
fix errors, more addChild&Seed stuff; now compiles and runs
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/FinishedFrameBase.h
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/PublicHubsFrame.cpp
dcplusplus/trunk/win32/QueueFrame.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/TransferView.cpp
dcplusplus/trunk/win32/TypedTable.h
dcplusplus/trunk/win32/TypedTree.h
dcplusplus/trunk/win32/UsersFrame.cpp
dcplusplus/trunk/win32/WidgetPaned.h
dcplusplus/trunk/win32/WinUtil.cpp
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-04-01 15:31:46.911999941 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-04-01 17:46:10.145999908 +0200
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
1081 zouzou123gen-20080401084117-24a454g8o0x656kg
1082 zouzou123gen-20080401133146-jabb5i8870fg6f66
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
1033 arn...@gm...-20080324153823-lhn3awurnu77riln
1034 arn...@gm...-20080324165650-zapppziji67yf5a2
1035 zouzou123gen-20080324175936-4mqc2kh0lo5wtdu2
1036 zouzou123gen-20080325004602-6wdsoym95mjuhwd3
1037 arn...@gm...-20080325100659-8fqy6q65itmghlep
1038 zouzou123gen-20080325175216-s297sdiucukfvijh
1039 arn...@gm...-20080325210137-3dfqyoi8ykosy087
1040 arn...@gm...-20080325211747-nwwy1eb33r071sca
1041 arn...@gm...-20080326084110-qbselrjckku275xi
1042 zouzou123gen-20080326123631-35642mgbk2i4ty32
1043 zouzou123gen-20080326124345-f4xwn2d3ty8ubd6r
1044 arn...@gm...-20080326162031-il0nyms30w0mky43
1045 arn...@gm...-20080326164801-8dru8mjc06xgzjpv
1046 arn...@gm...-20080326170438-uzl2rx8fqnohak7g
1047 zouzou123gen-20080326172821-d6uqcbmfb0c6rwlv
1048 arn...@gm...-20080326213257-qlgdh7m2712p2l0q
1049 arn...@gm...-20080326214313-ktnoekgk3s0wmatz
1050 arn...@gm...-20080326215256-0j1iqrf286b9g7zf
1051 arn...@gm...-20080327082121-hoi22wh1gwjdfbyd
1052 arn...@gm...-20080327120639-um3tukdt374rwvgm
1053 zouzou123gen-20080327130703-6vtek6uxy3vua543
1054 arn...@gm...-20080327215831-dmg5mkufskabwkro
1055 arn...@gm...-20080327231459-cdztcv25alsuyqmf
1056 arn...@gm...-20080328085925-gceybsr53oml1p24
1057 arn...@gm...-20080328200512-1sjuu6bcnl2dyd2a
1058 arn...@gm...-20080328210347-bussqjrm5mfswh7o
1059 arn...@gm...-20080329055630-braiir1dskv7a4qm
1060 arn...@gm...-20080329061558-rck8dz60wpj3c5ja
1061 arn...@gm...-20080329081253-if6o5jn329mbzfpl
1062 arn...@gm...-20080329081619-cb4x930j8sp55cs0
1063 arn...@gm...-20080329103216-hgjzo7ra2zixbztd
1064 arn...@gm...-20080329124042-q3aw4iodmo5kafyp
1065 arn...@gm...-20080329124926-2je1z18p0272zpua
1066 arn...@gm...-20080329150901-ehj9t32en7eps2dp
1067 zouzou123gen-20080329153653-36xlvpik2ns9r84r
1068 zouzou123gen-20080329162703-51xr8hg073pg7wq5
1069 zouzou123gen-20080329234706-8ddipdqu0xeudkql
1070 arn...@gm...-20080330081232-ubqr1171ewalrd4q
1071 zouzou123gen-20080330131607-yppbs3mgyjef1cux
1072 zouzou123gen-20080330134835-yv1nogy77ib1uehd
1073 zouzou123gen-20080331124549-alyw7vugdn30piqy
1074 zouzou123gen-20080331135108-q8frtqsin5bosfzm
1075 zouzou123gen-20080331140757-u94q52yccl5lsifk
1076 zouzou123gen-20080331152513-ue1x5qhigcw51348
1077 arn...@gm...-20080331184436-a8g6chibmg8nswls
1078 arn...@gm...-20080331220648-81485k28qmwruwz6
1079 zouzou123gen-20080401081001-2yjn07cf8s5sxr3a
1080 zouzou123gen-20080401081247-f3p4hdjojnd460jw
1081 zouzou123gen-20080401084117-24a454g8o0x656kg
1082 zouzou123gen-20080401133146-jabb5i8870fg6f66
1083 zouzou123gen-20080401154610-mxdqoo5bksru93e6
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Button.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -85,7 +85,7 @@
template<typename SeedType>
void Button::create( const SeedType & cs ) {
- ControlType::create(cs);
+ BaseType::create(cs);
if(cs.font)
setFont( cs.font );
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/CheckBox.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -69,8 +69,6 @@
*/
struct Seed : public BaseType::Seed {
typedef ThisType WidgetType;
-
- FontPtr font;
/// Fills with default parameters
Seed(const SmartUtil::tstring& caption_ = SmartUtil::tstring());
@@ -111,7 +109,7 @@
}
inline CheckBox::CheckBox( SmartWin::Widget * parent )
- : ButtonType( parent )
+ : BaseType( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Container.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -30,7 +30,7 @@
Container(Widget* parent) : BaseType(parent) { }
};
-inline Container::Seed::Seed() : BaseType::Seed(NULL, WS_CHILD | WS_CLIPSIBLINGS, 0) {
+inline Container::Seed::Seed() : BaseType::Seed(SmartUtil::tstring(), WS_CHILD | WS_CLIPSIBLINGS, 0) {
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/Control.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -51,7 +51,7 @@
typedef Control<Policies::Subclassed> CommonControl;
template<typename Policy>
-Control<Policy>::Control(Widget* parent) : MessageMap<Policy>(parent) {
+Control<Policy>::Control(Widget* parent) : BaseType(parent) {
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/TabSheet.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -124,7 +124,6 @@
* should define one of these.
*/
struct Seed : public BaseType::Seed {
- public:
typedef ThisType WidgetType;
FontPtr font;
@@ -332,7 +331,7 @@
}
inline TabSheet::TabSheet( SmartWin::Widget * parent )
- : ControlType( parent )
+ : BaseType( parent )
{
}
Modified: dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/smartwin/source/widgets/TabSheet.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -10,7 +10,7 @@
void TabSheet::create( const Seed & cs )
{
- ControlType::create(cs);
+ BaseType::create(cs);
if(cs.font)
setFont( cs.font );
}
Modified: dcplusplus/trunk/win32/DirectoryListingFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -127,7 +127,7 @@
paned->setRelativePos(0.3);
{
- dirs = SmartWin::WidgetCreator<WidgetDirs>::create(this, WinUtil::Seeds::treeView);
+ dirs = addChild(WidgetDirs::Seed());
dirs->setHelpId(IDH_FILE_LIST_DIRS);
addWidget(dirs);
paned->setFirst(dirs);
@@ -137,7 +137,7 @@
}
{
- files = SmartWin::WidgetCreator<WidgetFiles>::create(this, WinUtil::Seeds::Table);
+ files = addChild(WidgetFiles::Seed());
files->setHelpId(IDH_FILE_LIST_FILES);
addWidget(files);
paned->setSecond(files);
Modified: dcplusplus/trunk/win32/FinishedFrameBase.h
===================================================================
--- dcplusplus/trunk/win32/FinishedFrameBase.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/FinishedFrameBase.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -54,10 +54,7 @@
totalTime(0)
{
{
- typename MDIChildType::Table::Seed cs;
- cs.style = WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS;
- cs.exStyle = WS_EX_CLIENTEDGE;
- items = SmartWin::WidgetCreator<WidgetItems>::create(static_cast<T*>(this), cs);
+ items = static_cast<T*>(this)->addChild(typename WidgetItems::Seed());
items->setTableStyle(LVS_EX_LABELTIP | LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT);
addWidget(items);
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -137,7 +137,7 @@
}
{
- users = SmartWin::WidgetCreator<WidgetUsers>::create(this, WinUtil::Seeds::Table);
+ users = addChild(WidgetUsers::Seed());
addWidget(users);
paned->setSecond(users);
Modified: dcplusplus/trunk/win32/PublicHubsFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/PublicHubsFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/PublicHubsFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -103,9 +103,9 @@
users(0)
{
{
- Table::Seed cs = WinUtil::Seeds::Table;
+ WidgetHubs::Seed cs;
cs.style |= LVS_SINGLESEL;
- hubs = SmartWin::WidgetCreator<WidgetHubs>::create(this, cs);
+ hubs = addChild(cs);
addWidget(hubs);
hubs->createColumns(WinUtil::getStrings(columnNames));
Modified: dcplusplus/trunk/win32/QueueFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/QueueFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/QueueFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -65,10 +65,11 @@
queueItems(0),
fileLists(0)
{
- paned = createVPaned();
+ paned = addChild(WidgetVPaned::Seed());
paned->setRelativePos(0.3);
+
{
- dirs = SmartWin::WidgetCreator<WidgetDirs>::create(this, WinUtil::Seeds::treeView);
+ dirs = addChild(WidgetDirs::Seed());
addWidget(dirs);
paned->setFirst(dirs);
@@ -80,7 +81,7 @@
}
{
- files = SmartWin::WidgetCreator<WidgetFiles>::create(this, WinUtil::Seeds::Table);
+ files = addChild(WidgetFiles::Seed());
addWidget(files, true);
paned->setSecond(files);
Modified: dcplusplus/trunk/win32/SearchFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/SearchFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -213,10 +213,10 @@
}
{
- Table::Seed cs = WinUtil::Seeds::Table;
+ WidgetHubs::Seed cs;
cs.style |= LVS_NOCOLUMNHEADER;
cs.lvStyle |= LVS_EX_CHECKBOXES;
- hubs = SmartWin::WidgetCreator<WidgetHubs>::create(this, cs);
+ hubs = addChild(cs);
hubs->setHelpId(IDH_SEARCH_HUBS);
addWidget(hubs);
@@ -231,7 +231,7 @@
}
{
- results = SmartWin::WidgetCreator<WidgetResults>::create(this, WinUtil::Seeds::Table);
+ results = addChild(WidgetResults::Seed());
addWidget(results);
results->createColumns(WinUtil::getStrings(columnNames));
Modified: dcplusplus/trunk/win32/TransferView.cpp
===================================================================
--- dcplusplus/trunk/win32/TransferView.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/TransferView.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -72,23 +72,20 @@
{
TabSheet::Seed tcs;
- tcs.style = WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE |
- TCS_HOTTRACK | TCS_RAGGEDRIGHT | TCS_TOOLTIPS | TCS_FOCUSNEVER;
+ tcs.style |= TCS_HOTTRACK | TCS_RAGGEDRIGHT | TCS_FOCUSNEVER;
tabs = addChild(tcs);
tabs->onSelectionChanged(std::tr1::bind(&TransferView::handleTabSelected, this));
}
{
Container::Seed cs;
- cs.style |= WS_CLIPCHILDREN | WS_VISIBLE;
+ cs.style |= WS_VISIBLE;
cs.caption = T_("Connections");
cs.background = (HBRUSH)(COLOR_3DFACE + 1);
cs.location = tabs->getUsableArea(true);
-
connectionsWindow = SmartWin::WidgetCreator<Container>::create(tabs, cs);
-
tabs->addPage(T_("Connections"), 0);
-
+
cs.style &= ~WS_VISIBLE;
cs.caption = T_("Downloads");
downloadsWindow = SmartWin::WidgetCreator<Container>::create(tabs, cs);
@@ -101,7 +98,7 @@
arrows->add(tmp, RGB(255, 0, 255));
}
{
- connections = SmartWin::WidgetCreator<WidgetConnections>::create(connectionsWindow, WinUtil::Seeds::Table);
+ connections = connectionsWindow->addChild(WidgetConnections::Seed());
connections->setSmallImageList(arrows);
connections->createColumns(WinUtil::getStrings(connectionNames));
@@ -115,7 +112,7 @@
}
{
- downloads = SmartWin::WidgetCreator<WidgetDownloads>::create(downloadsWindow, WinUtil::Seeds::Table);
+ downloads = downloadsWindow->addChild(WidgetDownloads::Seed());
downloads->createColumns(WinUtil::getStrings(downloadNames));
downloads->setColumnOrder(WinUtil::splitTokens(SETTING(DOWNLOADS_ORDER), downloadIndexes));
Modified: dcplusplus/trunk/win32/TypedTable.h
===================================================================
--- dcplusplus/trunk/win32/TypedTable.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/TypedTable.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -19,7 +19,7 @@
#ifndef DCPLUSPLUS_WIN32_TYPED_LIST_VIEW_H
#define DCPLUSPLUS_WIN32_TYPED_LIST_VIEW_H
-#include <dcpp/Util.h>
+#include "WinUtil.h"
template<class ContentType, bool managed = true>
class TypedTable : public SmartWin::Table
@@ -34,7 +34,19 @@
explicit TypedTable( SmartWin::Widget * parent ) : BaseType(parent) {
}
-
+
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
+ Seed() : BaseType::Seed() {
+ // @todo find a better way to directly use styles set in WinUtil...
+ style = WinUtil::Seeds::Table.style;
+ exStyle = WinUtil::Seeds::Table.exStyle;
+ lvStyle = WinUtil::Seeds::Table.lvStyle;
+ font = WinUtil::Seeds::Table.font;
+ }
+ };
+
~TypedTable() {
if(managed)
this->clear();
Modified: dcplusplus/trunk/win32/TypedTree.h
===================================================================
--- dcplusplus/trunk/win32/TypedTree.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/TypedTree.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -19,6 +19,7 @@
#ifndef DCPLUSPLUS_WIN32_TYPED_TREE_VIEW_H
#define DCPLUSPLUS_WIN32_TYPED_TREE_VIEW_H
+#include "WinUtil.h"
template<class ContentType>
class TypedTree : public SmartWin::Tree
@@ -31,7 +32,18 @@
typedef ThisType* ObjectType;
explicit TypedTree( SmartWin::Widget* parent ) : BaseType(parent) { }
-
+
+ struct Seed : public BaseType::Seed {
+ typedef ThisType WidgetType;
+
+ Seed() : BaseType::Seed() {
+ // @todo find a better way to directly use styles set in WinUtil...
+ style = WinUtil::Seeds::treeView.style;
+ exStyle = WinUtil::Seeds::treeView.exStyle;
+ font = WinUtil::Seeds::treeView.font;
+ }
+ };
+
void create( const typename BaseType::Seed & cs = BaseType::Seed() ) {
BaseType::create(cs);
this->addCallback(
Modified: dcplusplus/trunk/win32/UsersFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/UsersFrame.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/UsersFrame.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -40,9 +40,9 @@
startup(true)
{
{
- WidgetUsers::Seed cs = WinUtil::Seeds::Table;
+ WidgetUsers::Seed cs;
cs.lvStyle |= LVS_EX_CHECKBOXES;
- users = SmartWin::WidgetCreator<WidgetUsers>::create(this, cs);
+ users = addChild(cs);
addWidget(users);
users->createColumns(WinUtil::getStrings(columnNames));
Modified: dcplusplus/trunk/win32/WidgetPaned.h
===================================================================
--- dcplusplus/trunk/win32/WidgetPaned.h 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/WidgetPaned.h 2008-04-07 19:17:43 UTC (rev 1108)
@@ -19,8 +19,6 @@
#ifndef DCPLUSPLUS_WIN32_WIDGETPANED_H_
#define DCPLUSPLUS_WIN32_WIDGETPANED_H_
-#include <boost/scoped_ptr.hpp>
-
template< bool horizontal >
class WidgetPaned :
public SmartWin::MessageMap< SmartWin::Policies::Normal >,
Modified: dcplusplus/trunk/win32/WinUtil.cpp
===================================================================
--- dcplusplus/trunk/win32/WinUtil.cpp 2008-04-07 19:14:27 UTC (rev 1107)
+++ dcplusplus/trunk/win32/WinUtil.cpp 2008-04-07 19:17:43 UTC (rev 1108)
@@ -147,7 +147,6 @@
xtreeView.style |= TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES | TVS_SHOWSELALWAYS | TVS_DISABLEDRAGDROP;
xtreeView.exStyle = WS_EX_CLIENTEDGE;
xtreeView.font = font;
-
::HtmlHelp(NULL, NULL, HH_INITIALIZE, (DWORD)&helpCookie);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|