paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/test array.cpp,NONE,1.1.2.1 Makefile.am,1.2.


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/test array.cpp,NONE,1.1.2.1 Makefile.am,1.2.6.11,1.2.6.12
Date: Fri, 14 Mar 2003 02:50:17 -0500

Update of /cvsroot/paragui/paragui/test
In directory subversions:/tmp/cvs-serv13965/test

Modified Files:
      Tag: devel-1-0
        Makefile.am 
Added Files:
      Tag: devel-1-0
        array.cpp 
Log Message:
added array sample



--- NEW FILE ---
#include "paragui.h"
#include "pgapplication.h"
#include "pgthemewidget.h"
#include "pglabel.h"

class PG_ArrayWidget : public PG_ThemeWidget {
public:

        PG_ArrayWidget(PG_Widget* parent, const PG_Rect& r) : 
PG_ThemeWidget(parent, r) {
                for(int i=0; i<10; i++) {
                        lines[i] = new PG_Label(this, PG_Rect(0,i*25,150,25), 
"line");
                }
        }
        
protected:
        PG_Label* lines[10];
};

int main( int argc, char **argv )
{
        PG_Application app;
        
        app.LoadTheme( "default" );
        
        app.InitScreen( 640, 480, 0 );
        app.SetEmergencyQuit(true);
        
        PG_ArrayWidget a(NULL, PG_Rect(50,50,150,250)); 
        a.Show();
        app.Run();
        
        return 0;
}

Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/test/Makefile.am,v
retrieving revision 1.2.6.11
retrieving revision 1.2.6.12
diff -C2 -r1.2.6.11 -r1.2.6.12
*** Makefile.am 8 Mar 2003 18:11:28 -0000       1.2.6.11
--- Makefile.am 14 Mar 2003 07:49:56 -0000      1.2.6.12
***************
*** 3,7 ****
  AUTOMAKE_OPTIONS = foreign
  
! noinst_PROGRAMS = writefile stress1 stress2 listbox animation dropdown 
paratest dblbuffer navtest windowtest layouttest windowresize
  
  writefile_SOURCES = writefile.cpp
--- 3,10 ----
  AUTOMAKE_OPTIONS = foreign
  
! noinst_PROGRAMS = array writefile stress1 stress2 listbox animation dropdown 
paratest dblbuffer navtest windowtest layouttest windowresize
! 
! array_SOURCES = array.cpp
! array_LDADD = -L../src $(PARAGUI_LIBS)
  
  writefile_SOURCES = writefile.cpp





reply via email to

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