[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.3.6.2,1.3.6.3 pgr
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.3.6.2,1.3.6.3 pgradiobutton.cpp,1.3,1.3.6.1 pgwidget.cpp,1.4.4.5,1.4.4.6 |
Date: |
Mon, 10 Jun 2002 12:44:09 -0400 |
Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv19167/src/widgets
Modified Files:
Tag: devel-1-0
pglistbox.cpp pgradiobutton.cpp pgwidget.cpp
Log Message:
final fix for deleting listboxitems within the callback handler
added SetAlignment for PG_RadioButton
Index: pglistbox.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistbox.cpp,v
retrieving revision 1.3.6.2
retrieving revision 1.3.6.3
diff -C2 -r1.3.6.2 -r1.3.6.3
*** pglistbox.cpp 2 May 2002 08:45:36 -0000 1.3.6.2
--- pglistbox.cpp 10 Jun 2002 16:44:06 -0000 1.3.6.3
***************
*** 115,118 ****
--- 115,121 ----
my_selectedItem = NULL;
PG_WidgetList::DeleteAll();
+ ScrollToX(0);
+ ScrollToY(0);
+ Update();
}
Index: pgradiobutton.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgradiobutton.cpp,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgradiobutton.cpp 15 Apr 2002 13:35:36 -0000 1.3
--- pgradiobutton.cpp 10 Jun 2002 16:44:06 -0000 1.3.6.1
***************
*** 170,181 ****
}
- /*void PG_RadioButton::SetTextFormat(const char* text, ...) {
- va_list ap;
- va_start(ap, text);
-
- my_widgetLabel->SetTextFormat(text, ap);
- }*/
-
const char* PG_RadioButton::GetText() {
return my_widgetLabel->GetText();
}
--- 170,178 ----
}
const char* PG_RadioButton::GetText() {
return my_widgetLabel->GetText();
+ }
+
+ void PG_RadioButton::SetAlignment(int a) {
+ my_widgetLabel->SetAlignment(a);
}
Index: pgwidget.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidget.cpp,v
retrieving revision 1.4.4.5
retrieving revision 1.4.4.6
diff -C2 -r1.4.4.5 -r1.4.4.6
*** pgwidget.cpp 10 Jun 2002 12:15:42 -0000 1.4.4.5
--- pgwidget.cpp 10 Jun 2002 16:44:06 -0000 1.4.4.6
***************
*** 57,62 ****
PG_RectList* childList;
- SDL_mutex* mutexProcess;
-
char* userdata;
int userdatasize;
--- 57,60 ----
***************
*** 147,151 ****
my_colorBorder[1][1].b = 134;
- my_internaldata->mutexProcess = SDL_CreateMutex();
my_internaldata->id = -1;
my_internaldata->transparency = 0;
--- 145,148 ----
***************
*** 220,226 ****
RemoveFromWidgetList();
- // unlock process mutex
- SDL_DestroyMutex(my_internaldata->mutexProcess);
-
// remove childlist
delete my_internaldata->childList;
--- 217,220 ----
***************
*** 518,523 ****
bool PG_Widget::ProcessEvent(const SDL_Event * event, bool bModal) {
- SDL_mutexP(my_internaldata->mutexProcess);
-
bool processed = false;
// do i have a capturehook set ? (modal)
--- 512,515 ----
***************
*** 535,539 ****
if(processed) {
- SDL_mutexV(my_internaldata->mutexProcess);
return processed;
}
--- 527,530 ----
***************
*** 543,552 ****
if(PG_MessageObject::ProcessEvent(event)) {
- SDL_mutexV(my_internaldata->mutexProcess);
return true;
}
if(bModal) {
- SDL_mutexV(my_internaldata->mutexProcess);
return processed;
}
--- 534,541 ----
***************
*** 556,565 ****
if(GetParent()) {
if(GetParent()->ProcessEvent(event)) {
- SDL_mutexV(my_internaldata->mutexProcess);
return true;
}
}
-
- SDL_mutexV(my_internaldata->mutexProcess);
return false;
--- 545,551 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.3.6.2,1.3.6.3 pgradiobutton.cpp,1.3,1.3.6.1 pgwidget.cpp,1.4.4.5,1.4.4.6,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/include pgradiobutton.h,1.3,1.3.6.1
- Next by Date:
[paragui-cvs] CVS: paragui/test listbox.cpp,1.1.2.1,1.1.2.2 paratest.cpp,1.2.6.1,1.2.6.2
- Previous by thread:
[paragui-cvs] CVS: paragui/include pgradiobutton.h,1.3,1.3.6.1
- Next by thread:
[paragui-cvs] CVS: paragui/test listbox.cpp,1.1.2.1,1.1.2.2 paratest.cpp,1.2.6.1,1.2.6.2
- Index(es):