paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/include Makefile.am,1.8,1.9 pgbutton.h,1.6,1.


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/include Makefile.am,1.8,1.9 pgbutton.h,1.6,1.7 pgfactory.h,1.1,1.2 pgthemewidget.h,1.4,1.5 pgwidget.h,1.13,1.14
Date: Wed, 26 Jun 2002 07:22:20 -0400

Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv8693/include

Modified Files:
        Makefile.am pgbutton.h pgfactory.h pgthemewidget.h pgwidget.h 
Log Message:
basic factory stuff



Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/include/Makefile.am,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Makefile.am 25 Jun 2002 21:21:00 -0000      1.8
--- Makefile.am 26 Jun 2002 11:22:17 -0000      1.9
***************
*** 54,58 ****
        pgnotebook.h \
        pgfilelist.h \
!       pgsingleton.h
  
  EXTRA_DIST = \
--- 54,59 ----
        pgnotebook.h \
        pgfilelist.h \
!       pgsingleton.h \
!       pgfactory.h
  
  EXTRA_DIST = \

Index: pgbutton.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgbutton.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** pgbutton.h  27 Apr 2002 15:36:54 -0000      1.6
--- pgbutton.h  26 Jun 2002 11:22:17 -0000      1.7
***************
*** 129,133 ****
        @param style themestyle of the button
        */
!       PG_Button(PG_Widget* parent, int id, const PG_Rect& r, const char* text 
= NULL, const char* style="Button");
  
        /**  */
--- 129,133 ----
        @param style themestyle of the button
        */
!       PG_Button(PG_Widget* parent, int id = -1, const PG_Rect& r = PG_Rect(), 
const char* text = NULL, const char* style="Button");
  
        /**  */

Index: pgfactory.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgfactory.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pgfactory.h 25 Jun 2002 20:38:42 -0000      1.1
--- pgfactory.h 26 Jun 2002 11:22:17 -0000      1.2
***************
*** 23,28 ****
  namespace PG_Factory {
  
!       template<class t> void RegisterClass(const std::string& classname);
        
        PG_Widget* CreateObject(const std::string& classname, PG_Widget* parent 
= NULL);
        
--- 23,34 ----
  namespace PG_Factory {
  
!       typedef PG_Widget* (*CREATEFN)(PG_Widget* parent = NULL);
        
+       void RegisterCreateFn(const std::string& classname, CREATEFN fn);
+       
+       template<class T> void RegisterClass(const std::string& classname) {
+               RegisterCreateFn(classname, 
(CREATEFN)&PG_FactoryObject<T>::CreateObject);
+       }
+               
        PG_Widget* CreateObject(const std::string& classname, PG_Widget* parent 
= NULL);
        

Index: pgthemewidget.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgthemewidget.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pgthemewidget.h     27 Apr 2002 15:36:55 -0000      1.4
--- pgthemewidget.h     26 Jun 2002 11:22:17 -0000      1.5
***************
*** 88,92 ****
        All drawing operations can be done via the eventBlit() callback handler.
        */
!       PG_ThemeWidget(PG_Widget* parent, const PG_Rect& r, const char* 
style="ThemeWidget");   
  
        /**
--- 88,92 ----
        All drawing operations can be done via the eventBlit() callback handler.
        */
!       PG_ThemeWidget(PG_Widget* parent, const PG_Rect& r = PG_Rect(), const 
char* style="ThemeWidget");       
  
        /**

Index: pgwidget.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgwidget.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** pgwidget.h  6 May 2002 10:40:49 -0000       1.13
--- pgwidget.h  26 Jun 2002 11:22:17 -0000      1.14
***************
*** 81,85 ****
        This is the constructor for the PG_Widget class (really!)
        */
!       PG_Widget(PG_Widget* parent, const PG_Rect& rect);
  
        /**
--- 81,85 ----
        This is the constructor for the PG_Widget class (really!)
        */
!       PG_Widget(PG_Widget* parent, const PG_Rect& rect = PG_Rect());
  
        /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]