paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/test list.cpp,NONE,1.1 Makefile.am,1.5,1.6


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/test list.cpp,NONE,1.1 Makefile.am,1.5,1.6
Date: Tue, 30 Apr 2002 04:46:15 -0400

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

Modified Files:
        Makefile.am 
Added Files:
        list.cpp 
Log Message:
fixed the PG_ListBox problem recently introduced by Guillaume



--- NEW FILE ---
#include "paragui.h"
#include "pgapplication.h"
#include "pgtabbar.h"
#include "pglabel.h"
#include "pgnotebook.h"
#include "pglistbox.h"
#include "pglistboxitem.h"
#include "pgcheckbutton.h"
#include "pgwindow.h"
#include "pglog.h"

bool handleListBoxItem(PG_ListBoxItem* item) {
        delete item;
        return true;
}

int main( int argc, char **argv )
{
        PG_Application app;
        
        app.LoadTheme( "default" );
        
        app.InitScreen( 640, 480, 0 );
        app.SetEmergencyQuit(true);
        
        PG_ListBox listbox(NULL, PG_Rect(10,10,300,100));
        listbox.sigSelectItem.connect(slot(handleListBoxItem));
        
        listbox.AddItem(new PG_ListBoxItem(25, "Item1"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item2"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item3"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item4"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item5"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item6"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item7"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item8"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item9"));
        listbox.AddItem(new PG_ListBoxItem(25, "Item10"));
        listbox.Show();
        

        app.Run();
        
        return 0;
}

Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/test/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Makefile.am 28 Apr 2002 09:36:34 -0000      1.5
--- Makefile.am 30 Apr 2002 08:46:13 -0000      1.6
***************
*** 1,5 ****
  AUTOMAKE_OPTIONS = foreign
  
! noinst_PROGRAMS = tabbar animation dropdown paratest dblbuffer navtest 
windowtest layouttest windowresize
  
  tabbar_SOURCES = tabbar.cpp
--- 1,8 ----
  AUTOMAKE_OPTIONS = foreign
  
! noinst_PROGRAMS = listbox tabbar animation dropdown paratest dblbuffer 
navtest windowtest layouttest windowresize
! 
! listbox_SOURCES = list.cpp
! listbox_LDADD = ../src/libparagui.la -lfreetype
  
  tabbar_SOURCES = tabbar.cpp




reply via email to

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