paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/include pgapplication.h,1.3.6.2,1.3.6.3


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/include pgapplication.h,1.3.6.2,1.3.6.3
Date: Thu, 25 Jul 2002 09:10:41 -0400

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

Modified Files:
      Tag: devel-1-0
        pgapplication.h 
Log Message:
added template function GetWidgetByName<T> returning the specified widget type



Index: pgapplication.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgapplication.h,v
retrieving revision 1.3.6.2
retrieving revision 1.3.6.3
diff -C2 -r1.3.6.2 -r1.3.6.3
*** pgapplication.h     17 Jun 2002 11:32:59 -0000      1.3.6.2
--- pgapplication.h     25 Jul 2002 13:10:39 -0000      1.3.6.3
***************
*** 370,373 ****
--- 370,378 ----
        static PG_Widget *GetWidgetByName(const char *Name);
  
+       template<class T>
+       static T* GetWidgetByName(const char* Name) {
+               return static_cast<T*>(GetWidgetByName(Name));
+       }
+       
        /**
         Get widget by id.




reply via email to

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