[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/test factory.cpp,1.1,1.2
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/test factory.cpp,1.1,1.2 |
Date: |
Wed, 26 Jun 2002 07:45:09 -0400 |
Update of /cvsroot/paragui/paragui/test
In directory subversions:/tmp/cvs-serv9911/test
Modified Files:
factory.cpp
Log Message:
more factory stuff
Index: factory.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/test/factory.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** factory.cpp 26 Jun 2002 11:22:17 -0000 1.1
--- factory.cpp 26 Jun 2002 11:45:07 -0000 1.2
***************
*** 3,6 ****
--- 3,8 ----
#include "pgthemewidget.h"
#include "pgbutton.h"
+ #include "pgwindow.h"
+ #include "pglabel.h"
#include "pgfactory.h"
***************
*** 15,18 ****
--- 17,22 ----
PG_Factory::RegisterClass<PG_ThemeWidget>("themewidget");
PG_Factory::RegisterClass<PG_Button>("button");
+ PG_Factory::RegisterClass<PG_Window>("window");
+ PG_Factory::RegisterClass<PG_Label>("label");
PG_Widget* w = PG_Factory::CreateObject("themewidget");
***************
*** 26,30 ****
b->SetText("Factory");
b->Show();
!
app.Run();
--- 30,45 ----
b->SetText("Factory");
b->Show();
!
! PG_Window* wnd =
static_cast<PG_Window*>(PG_Factory::CreateObject("window"));
!
! wnd->MoveWidget(PG_Rect(100,100,200,300));
! 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");
!
! wnd->Show();
!
app.Run();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/test factory.cpp,1.1,1.2,
Alexander Pipelka <address@hidden> <=