[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/widgets pglistboxbaseitem.cpp,1.6,1.7 pgl
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/widgets pglistboxbaseitem.cpp,1.6,1.7 pglistboxitem.cpp,1.7,1.8 |
Date: |
Fri, 28 Jun 2002 06:33:53 -0400 |
Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv25668/src/widgets
Modified Files:
pglistboxbaseitem.cpp pglistboxitem.cpp
Log Message:
layout loader work
Index: pglistboxbaseitem.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistboxbaseitem.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** pglistboxbaseitem.cpp 26 Jun 2002 16:00:21 -0000 1.6
--- pglistboxbaseitem.cpp 28 Jun 2002 10:33:50 -0000 1.7
***************
*** 30,34 ****
#include "pglistbox.h"
! PG_ListBoxBaseItem::PG_ListBoxBaseItem(PG_ListBox* parent, int height, void*
userdata) : PG_Label(NULL, PG_Rect(0,0,100,20), NULL) {
my_userdata = userdata;
my_selected = false;
--- 30,34 ----
#include "pglistbox.h"
! PG_ListBoxBaseItem::PG_ListBoxBaseItem(PG_ListBox* parent, int height, void*
userdata) : PG_Label(parent, PG_Rect(0,0,100,20), NULL) {
my_userdata = userdata;
my_selected = false;
***************
*** 37,41 ****
SetAlignment(PG_TA_LEFT);
! parent->AddChild(this);
}
--- 37,45 ----
SetAlignment(PG_TA_LEFT);
!
! if(parent != NULL) {
! SizeWidget(parent->w, height);
! }
! //parent->AddChild(this);
}
***************
*** 73,76 ****
--- 77,83 ----
void PG_ListBoxBaseItem::eventSizeWidget(Uint16 w, Uint16 h) {
my_itemheight = h;
+ if(GetParent() != NULL) {
+ PG_Label::eventSizeWidget(GetParent()->w, h);
+ }
}
Index: pglistboxitem.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistboxitem.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** pglistboxitem.cpp 26 Jun 2002 16:00:21 -0000 1.7
--- pglistboxitem.cpp 28 Jun 2002 10:33:50 -0000 1.8
***************
*** 30,35 ****
--- 30,38 ----
#include "pglistbox.h"
#include "pgtheme.h"
+ #include "pglog.h"
PG_ListBoxItem::PG_ListBoxItem(PG_ListBox* parent, int height, const char*
text, SDL_Surface* icon, void* userdata, const char* style) :
PG_ListBoxBaseItem(parent, height, userdata) {
+
+ PG_LogDBG("PG_ListBoxItem::PG_ListBoxItem(%08x)", parent);
for(int i=0; i<3; i++) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pglistboxbaseitem.cpp,1.6,1.7 pglistboxitem.cpp,1.7,1.8,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/test factory.cpp,1.4,1.5 pokus.xml,1.1.1.1,1.2 xmlloader.cpp,1.2,1.3
- Next by Date:
[paragui-cvs] CVS: paragui/test pokus.xml,1.2,1.3
- Previous by thread:
[paragui-cvs] CVS: paragui/test factory.cpp,1.4,1.5 pokus.xml,1.1.1.1,1.2 xmlloader.cpp,1.2,1.3
- Next by thread:
[paragui-cvs] CVS: paragui/test pokus.xml,1.2,1.3
- Index(es):