[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.5,1.6 pglistboxba
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.5,1.6 pglistboxbaseitem.cpp,1.4,1.5 pgwidgetlist.cpp,1.9,1.10 |
Date: |
Tue, 30 Apr 2002 06:18:41 -0400 |
Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv24317/src/widgets
Modified Files:
pglistbox.cpp pglistboxbaseitem.cpp pgwidgetlist.cpp
Log Message:
generalized removing of child widgets from lists
moved some app specific functions from PG_MessageBox to PG_Application
Index: pglistbox.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistbox.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** pglistbox.cpp 30 Apr 2002 08:46:13 -0000 1.5
--- pglistbox.cpp 30 Apr 2002 10:18:39 -0000 1.6
***************
*** 157,158 ****
--- 157,171 ----
item->Select();
}
+
+ bool PG_ListBox::RemoveChild(PG_Widget* child) {
+ if(child == NULL) {
+ return false;
+ }
+
+ if(PG_Widget::RemoveChild(child)) {
+ RemoveItem(static_cast<PG_ListBoxBaseItem*>(child));
+ return true;
+ }
+
+ return false;
+ }
Index: pglistboxbaseitem.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistboxbaseitem.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pglistboxbaseitem.cpp 30 Apr 2002 08:46:13 -0000 1.4
--- pglistboxbaseitem.cpp 30 Apr 2002 10:18:39 -0000 1.5
***************
*** 40,44 ****
PG_ListBoxBaseItem::~PG_ListBoxBaseItem() {
- GetParent()->RemoveItem(this);
}
--- 40,43 ----
Index: pgwidgetlist.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidgetlist.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** pgwidgetlist.cpp 30 Apr 2002 09:08:00 -0000 1.9
--- pgwidgetlist.cpp 30 Apr 2002 10:18:39 -0000 1.10
***************
*** 565,566 ****
--- 565,578 ----
ScrollTo(w, direction);
}
+
+ bool PG_WidgetList::RemoveChild(PG_Widget* child) {
+ if(child == NULL) {
+ return false;
+ }
+
+ if(PG_Widget::RemoveChild(child)) {
+ return RemoveWidget(child, true, true);
+ }
+
+ return false;
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.5,1.6 pglistboxbaseitem.cpp,1.4,1.5 pgwidgetlist.cpp,1.9,1.10,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/widgets pgwidgetlist.cpp,1.8,1.9
- Next by Date:
[paragui-cvs] CVS: paragui/include pgapplication.h,1.6,1.7 pglistbox.h,1.6,1.7 pgmessageobject.h,1.7,1.8 pgwidget.h,1.7,1.8 pgwidgetlist.h,1.7,1.8
- Previous by thread:
[paragui-cvs] CVS: paragui/src/widgets pgwidgetlist.cpp,1.8,1.9
- Next by thread:
[paragui-cvs] CVS: paragui/include pgapplication.h,1.6,1.7 pglistbox.h,1.6,1.7 pgmessageobject.h,1.7,1.8 pgwidget.h,1.7,1.8 pgwidgetlist.h,1.7,1.8
- Index(es):