You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1041) |
Sep
(746) |
Oct
(46) |
Nov
(89) |
Dec
(117) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(21) |
Feb
(236) |
Mar
(316) |
Apr
(166) |
May
(114) |
Jun
(18) |
Jul
(23) |
Aug
(10) |
Sep
(35) |
Oct
(8) |
Nov
(44) |
Dec
(54) |
| 2007 |
Jan
(7) |
Feb
(21) |
Mar
(3) |
Apr
(1) |
May
|
Jun
(78) |
Jul
(9) |
Aug
(12) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: andrew7 <bd...@us...> - 2007-01-07 18:43:11
|
Update of /cvsroot/smartwin/SmartWin/tests/swDll In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4421/tests/swDll Modified Files: swDll.cpp swDllMain.cpp swdll.h Added Files: swDll.rc Log Message: Add example of using a resource based dialog in a DLL --- NEW FILE: swDll.rc --- // Microsoft Visual C++ generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (U.S.) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_HEXDIALOG DIALOGEX 0, 0, 200, 100 STYLE DS_SETFONT | DS_FIXEDSYS | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE CAPTION "WidgetDialog from a DLL" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK",IDOK,128,36,50,14 PUSHBUTTON "Cancel",IDCANCEL,7,36,50,14 EDITTEXT IDC_HEXEDIT,7,7,171,17,ES_AUTOHSCROLL END ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN IDD_HEXDIALOG, DIALOG BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 178 TOPMARGIN, 7 BOTTOMMARGIN, 50 END END #endif // APSTUDIO_INVOKED #endif // English (U.S.) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED Index: swdll.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/swDll/swdll.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- swdll.h 5 May 2006 17:14:40 -0000 1.2 +++ swdll.h 7 Jan 2007 18:43:05 -0000 1.3 @@ -12,3 +12,6 @@ __declspec( DLLMODE ) bool guiGetNumberAndString( int * numb, char str[] ); + +__declspec( DLLMODE ) +bool dialogGetNumberAndString( int * numb, char str[] ); Index: swDll.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/swDll/swDll.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- swDll.cpp 5 May 2006 17:21:47 -0000 1.4 +++ swDll.cpp 7 Jan 2007 18:43:05 -0000 1.5 @@ -15,16 +15,17 @@ #define DLLMODE dllexport #include "swdll.h" #include "helloDll.h" +#include "ResourceDialogClass.h" // Called -BOOL APIENTRY DllMain( HANDLE hModule, +BOOL APIENTRY DllMain( HINSTANCE hInstance, DWORD ul_reason_for_call, LPVOID lpReserved ) { if ( DLL_PROCESS_ATTACH == ul_reason_for_call ) { - Application::neededSmartWinInit(); // Prepare for SmartWin++ + Application::neededSmartWinInit( hInstance, SW_SHOW, "" ); // Prepare for SmartWin++ } if ( DLL_PROCESS_DETACH == ul_reason_for_call ) @@ -65,6 +66,22 @@ return true; } + +// The DLL function that invokes a resource based SmartWin++ dialog. +// +__declspec( dllexport ) +bool dialogGetNumberAndString( int * numb, char str[] ) +{ + *numb= 33; + ResourceDialogClass * rdc = new ResourceDialogClass( str ); + Application::instance().run(); // Stops when window closes. + return true; +} + + + + + // Just so "SmartWinMain" is not undefined when we link the DLL. // Since WinMain is not called in a DLL, this function is never called. int SmartWinMain( Application & app ) Index: swDllMain.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/swDll/swDllMain.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- swDllMain.cpp 5 May 2006 17:21:47 -0000 1.3 +++ swDllMain.cpp 7 Jan 2007 18:43:05 -0000 1.4 @@ -22,5 +22,12 @@ std::cout << numb << " " << str << std::endl; } + // Same thing but this time the DLL does it with a dialog. + if ( dialogGetNumberAndString( & numb, ( char * ) & str ) ) + { + std::cout << numb << " " << str << std::endl; + } + + return 0; } |
|
From: Conrado P. <con...@us...> - 2006-12-27 23:46:54
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21415/include/smartwin/widgets Modified Files: WidgetMenuExtended.h Log Message: Made WidgetMenuExtended::removeItem documentation more clear Index: WidgetMenuExtended.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetMenuExtended.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- WidgetMenuExtended.h 9 Dec 2006 22:06:11 -0000 1.45 +++ WidgetMenuExtended.h 27 Dec 2006 23:46:50 -0000 1.46 @@ -1062,7 +1062,10 @@ void appendItem( unsigned itemID, const SmartUtil::tstring & text, MenuItemDataPtr itemData, menuExtendedVoidFunctionTakingUInt eventHandler ); /// Removes specified item from this menu - /** Call this function to actually DELETE a menu item from the menu hierarchy + /** Call this function to actually DELETE a menu item from the menu hierarchy. + * Note that you have to specify the item position; and whenever you remove an item, + * all subsequent items change positions. To remove a range of items, remove from + * end to start. */ void removeItem( unsigned itemIndex ); |
|
From: andrew7 <bd...@us...> - 2006-12-26 01:17:33
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31517/include/smartwin/widgets Modified Files: WidgetModalDialog.h WidgetWindow.h WidgetWindowBase.h Log Message: Allow SW to work with SP1 for MSVC 2005 by removing "typename ThisMessageMap::" from "typename ThisMessageMap::boolFunctionTakingVoid eventHandler" for #ifdef _MSC_VER. The #ifdef __GNUC__ code is the old way. Index: WidgetWindowBase.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetWindowBase.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- WidgetWindowBase.h 9 Sep 2006 19:12:33 -0000 1.34 +++ WidgetWindowBase.h 26 Dec 2006 01:17:29 -0000 1.35 @@ -229,9 +229,16 @@ * If you return true from your event handler the window is closed, otherwise * the window is NOT allowed to actually close!! */ +#ifdef _MSC_VER + void onClosing( itsBoolFunctionTakingVoid eventHandler ); + void onClosing( boolFunctionTakingVoid eventHandler ); +#endif +#ifdef __GNUC__ void onClosing( typename ThisMessageMap::itsBoolFunctionTakingVoid eventHandler ); void onClosing( typename ThisMessageMap::boolFunctionTakingVoid eventHandler ); +#endif + // TODO: Outfactor into "time Aspect" class /// Creates a timer object. /** The supplied function must have the signature void foo( const CommandPtr & @@ -242,8 +249,14 @@ * event handler function after the specified (in milliSeconds parameter) time * has elapsed. */ +#ifdef _MSC_VER + void createTimer( itsVoidFunctionTakingCommand eventHandler, unsigned int milliSecond, const SmartWin::Command & command ); + void createTimer( voidFunctionTakingCommand eventHandler, unsigned int milliSecond, const SmartWin::Command & command ); +#endif +#ifdef __GNUC__ void createTimer( typename ThisMessageMap::itsVoidFunctionTakingCommand eventHandler, unsigned int milliSecond, const SmartWin::Command & command ); void createTimer( typename ThisMessageMap::voidFunctionTakingCommand eventHandler, unsigned int milliSecond, const SmartWin::Command & command ); +#endif /// Closes the window /** Call this function to raise the "Closing" event. <br> @@ -342,7 +355,14 @@ } template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::onClosing( itsBoolFunctionTakingVoid eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::onClosing( typename ThisMessageMap::itsBoolFunctionTakingVoid eventHandler ) +#endif { this->addNewSignal( typename MessageMapType::SignalTupleType( @@ -358,8 +378,16 @@ ); } + template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::onClosing( boolFunctionTakingVoid eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::onClosing( typename ThisMessageMap::boolFunctionTakingVoid eventHandler ) +#endif { this->addNewSignal( typename MessageMapType::SignalTupleType( @@ -375,10 +403,19 @@ ); } + template< class EventHandlerClass, class MessageMapPolicy > +#ifdef _MSC_VER +void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::createTimer( voidFunctionTakingCommand eventHandler, + unsigned milliSecond, + const Command & command ) +#endif + +#ifdef __GNUC__ void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::createTimer( typename ThisMessageMap::voidFunctionTakingCommand eventHandler, unsigned milliSecond, const Command & command ) +#endif { unsigned int event = - 1; for ( int n = 0; n < 100; ++n ) @@ -403,10 +440,20 @@ ::SetTimer( this->Widget::itsHandle, event, static_cast< UINT >( milliSecond ), static_cast< TIMERPROC >( timerProc ) ); } + template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::createTimer( itsVoidFunctionTakingCommand eventHandler, + unsigned milliSecond, + const Command & command ) +#endif + +#ifdef __GNUC__ void WidgetWindowBase< EventHandlerClass, MessageMapPolicy >::createTimer( typename ThisMessageMap::itsVoidFunctionTakingCommand eventHandler, unsigned milliSecond, const Command & command ) +#endif { unsigned int event = - 1; for ( int n = 1; n < 101; ++n ) Index: WidgetWindow.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetWindow.h,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- WidgetWindow.h 23 Dec 2006 02:36:34 -0000 1.29 +++ WidgetWindow.h 26 Dec 2006 01:17:29 -0000 1.30 @@ -133,8 +133,18 @@ * The argument CREATESTRUCT sent into your handler is modifiable so that you * can add/remove styles and add remove EX styles etc. */ +#ifdef _MSC_VER + void onCreate( itsVoidFunctionTakingSeedPointer eventHandler ); + void onCreate( voidFunctionTakingSeedPointer eventHandler ); +#endif + +#ifdef __GNUC__ void onCreate( typename ThisMessageMap::itsVoidFunctionTakingSeedPointer eventHandler ); void onCreate( typename ThisMessageMap::voidFunctionTakingSeedPointer eventHandler ); +#endif + + + // TODO: Fix! This doesn't work if you have an application with multiple windows in addition to that it's a member method plus lots of other architectual issues!! // TODO: Add support in the Seed class to override "class name" and then we can do a lookup upon that name given...?? @@ -292,8 +302,15 @@ Widget::create( cs ); } + template< class EventHandlerClass, class MessageMapPolicy > +#ifdef _MSC_VER +void WidgetWindow< EventHandlerClass, MessageMapPolicy >::onCreate( itsVoidFunctionTakingSeedPointer eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetWindow< EventHandlerClass, MessageMapPolicy >::onCreate( typename ThisMessageMap::itsVoidFunctionTakingSeedPointer eventHandler ) +#endif { this->addNewSignal ( typename MessageMapType::SignalTupleType @@ -310,7 +327,14 @@ } template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetWindow< EventHandlerClass, MessageMapPolicy >::onCreate( voidFunctionTakingSeedPointer eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetWindow< EventHandlerClass, MessageMapPolicy >::onCreate( typename ThisMessageMap::voidFunctionTakingSeedPointer eventHandler ) +#endif { this->addNewSignal ( typename MessageMapType::SignalTupleType Index: WidgetModalDialog.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetModalDialog.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- WidgetModalDialog.h 3 Nov 2006 13:26:17 -0000 1.20 +++ WidgetModalDialog.h 26 Dec 2006 01:17:29 -0000 1.21 @@ -139,11 +139,20 @@ * Method signature must be bool foo(); <br> * If you return true from your Event Handler the system will NOT mess up the * initial focus you have chosen, if you return false the system will decide - * which contrl to initially have focus according to the tab order of the + * which control to initially have focus according to the tab order of the * controls! */ +#ifdef _MSC_VER + void onInitDialog( boolFunctionTakingVoid eventHandler ); + void onInitDialog( itsBoolFunctionTakingVoid eventHandler ); +#endif + +#ifdef __GNUC__ void onInitDialog( typename ThisMessageMap::boolFunctionTakingVoid eventHandler ); void onInitDialog( typename ThisMessageMap::itsBoolFunctionTakingVoid eventHandler ); +#endif + + protected: // Protected since this Widget we HAVE to inherit from @@ -257,8 +266,16 @@ } template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetModalDialog< EventHandlerClass, MessageMapPolicy >:: +onInitDialog( itsBoolFunctionTakingVoid eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetModalDialog< EventHandlerClass, MessageMapPolicy >:: onInitDialog( typename ThisMessageMap::itsBoolFunctionTakingVoid eventHandler ) +#endif { this->addNewSignal ( typename MessageMapType::SignalTupleType @@ -275,8 +292,16 @@ } template< class EventHandlerClass, class MessageMapPolicy > + +#ifdef _MSC_VER +void WidgetModalDialog< EventHandlerClass, MessageMapPolicy >:: +onInitDialog( boolFunctionTakingVoid eventHandler ) +#endif + +#ifdef __GNUC__ void WidgetModalDialog< EventHandlerClass, MessageMapPolicy >:: onInitDialog( typename ThisMessageMap::boolFunctionTakingVoid eventHandler ) +#endif { this->addNewSignal ( typename MessageMapType::SignalTupleType |
|
From: andrew7 <bd...@us...> - 2006-12-24 17:12:56
|
Update of /cvsroot/smartwin/SmartWin/SmartNetwork In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11474/SmartNetwork Modified Files: NetworkSystemHeaders.h Log Message: lowercase filenames Index: NetworkSystemHeaders.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/SmartNetwork/NetworkSystemHeaders.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NetworkSystemHeaders.h 6 Jun 2006 14:35:51 -0000 1.4 +++ NetworkSystemHeaders.h 24 Dec 2006 17:12:52 -0000 1.5 @@ -42,8 +42,8 @@ #define NOMINMAX #endif -#include <WinSock2.h> -#include <Ws2tcpip.h> +#include <winsock2.h> +#include <ws2tcpip.h> // Autolinking to the required libraries #ifndef WINCE |
|
From: andrew7 <bd...@us...> - 2006-12-24 15:53:43
|
Update of /cvsroot/smartwin/SmartWin/SmartUtil In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12976/SmartUtil Modified Files: tstring.h Log Message: tfstream for wine Index: tstring.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/SmartUtil/tstring.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- tstring.h 18 Dec 2006 01:11:01 -0000 1.9 +++ tstring.h 24 Dec 2006 15:53:39 -0000 1.10 @@ -58,7 +58,7 @@ typedef std::wiostream tiostream; # endif //_ISTREAM_ # endif //_OSTREAM_ -# if defined _IOSFWD_ || defined _FSTREAM_ || defined _GLIBCXX_FSTREAM +# if defined _IOSFWD_ || defined _FSTREAM_ || defined _CPP_FSTREAM || defined _GLIBCXX_FSTREAM typedef std::wfilebuf tfilebuf; typedef std::wfstream tfstream; typedef std::wifstream tifstream; @@ -84,7 +84,7 @@ typedef std::iostream tiostream; # endif //_ISTREAM_ # endif //_OSTREAM_ -# if defined _IOSFWD_ || defined _FSTREAM_ || defined _GLIBCXX_FSTREAM +# if defined _IOSFWD_ || defined _FSTREAM_ || defined _CPP_FSTREAM || defined _GLIBCXX_FSTREAM typedef std::filebuf tfilebuf; typedef std::fstream tfstream; typedef std::ifstream tifstream; |
|
From: andrew7 <bd...@us...> - 2006-12-24 14:40:56
|
Update of /cvsroot/smartwin/SmartWin/tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16057/tests Modified Files: Makefile.wine Log Message: Update Index: Makefile.wine =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/Makefile.wine,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.wine 27 Mar 2006 16:55:29 -0000 1.4 +++ Makefile.wine 24 Dec 2006 14:40:52 -0000 1.5 @@ -1,598 +1,644 @@ - - -MAKEFILE = Makefile.wine -COPY = cp -f - + + +MAKEFILE = Makefile.wine +COPY = cp -f + SUBTARGETS = \ [...1200 lines suppressed...] + cd sw_mdi && \ + $(MAKE) -f $(MAKEFILE) clean + @cd .. + + + + + + + + +install: install_subdirs + +uninstall: uninstall_subdirs + + + +FORCE: + + |
|
From: andrew7 <bd...@us...> - 2006-12-24 01:06:03
|
Update of /cvsroot/smartwin/SmartWin/doxygenIn/html In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18954/doxygenIn/html Modified Files: linuxwine.html Log Message: Change to CVS location, and update for 2.0 Index: linuxwine.html =================================================================== RCS file: /cvsroot/smartwin/SmartWin/doxygenIn/html/linuxwine.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- linuxwine.html 26 Mar 2006 03:16:43 -0000 1.2 +++ linuxwine.html 24 Dec 2006 01:05:58 -0000 1.3 @@ -1,79 +1,77 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> - <title>SmartWin++ Guide</title> - <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> - <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> + <title>SmartWin++ on Linux with Wine Guide</title> </head> <body> - <h2>Using SmartWin++ on Linux with WINE <a name="devc++"> </a> + <h2>Using SmartWin++ on Linux with WINE <a name="devc++"> </a> </h2> <H3>Background: </H3> - <P>SmartWin++ is based upon the WIN32 API. But you can use the WIN32 + <P>SmartWin++ is based upon the WIN32 API. But you can use the WIN32 suport from WineLib ( <A href="http://www.winehq.com/site/documentation">http://www.winehq.com/site/documentation</A> - ) on Linux/Unix and thus build and run SmartWin++ source on - Linux/Unix. As of November 19th, 2005 we have had some success in getting - the tests to run under winelib, but there are some problems too. See + ) on Linux/Unix and thus build and run SmartWin++ source on + Linux/Unix. As of December 23rd, 2006 we have had some success in getting + the tests to run under winelib, but there are some problems too. See testcheck.html in the tests directory for the current status,</P> - <H3>One way to get the SmartWin++ samples on Linux. + <H3>One way to get the SmartWin++ samples on Linux. </H3> <UL> <LI> - Buy a Xandros Linux PC from Walmart ($300). + Buy a Xandros Linux PC from Walmart ($300). <LI> - Use Xandros Networks to install GCC 3.3 and ark archieving tool + Use Xandros Networks to install GCC 3.3 and ark archieving tool <LI> - Download wine source 0.9.10 tar.bz2, and then used ark to extract wine + Download wine source 0.9.28 tar.bz2, and then used ark to extract wine source <LI> Download flex, bison, and cvs source from GNU. <LI> Did ./configure , make, and make install (as root) for flex, bison, and cvs. <LI> - Did ./configure, make depend, make, and then make install (root) + Did ./configure, make depend, make, and then make install (root) for wine <LI> - As root, I did a ldconfig after adding /usr/local/lib in - /etc/ld.so.conf (so Xandros can find libwine.so.1) + As root, I did a ldconfig after adding /usr/local/lib in + /etc/ld.so.conf (so Xandros can find libwine.so.1) <LI> - CHECK: wine --version now returns "wine 0.9.10" + CHECK: wine --version now returns "wine 0.9.28" <LI> CHECK: Now you can make in programs/notepad, and "wine notepad.so.1" runs. <LI> Fetch the latest SmartWin++ source using cvs with: <LI> - <TT>cvs -d:pserver:ano...@cv...:/cvsroot/smartwin login </TT> + <TT>cvs -d:pserver:ano...@sm...:/cvsroot/smartwin login </TT> <LI> - <TT>cvs -d:pserver:ano...@cv...:/cvsroot/smartwin </TT> + <TT>cvs -z3 -d:pserver:ano...@sm...:/cvsroot/smartwin co -P SmartWin </TT> checkout SmartWin <LI> cd SmartWin/source <LI> - make -f Makefile.wine (And the libsmartwin.a library should be put + make -f Makefile.wine (And the libsmartwin.a library should be put into ../lib) <LI> cd ../tests/HelloSmartWin <LI> - make -f Makefile.wine run (And the sample program should start running.) + make -f Makefile.wine run (And the sample program should start running.) <LI> - You can build all the tests from SmartWin/tests with make -f + You can build all the tests from SmartWin/tests with make -f Makefile.wine</LI></UL> - <P> </P> + <P> </P> <H3>Notes on build methods:</H3> - <P>"wineg++", as provided by wine, does the compiles and links as a wrapper - around "g++". The makefiles use the Unix libc library and the built in - C++ standard libraries. This means that there is no support for - MSVCRT specific calls. It may be possible to build SmartWin using - wineg++'s -mno-cygwin option (See man wineg++ for details) , but it - produces lots of errors from the cstdlib at the moment. If someone is + <P>"wineg++", as provided by wine, does the compiles and links as a wrapper + around "g++". The makefiles use the Unix libc library and the built in + C++ standard libraries. This means that there is no support for + MSVCRT specific calls. It may be possible to build SmartWin using + wineg++'s -mno-cygwin option (See man wineg++ for details) , but it + produces lots of errors from the cstdlib at the moment. If someone is successful using -mno-cygwin, please let us know what you did. </P> <P>The result of linking gives a hello.so.1 shared executable which can be run with - "wine hello.so.1". + "wine hello.so.1". </P> <P>You can use winemaker to convert a Windows based program to something suitable - for winelib. You should already be using forward slashes in #include + for winelib. You should already be using forward slashes in #include "dir/dir/file.h", and taking case into account with filenames.</P> <P> #ifdef __WINE__ @@ -84,10 +82,13 @@ <br> is used for the minimal Linux/Wine specific code. </P> - <P> </P> + <P> + /usr/include/c++/3.3 has the standard c++ include files. <br></br> + The windows files are in : wine-0.9.28/include <br></br> + </P> <h3>Helpful Links:</h3> <P><A href="http://cvsbook.red-bean.com/cvsbook.html">http://cvsbook.red-bean.com/cvsbook.html</A></P> - <P> </P> - <P> </P> + <P> </P> + <P> </P> </body> </html> |
|
From: andrew7 <bd...@us...> - 2006-12-24 00:57:06
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/aspects In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14318/include/smartwin/aspects Modified Files: AspectDragDrop.h Log Message: Replace _MAX_PATH with MAX_PATH Index: AspectDragDrop.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/aspects/AspectDragDrop.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- AspectDragDrop.h 10 Sep 2006 10:44:45 -0000 1.3 +++ AspectDragDrop.h 24 Dec 2006 00:57:01 -0000 1.4 @@ -66,7 +66,7 @@ TCHAR pFilename[MAX_PATH]; for(int i=0;i<iFiles;i++) { memset(pFilename,0,MAX_PATH * sizeof(TCHAR)); - DragQueryFile(handle, i, pFilename, _MAX_PATH); + DragQueryFile(handle, i, pFilename, MAX_PATH); f.push_back(pFilename); } POINT p; @@ -99,7 +99,7 @@ TCHAR pFilename[MAX_PATH]; for(int i=0;i<iFiles;i++) { memset(pFilename,0,MAX_PATH * sizeof(TCHAR)); - DragQueryFile(handle, i, pFilename, _MAX_PATH); + DragQueryFile(handle, i, pFilename, MAX_PATH); f.push_back(pFilename); } POINT p; @@ -136,7 +136,7 @@ TCHAR pFilename[MAX_PATH]; for(int i=0;i<iFiles;i++) { memset(pFilename,0,MAX_PATH * sizeof(TCHAR)); - DragQueryFile(handle, i, pFilename, _MAX_PATH); + DragQueryFile(handle, i, pFilename, MAX_PATH); f.push_back(pFilename); } POINT p; @@ -168,7 +168,7 @@ TCHAR pFilename[MAX_PATH]; for(int i=0;i<iFiles;i++) { memset(pFilename,0,MAX_PATH * sizeof(TCHAR)); - DragQueryFile(handle, i, pFilename, _MAX_PATH); + DragQueryFile(handle, i, pFilename, MAX_PATH); f.push_back(pFilename); } POINT p; |
|
From: andrew7 <bd...@us...> - 2006-12-23 02:36:41
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9309/include/smartwin/widgets Modified Files: WidgetWindow.h Log Message: add createInvisibleWindow( seed ) Index: WidgetWindow.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetWindow.h,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- WidgetWindow.h 19 Nov 2006 22:17:55 -0000 1.28 +++ WidgetWindow.h 23 Dec 2006 02:36:34 -0000 1.29 @@ -92,11 +92,38 @@ static const Seed & getDefaultSeed(); /// Actually creates the window - /** This one creates the window. The seed is not taken a constant because the - * class name will be generated at the registration. + /** This one creates the window. <br> + * All WidgetWindows, 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 seed is not taken a constant because the class name will be generated at registration. */ virtual void createWindow( Seed = getDefaultSeed() ); + /// 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 = getDefaultSeed(); <br> + * defInvisible.style= defInvisible.style & ( ~ WS_VISIBLE ); <br> + * createWindow( defInvisible ); <br> + * + * but this is cleaner: <br> + * + * createInvisibleWindow(); <br> + * do init <br> + * setVisible( true ); <br> + * + * The other styles are either defaulted with createInvisibleWindow() + * or specified with createInvisibleWindow( Seed ). + */ + virtual void createInvisibleWindow( Seed = getDefaultSeed() ); + + + // TODO: Check up if the CREATESTRUCT * actualy IS modyfiable...!! /// Setting the event handler for the "create" event /** The event handler must have the signature "void foo( CREATESTRUCT * )" where @@ -215,6 +242,15 @@ ::UnregisterClass( itsRegisteredClassName.c_str(), Application::instance().getAppHandle() ); } + +template< class EventHandlerClass, class MessageMapPolicy > +void WidgetWindow< EventHandlerClass, MessageMapPolicy >::createInvisibleWindow( Seed cs ) +{ + cs.style= cs.style & ( ~ WS_VISIBLE ); + WidgetWindow< EventHandlerClass, MessageMapPolicy >::createWindow( cs ); +} + + template< class EventHandlerClass, class MessageMapPolicy > void WidgetWindow< EventHandlerClass, MessageMapPolicy >::createWindow( Seed cs ) { |
|
From: andrew7 <bd...@us...> - 2006-12-19 01:49:09
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11103/include/smartwin Modified Files: LibraryLoader.h Log Message: Support for getProcAddress Index: LibraryLoader.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/LibraryLoader.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- LibraryLoader.h 5 May 2006 17:14:37 -0000 1.8 +++ LibraryLoader.h 19 Dec 2006 01:49:06 -0000 1.9 @@ -59,7 +59,7 @@ * "%SYSTEM%/x.dll" and "x.dll" though there probably IS no real difference, this is * a potential "hard to track" bug meaning always instantiate this class with the * EXACT SAME arguments! <br> - * See exempel usage in WidgetRichTextBox + * See example usage in WidgetRichTextBox.h */ class LibraryLoader { @@ -88,6 +88,23 @@ */ void load( const SmartUtil::tstring & libraryName ); + + + /// Get procedure address from loaded library by name + /** Allows you get a procedure address from the dll. + * Example: <br> + * static LibraryLoader richEditLibrary( _T( "riched20.dll" ) ); <br> + * FARPROC x1 = richEditLibrary.getProcAddress( _T("CreateTextServices") ); <br> + * FARPROC x2 = richEditLibrary.getProcAddress( 4 ); <br> + */ + FARPROC getProcAddress( const SmartUtil::tstring & procedureName ); + + /// Get procedure address from loaded library by ordinal value + /** + */ + FARPROC getProcAddress( long procedureOrdinal ); + + /// DTOR freeing up library /** Normally there's not much need of explicitly freeing up a library meaning you * can just allocate your library objects as static objects, also it won't @@ -99,6 +116,7 @@ LibraryLoader( const LibraryLoader & ); // DENY COPY LibraryLoader & operator =( const LibraryLoader & ); // DENY ASSIGNMENT SmartUtil::tstring itsLibraryName; + HMODULE itsHMod; static Utilities::CriticalSection itsCs; static std::map< SmartUtil::tstring, boost::tuple< int, HMODULE > > itsLibrariesLoaded; bool hasCalledLoad; |
|
From: andrew7 <bd...@us...> - 2006-12-19 01:48:40
|
Update of /cvsroot/smartwin/SmartWin/source In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10840/source Modified Files: LibraryLoader.cpp Log Message: Support for getProcAddress Index: LibraryLoader.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/source/LibraryLoader.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- LibraryLoader.cpp 5 May 2006 17:21:43 -0000 1.5 +++ LibraryLoader.cpp 19 Dec 2006 01:48:29 -0000 1.6 @@ -72,13 +72,13 @@ if ( LibraryLoader::itsLibrariesLoaded.end() == exists ) { // Loading library - HMODULE hMod = ::LoadLibrary( libraryName.c_str() ); + itsHMod = ::LoadLibrary( libraryName.c_str() ); // TODO: Rewrite xAssert to get support for submitting SmartUtil::tstrings (could show library name) - xAssert( hMod != 0, _T( "Error while trying to load library or dll!" ) ); + xAssert( itsHMod != 0, _T( "Error while trying to load library or dll!" ) ); // SUCCESS! - itsLibrariesLoaded[libraryName].get< 1 >() = hMod; + itsLibrariesLoaded[libraryName].get< 1 >() = itsHMod; itsLibrariesLoaded[libraryName].get< 0 >() = 1; } else @@ -99,6 +99,21 @@ { } + + // Get procedure address from loaded library by name + FARPROC LibraryLoader::getProcAddress( const SmartUtil::tstring & procedureName ) + { + return ::GetProcAddress( itsHMod, procedureName.c_str() ); + } + + // Get procedure address from loaded library by ordinal value + FARPROC LibraryLoader::getProcAddress( long procedureOrdinal ) + { + return ::GetProcAddress( itsHMod, (LPCSTR)0 + procedureOrdinal ); + } + + + // Static members definitions! Utilities::CriticalSection LibraryLoader::itsCs; std::map< SmartUtil::tstring, boost::tuple< int, HMODULE > > LibraryLoader::itsLibrariesLoaded; |
|
From: andrew7 <bd...@us...> - 2006-12-18 03:32:31
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20789/include/smartwin Modified Files: WidgetFactory.h Log Message: Add support for subclassProgressBar( unsigned id ); Index: WidgetFactory.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/WidgetFactory.h,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- WidgetFactory.h 5 May 2006 17:14:37 -0000 1.30 +++ WidgetFactory.h 18 Dec 2006 03:32:08 -0000 1.31 @@ -388,6 +388,16 @@ */ WidgetButtonPtr subclassButton( unsigned id ); + + + /// \ingroup SubclassDialog + /// Subclasses a Progress Bar Control from the given resource id. + /** DON'T delete the returned pointer!!!< br > + * Use e.g. the Dialog Designer to design a dialog and subclass the controls with this function. + */ + WidgetProgressBarPtr subclassProgressBar( unsigned id ); + + /// \ingroup SubclassDialog /// Subclasses a Slider Control from the given resource id. /** DON'T delete the returned pointer!!! <br> @@ -707,6 +717,26 @@ return WidgetCreator< WidgetButton >::subclass( this, id ); } + +template< template< class, class > class ContainerWidgetType, class EventHandlerClass, class MessageMapPolicy > +typename WidgetFactory< ContainerWidgetType, EventHandlerClass, MessageMapPolicy >::WidgetProgressBarPtr +WidgetFactory< ContainerWidgetType, EventHandlerClass, MessageMapPolicy >::subclassProgressBar( unsigned id ) +{ + // If this one fizzles you have tried to call this function from a derived + // class which not is derived from MessageMapPolicyDialogWidget, like for + // instance both the MessageMapPolicyNormalWidget and the + // MessageMapPolicyMDIChildWidget classes cannot logically subclass a dialog + // item since they're NOT dialog Widgets therefore they will give you a compile + // error if you try to call this function from Widgets implementing the those + // classes! Only the MessageMapPolicyDialogWidget can logically call this + // function and therefore it's the only one which will not give you a compile + // time error here... + typename MessageMapPolicy::canSubclassControls checker; + return WidgetCreator< WidgetProgressBar >::subclass( this, id ); +} + + + template< template< class, class > class ContainerWidgetType, class EventHandlerClass, class MessageMapPolicy > typename WidgetFactory< ContainerWidgetType, EventHandlerClass, MessageMapPolicy >::WidgetSliderPtr WidgetFactory< ContainerWidgetType, EventHandlerClass, MessageMapPolicy >::subclassSlider( unsigned id ) |
|
From: andrew7 <bd...@us...> - 2006-12-18 01:16:09
|
Update of /cvsroot/smartwin/SmartWin/source In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv29344/source Modified Files: Makefile.wine Log Message: Add Icon.cpp and ImageList.cpp file to Linux makefile Index: Makefile.wine =================================================================== RCS file: /cvsroot/smartwin/SmartWin/source/Makefile.wine,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.wine 20 Apr 2006 09:40:59 -0000 1.4 +++ Makefile.wine 18 Dec 2006 01:16:03 -0000 1.5 @@ -30,6 +30,8 @@ CommandLine.cpp \ DestructionClass.cpp \ Font.cpp \ + Icon.cpp \ + ImageList.cpp \ LibraryLoader.cpp \ Message.cpp \ Widget.cpp \ |
|
From: andrew7 <bd...@us...> - 2006-12-18 01:13:42
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetFun In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28395/tests/WidgetFun Modified Files: WidgetFun.rc Log Message: Allow wine to compile Index: WidgetFun.rc =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetFun/WidgetFun.rc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- WidgetFun.rc 19 Apr 2006 02:30:28 -0000 1.3 +++ WidgetFun.rc 18 Dec 2006 01:13:39 -0000 1.4 @@ -7,7 +7,11 @@ // // Generated from the TEXTINCLUDE 2 resource. // +#ifdef __WINE__ +#include "winres.h" +#else #include "afxres.h" +#endif ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS |
|
From: andrew7 <bd...@us...> - 2006-12-18 01:11:05
|
Update of /cvsroot/smartwin/SmartWin/SmartUtil In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27262/SmartUtil Modified Files: tstring.h Log Message: Add symbols for wine std:: Index: tstring.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/SmartUtil/tstring.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- tstring.h 30 Nov 2006 00:47:06 -0000 1.8 +++ tstring.h 18 Dec 2006 01:11:01 -0000 1.9 @@ -39,10 +39,10 @@ // begin namespace SmartUtil #if defined UNICODE || defined _UNICODE -# if defined _STRING_ || defined _GLIBCXX_STRING +# if defined _STRING_ || defined _CPP_STRING || defined _GLIBCXX_STRING typedef std::wstring tstring; # endif //_STRING_ -# if defined _SSTREAM_ || defined _GLIBCXX_SSTREAM +# if defined _SSTREAM_ || defined _CPP_SSTREAM || defined _GLIBCXX_SSTREAM typedef std::wstringstream tstringstream; typedef std::wostringstream tostringstream; typedef std::wistringstream tistringstream; @@ -53,8 +53,8 @@ # if defined _ISTREAM_ || defined _GLIBCXX_ISTREAM typedef std::wistream tistream; # endif //_ISTREAM_ -# if defined _OSTREAM_ || defined _GLIBCXX_OSTREAM -# if defined _ISTREAM_ || defined _GLIBCXX_ISTREAM +# if defined _OSTREAM_ || defined _CPP_OSTREAM || defined _GLIBCXX_OSTREAM +# if defined _ISTREAM_ || defined _CPP_ISTREAM || defined _GLIBCXX_ISTREAM typedef std::wiostream tiostream; # endif //_ISTREAM_ # endif //_OSTREAM_ @@ -65,10 +65,10 @@ typedef std::wofstream tofstream; # endif //_FSTREAM_ #else // UNICODE -# if defined _STRING_ || defined _GLIBCXX_STRING +# if defined _STRING_ || defined _CPP_STRING || defined _GLIBCXX_STRING typedef std::string tstring; # endif //_STRING_ -# if defined _SSTREAM_ || defined _GLIBCXX_SSTREAM +# if defined _SSTREAM_ || defined _CPP_SSTREAM || defined _GLIBCXX_SSTREAM typedef std::stringstream tstringstream; typedef std::ostringstream tostringstream; typedef std::istringstream tistringstream; @@ -79,8 +79,8 @@ # if defined _ISTREAM_ || defined _GLIBCXX_ISTREAM typedef std::istream tistream; # endif //_ISTREAM_ -# if defined _OSTREAM_ || defined _GLIBCXX_OSTREAM -# if defined _ISTREAM_ || defined _GLIBCXX_ISTREAM +# if defined _OSTREAM_ || defined _CPP_OSTREAM || defined _GLIBCXX_OSTREAM +# if defined _ISTREAM_ || defined _CPP_ISTREAM || defined _GLIBCXX_ISTREAM typedef std::iostream tiostream; # endif //_ISTREAM_ # endif //_OSTREAM_ |
|
From: andrew7 <bd...@us...> - 2006-12-18 01:05:08
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24600/include/smartwin Modified Files: GCCHeaders.h Log Message: lowercase shellapi.h instead of Shellapi.h for linux. Index: GCCHeaders.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/GCCHeaders.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GCCHeaders.h 16 Dec 2006 16:01:32 -0000 1.5 +++ GCCHeaders.h 18 Dec 2006 01:05:03 -0000 1.6 @@ -50,7 +50,7 @@ #include <tchar.h> #include <winuser.h> #include <windowsx.h> - #include <Shellapi.h> + #include <shellapi.h> #include <commctrl.h> #include <assert.h> |
|
From: andrew7 <bd...@us...> - 2006-12-17 16:44:12
|
Update of /cvsroot/smartwin/SmartWin/tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24702/tests Modified Files: testcheck.html Log Message: Show fix to WidgetSplitter and that adding the resource file to the .dev for WidgetDialog fixed that problem too. Index: testcheck.html =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/testcheck.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- testcheck.html 10 Dec 2006 22:46:18 -0000 1.7 +++ testcheck.html 17 Dec 2006 16:44:06 -0000 1.8 @@ -236,7 +236,7 @@ <TR> <TD>WidgetDialog</TD> <TD>Works as of 9 Dec 2006, asw</TD> - <TD bgColor="yellow"> Compiles, but does not run as of 9 Dec 2006, asw</TD> + <TD>Works as of 16 Dec 2006, asw</TD> <TD>Doesn't exists with a Win CE sample project</TD> <TD></TD> </TR> @@ -361,8 +361,8 @@ </TR> <TR> <TD>WidgetSplitter</TD> - <TD bgColor="red"> Does not appear to work, 10 Dec 2006, asw </TD> - <TD bgColor="red"> Does not appear to work, 10 Dec 2006, asw </TD> + <TD> Works as of 17 Dec 2006, asw </TD> + <TD> Works as of 17 Dec 2006, asw </TD> <TD>Doesn't exists with a Win CE sample project</TD> <TD>works. ASW Nov 13, 2005</TD> </TR> |
|
From: andrew7 <bd...@us...> - 2006-12-17 16:20:28
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetSplitter In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15897/tests/WidgetSplitter Modified Files: Main.cpp Log Message: Change to getBounds( false ) so we get screen position as this program expects. This goes to show that changing APIs should be done with caution, and only after regression testing with all the tests. Index: Main.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetSplitter/Main.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Main.cpp 23 Jun 2006 22:38:14 -0000 1.15 +++ Main.cpp 17 Dec 2006 16:20:24 -0000 1.16 @@ -102,7 +102,7 @@ void splitterMoved( WhichSplitter * split, const SmartWin::Point & pt = SmartWin::Point() ) { - SmartWin::Rectangle rectSplitter = splitter->getBounds(); + SmartWin::Rectangle rectSplitter = splitter->getBounds( false ); SmartWin::Rectangle rectWindow = FactoryType::getBounds(); SmartWin::Rectangle leftRc = rectWindow; leftRc.size.x = rectSplitter.pos.x - rectWindow.pos.x - m_BorderSize; @@ -126,7 +126,7 @@ void windowSized( const SmartWin::WidgetSizedEventResult & newSize ) { - SmartWin::Rectangle rectSplitter = splitter->getBounds(); + SmartWin::Rectangle rectSplitter = splitter->getBounds( false ); SmartWin::Rectangle rectWindow = FactoryType::getBounds(); rectSplitter.pos.x -= ( rectWindow.pos.x + m_BorderSize ); @@ -156,7 +156,7 @@ { WhichSplitter * split2 = dynamic_cast< WhichSplitter * >( split ); split2->setWidth( ( rand()%40 ) + 10 ); - SmartWin::Rectangle rectSplitter = split2->getBounds(); + SmartWin::Rectangle rectSplitter = split2->getBounds( false ); SmartWin::Rectangle rectWindow = FactoryType::getBounds(); rectSplitter.pos.x -= (rectWindow.pos.x + 4 /*Border*/); |
|
From: andrew7 <bd...@us...> - 2006-12-17 16:18:09
|
Update of /cvsroot/smartwin/SmartWin/tests/HelloSmartWinWorld In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14982/tests/HelloSmartWinWorld Modified Files: HelloSmartWinWorld.dev Log Message: For this project, strip the exeecutable and don't include debug info giving 452 kb. Index: HelloSmartWinWorld.dev =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/HelloSmartWinWorld/HelloSmartWinWorld.dev,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HelloSmartWinWorld.dev 8 Sep 2005 21:18:47 -0000 1.3 +++ HelloSmartWinWorld.dev 17 Dec 2006 16:18:05 -0000 1.4 @@ -27,7 +27,7 @@ IncludeVersionInfo=0 SupportXPThemes=0 CompilerSet=0 -CompilerSettings=0000000000000000000000 +CompilerSettings=0000000000000000000100 [Unit1] FileName=Main.cpp |
|
From: andrew7 <bd...@us...> - 2006-12-16 23:55:50
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetDialog In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2434/tests/WidgetDialog Added Files: WidgetDialog.dev Log Message: First version of .dev file for WidgetDialog --- NEW FILE: WidgetDialog.dev --- [Project] FileName=WidgetDialog.dev Name=Main UnitCount=2 Type=0 Ver=1 ObjFiles= Includes=.\..\..\include Libs=..\..\smartwin PrivateResource=WidgetDialog_private.rc ResourceIncludes= MakeIncludes= Compiler= CppCompiler= Linker=../../lib/libSmartWin.a_@@_-lcomctl32_@@_ IsCpp=1 Icon= ExeOutput= ObjectOutput= OverrideOutput=0 OverrideOutputName=main.exe HostApplication= Folders= CommandLine= UseCustomMakefile=0 CustomMakefile= IncludeVersionInfo=0 SupportXPThemes=0 CompilerSet=0 CompilerSettings=0000000000000001000000 [Unit1] FileName=Main.cpp CompileCpp=1 Folder= Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [VersionInfo] Major=0 Minor=1 Release=1 Build=1 LanguageID=1033 CharsetID=1252 CompanyName= FileVersion= FileDescription=Developed using the Dev-C++ IDE InternalName= LegalCopyright= LegalTrademarks= OriginalFilename= ProductName= ProductVersion= AutoIncBuildNr=0 [Unit2] FileName=WidgetDialog.rc Folder=Main Compile=1 Link=0 Priority=1000 OverrideBuildCmd=0 BuildCmd= |
|
From: andrew7 <bd...@us...> - 2006-12-16 16:01:36
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11295/include/smartwin Modified Files: GCCHeaders.h Log Message: Add #define SPI_SETUIEFFECTS 0x103F for GCC Index: GCCHeaders.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/GCCHeaders.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- GCCHeaders.h 10 Sep 2006 08:11:01 -0000 1.4 +++ GCCHeaders.h 16 Dec 2006 16:01:32 -0000 1.5 @@ -77,10 +77,15 @@ // Additional (gcc, normally) stuff + #ifndef SPI_GETUIEFFECTS + #define SPI_GETUIEFFECTS 0x103E + #endif //! SPI_GETUIEFFECTS + #ifndef SPI_SETUIEFFECTS #define SPI_SETUIEFFECTS 0x103F #endif //! SPI_SETUIEFFECTS + #ifndef GCLP_HCURSOR #define GCLP_HCURSOR (-12) #endif //! GCLP_HCURSOR |
|
From: andrew7 <bd...@us...> - 2006-12-16 15:48:56
|
Update of /cvsroot/smartwin/SmartWin/source In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5630/source Modified Files: Application.cpp Log Message: Only SPI_SETUIEFFECTS if needed, thus avoiding uneeded desktop refresh. Index: Application.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/source/Application.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- Application.cpp 18 Aug 2006 19:08:11 -0000 1.42 +++ Application.cpp 16 Dec 2006 15:48:51 -0000 1.43 @@ -99,8 +99,12 @@ void Application::neededSmartWinInit() { #ifndef WINCE - BOOL enable = TRUE; - ::SystemParametersInfo( SPI_SETUIEFFECTS, 0, & enable, 0 ); + BOOL enable; + ::SystemParametersInfo( SPI_GETUIEFFECTS, 0, & enable, 0 ); + if ( ! enable ) { + enable = TRUE; + ::SystemParametersInfo( SPI_SETUIEFFECTS, 0, & enable, 0 ); + } #endif // Initializing Common Controls... |
|
From: Thomas H. <pol...@us...> - 2006-12-15 14:06:03
|
Update of /cvsroot/smartwin/WebSite In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27980 Modified Files: common.php index.php Added Files: resources.php Log Message: Index: common.php =================================================================== RCS file: /cvsroot/smartwin/WebSite/common.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- common.php 6 Mar 2006 19:45:50 -0000 1.13 +++ common.php 15 Dec 2006 14:05:55 -0000 1.14 @@ -77,7 +77,7 @@ */ $subnav['home'] = '<a href="index.php">SmartWin Home</a> :: <a href="news.php">Project News</a>'; $subnav['download'] = '<a href="http://sourceforge.net/project/showfiles.php?group_id=92327">Download</a>'; - $subnav['support'] = '<a href="faq.php">FAQs</a> :: <a href="http://smartwinlib.org/doc/">Documentation</a> :: <a href="http://smartwinlib.org/wiki/index.php/Tutorials">Tutorials</a> :: <a href="http://sourceforge.net/forum/?group_id=92327">Support Forum</a> :: <a href="http://sourceforge.net/mail/?group_id=92327">Mailing Lists</a>'; + $subnav['support'] = '<a href="faq.php">FAQs</a> :: <a href="http://smartwinlib.org/doc/">Documentation</a> :: <a href="http://smartwinlib.org/wiki/index.php/Tutorials">Tutorials</a> :: <a href="http://sourceforge.net/forum/?group_id=92327">Support Forum</a> :: <a href="http://sourceforge.net/mail/?group_id=92327">Mailing Lists</a> :: <a href="resources.php">Resources</a>'; $subnav['wiki'] = '<a href="http://smartwinlib.org/wiki/index.php/Main_Page">Wiki</a>'; $subnav['about'] = '<a href="team.php">The SmartWin++ Team</a> :: <a href="about.php">About</a> :: <a href="screenshots.php">Screenshots</a> :: <a href="status.php">Status</a>'; $subnav['sourceforge'] = '<a href="http://www.sourceforge.net/projects/smartwin/">Project Page</a> :: <a href="http://www.sourceforge.net/export/rss2_project.php?group_id=92327">RSS Feeds</a> :: <a href="http://www.sourceforge.net/project/project_donations.php?group_id=92327">Donate</a>'; --- NEW FILE: resources.php --- <?php include('common.php'); do_header('home', TRUE, 'Resources for SmartWin++'); ?> <span style="margin: 14px 0px 2px 8px; float:right;"> <a href="justified.php"><img src="why.jpg" alt="Why another GUI library? Click here."></a><br/> <a href="http://smartwinlib.org/wiki/index.php/Your_first_SmartWin_application" style="margin-top: 4px;"> <img src="get-started.jpg" alt="Get started quickly and easily! Click here."> </a><br/> <a href="http://sourceforge.net/project/showfiles.php?group_id=92327" style="margin-top: 4px;"> <img src="download.jpg" alt="Download Smartwin++! Click here."> </a> </span> <h1>Resources for SmartWin++</h1> <ul> <li><a href="http://sallyide.sourceforge.net/">Sally - A Simple C++ IDE</a> for doing SmartWin++ development, probably the best an easiest way to start utilizing SmartWin++</li> <li><a href="http://www.winehq.com/site/winelib">WineLib</a> for compilation on *Nix</li> <li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&displaylang=en">Microsoft (Visual C++ 2003 Toolkit)</a> free C++ compiler from Microsoft</li> <li><a href="http://www.bloodshed.net/devcpp.html">Bloodsheds (Dev-C++).</a> for those wanting to use GCC with a minimalistic IDE</li> <li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en">download the Windows Server 2003 SP1 Platform SDK.</a> Needed for using the VC++ 2003 Toolkit</li> <li><a href="http://www.eclipse.org/">Eclipse</a> a free IDE but here you're on your own when configuring for using a compiler</li> </ul> <?php do_footer(); ?> Index: index.php =================================================================== RCS file: /cvsroot/smartwin/WebSite/index.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- index.php 13 Dec 2006 14:29:31 -0000 1.18 +++ index.php 15 Dec 2006 14:05:55 -0000 1.19 @@ -10,30 +10,27 @@ <span style="margin: 14px 0px 2px 8px; float:right;"> <a href="justified.php"><img src="why.jpg" alt="Why another GUI library? Click here."></a><br/> - <a href="http://smartwinlib.org/wiki/index.php/Your_first_SmartWin_application" style="margin-top: 4px;"> + <a href="wiki/index.php/Your_first_SmartWin_application" style="margin-top: 4px;"> <img src="get-started.jpg" alt="Get started quickly and easily! Click here."> </a><br/> - <a href="http://sourceforge.net/project/showfiles.php?group_id=92327" style="margin-top: 4px;"> - <img src="download.jpg" alt="Download Smartwin++! Click here."> - </a> </span> <h1>An Open Source C++ GUI library.</h1> <p>SmartWin++ is a 100% free C++ GUI and SOAP library for developing Windows applications both on Desktop, Pocket PC, Windows Mobile or Windows CE based systems, it's free both as in "free beer" and as in "free speech", you can freely use SmartWin++ for commercial applications and for Open Source applications thanx to its BSD license!<br/> -SmartWin++ was initially made to replace MFC and WTL but today thanx to <a href="http://www.winehq.com/site/winelib">WineLib</a> it can also be used on non-Windows systems. +SmartWin++ was initially made to replace MFC and WTL but today thanx to <a href="resources.php">WineLib</a> it can also be used on non-Windows systems. SmartWin++ is a modern designed C++ library, it uses STL where possible and boost where needed, but if you download SmartWin++ you don't need to bother downloading boost, everything you need is bundled in the download except for the C++ compiler.<br> Good compilers can be found for free either at -<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&displaylang=en">Microsoft (Visual C++ 2003 Toolkit)</a> or at -<a href="http://www.bloodshed.net/devcpp.html">Bloodsheds (Dev-C++).</a><br> +<a href="resources.php">Microsoft (Visual C++ 2003 Toolkit)</a> or at +<a href="resources.php">Bloodsheds (Dev-C++).</a><br> If you're using Dev-C++ everything you need is bundled with the compiler as long as you download the version bundled with MingW/gcc 3.4.2, if you want to use the VC Toolkit you need to also -<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en">download the Windows Server 2003 SP1 Platform SDK.</a><br> +<a href="resources.php">download the Windows Server 2003 SP1 Platform SDK.</a><br> If you're downloading Dev-C++ you also get a free IDE and you'll probably easier manage to configure everything then by doing everything "by hand" with the VC++ Toolkit. -If you're determined to still use the VC++ Toolkit you might want to have a look at <a href="http://www.eclipse.org/">Eclipse</a> which is a free IDE which can be configured +If you're determined to still use the VC++ Toolkit you might want to have a look at <a href="resources.php">Eclipse</a> which is a free IDE which can be configured to use the VC++ Toolkit, though here you're on your own...<br/> Of course if you're owning a full copy of either Visual Studio C++ 7.1 or Visual Studio C++ 2005 you're home free and get to use the full IDE!<br/> -Last but not least I'd like to especially put forth <a href="http://sallyide.sourceforge.net/">Sally - A Simple C++ IDE</a> which is an IDE especially made to support e.g. SmartWin++, Sally is a truly impressive IDE and gives you among other things true WYSIWYG and RAD capabillities for your SmartWin++ projects!<br> +Last but not least I'd like to especially put forth <a href="resources.php">Sally - A Simple C++ IDE</a> which is an IDE especially made to support e.g. SmartWin++, Sally is a truly impressive IDE and gives you among other things true WYSIWYG and RAD capabillities for your SmartWin++ projects!<br> Though Sally is still in its early Beta stages it's definitely worth a check!<br> SmartWin++ officially supports these compilers:<br/><br/> |
|
From: Thomas H. <pol...@us...> - 2006-12-13 14:29:37
|
Update of /cvsroot/smartwin/WebSite In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27382 Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/smartwin/WebSite/index.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- index.php 22 Mar 2006 20:17:26 -0000 1.17 +++ index.php 13 Dec 2006 14:29:31 -0000 1.18 @@ -54,6 +54,9 @@ If you want to have more background information about SmartWin++ I suggest you browse around this website and especially look at our wiki since that's where you'll find the most information about SmartWin++.<br/> <br/> +<a href="http://www.frostinnovation.com/Blog.aspx">Btw, here's my personal blog</a> where I'll ocasionally write about SmartWin++ and other programming related stuff I come across... +<br/> +<br/> Happy SmartWinning! </p> |
|
From: Conrado P. <con...@us...> - 2006-12-11 23:54:34
|
Update of /cvsroot/smartwin/SmartWin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv22670 Modified Files: changelog.txt Log Message: Added removeItem to WidgetComboBox Added redrawItems to WidgetDataGrid Index: changelog.txt =================================================================== RCS file: /cvsroot/smartwin/SmartWin/changelog.txt,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- changelog.txt 9 Dec 2006 22:06:10 -0000 1.70 +++ changelog.txt 11 Dec 2006 23:54:00 -0000 1.71 @@ -15,6 +15,9 @@ - Added setItemText, getCount, onPopup, removeAllItems, isSystemMenu to WidgetMenuExtended +- Added removeItem to WidgetComboBox + +- Added redrawItems to WidgetDataGrid ******************************************************************************** Version 2.0.0 RC2, 20th of August 2006 |