[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/test factory.cpp,1.2,1.3
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/test factory.cpp,1.2,1.3 |
Date: |
Wed, 26 Jun 2002 09:21:44 -0400 |
Update of /cvsroot/paragui/paragui/test
In directory subversions:/tmp/cvs-serv28872/test
Modified Files:
factory.cpp
Log Message:
factory, factory, factory,...
again
Index: factory.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/test/factory.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** factory.cpp 26 Jun 2002 11:45:07 -0000 1.2
--- factory.cpp 26 Jun 2002 13:21:42 -0000 1.3
***************
*** 9,12 ****
--- 9,14 ----
int main( int argc, char **argv ) {
+ typedef PG_FactoryHolder<unsigned long> MyFactory;
+
PG_Application& app = PG_Application::GetInstance();
***************
*** 19,22 ****
--- 21,26 ----
PG_Factory::RegisterClass<PG_Window>("window");
PG_Factory::RegisterClass<PG_Label>("label");
+
+ MyFactory::RegisterClass<PG_Label>(1);
PG_Widget* w = PG_Factory::CreateObject("themewidget");
***************
*** 36,40 ****
wnd->SetTitle("Window");
! PG_Label* l = static_cast<PG_Label*>(PG_Factory::CreateObject("label",
wnd));
l->MoveWidget(PG_Rect(50,50,100,20));
l->SetText("Label");
--- 40,44 ----
wnd->SetTitle("Window");
! PG_Label* l = static_cast<PG_Label*>(MyFactory::CreateObject(1, wnd));
l->MoveWidget(PG_Rect(50,50,100,20));
l->SetText("Label");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/test factory.cpp,1.2,1.3,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/include pgfactory.h,1.6,1.7
- Next by Date:
[paragui-cvs] CVS: paragui/include pgcolumnitem.h,1.4,1.5 pglistbox.h,1.7,1.8 pglistboxbaseitem.h,1.3,1.4 pglistboxitem.h,1.4,1.5 pgwidgetlist.h,1.8,1.9 pgwidgetlistex.h,1.3,1.4
- Previous by thread:
[paragui-cvs] CVS: paragui/include pgfactory.h,1.6,1.7
- Next by thread:
[paragui-cvs] CVS: paragui/include pgcolumnitem.h,1.4,1.5 pglistbox.h,1.7,1.8 pglistboxbaseitem.h,1.3,1.4 pglistboxitem.h,1.4,1.5 pgwidgetlist.h,1.8,1.9 pgwidgetlistex.h,1.3,1.4
- Index(es):