|
From: Peter K. <syn...@us...> - 2006-12-09 16:54:53
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetGraph In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv1700 Modified Files: WidgetGraph.h Main.cpp Log Message: compile with gcc Index: Main.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetGraph/Main.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Main.cpp 30 Nov 2006 01:05:08 -0000 1.10 +++ Main.cpp 9 Dec 2006 16:54:50 -0000 1.11 @@ -108,13 +108,13 @@ void initAndCreate() { - //typename WidgetFactory< sw::WidgetWindow, WidgetGraphTest< Numeric > >::Seed windowCS; - WidgetWindow::Seed windowCS; + typedef typename WidgetGraphTest<Numeric>::WidgetWindow WWType; + typename WWType::Seed windowCS; windowCS.location = SmartWin::Rectangle( 0, 0, 100, 100 ); windowCS.background = CreateSolidBrush( RGB( 0, 0, 125 ) ); windowCS.caption = _T( "Test" ); - this->createWindow( windowCS ); + this->WWType::createWindow( windowCS ); // Creating custom Widget itsGraph = new WidgetGraph< Numeric >( this ); @@ -128,6 +128,7 @@ layout(); onSized( & WidgetGraphTest::isResized ); + } void isResized( const WidgetSizedEventResult & sz ) Index: WidgetGraph.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetGraph/WidgetGraph.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- WidgetGraph.h 30 Nov 2006 01:05:08 -0000 1.8 +++ WidgetGraph.h 9 Dec 2006 16:54:50 -0000 1.9 @@ -29,7 +29,9 @@ void initAndCreate() { - WidgetWindow::Seed windowCS; + typedef typename WidgetGraph::WidgetWindow WWType; + + typename WWType::Seed windowCS; windowCS.exStyle = WS_EX_TOOLWINDOW; windowCS.style = WS_CHILD | WS_THICKFRAME | WS_CAPTION | WS_VISIBLE; |