- Completed the management of add-related actions on the schedulables tree view

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@920 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-20 23:17:32 +00:00
parent 8c3d8b4878
commit d60a7aa25e
7 changed files with 1341 additions and 857 deletions

View file

@ -244,18 +244,6 @@ SchedulablesTreeWidget::_on_add_process()
void
SchedulablesTreeWidget::_on_add_thread()
{
// TreeModel::iterator sel = get_selection()->get_selected();
//
// if(!sel)
// return;
//
// const void* p_handle = (*sel)[_handles_column];
// HandleType type = (*sel)[_types_column];
// Process* p = reinterpret_cast<Process*>(const_cast<void*>(p_handle));
//
// if(p == NULL || type != htype_process)
// return;
Process* p = get_selected_process();
if(p == NULL)
return;
@ -286,26 +274,13 @@ SchedulablesTreeWidget::_on_add_thread()
void
SchedulablesTreeWidget::_on_add_request()
{
// TreeModel::iterator sel = get_selection()->get_selected();
//
// if(!sel)
// return;
//
// const void* p_handle = (*sel)[_handles_column];
// HandleType type = (*sel)[_types_column];
// Thread* t = reinterpret_cast<Thread*>(const_cast<void*>(p_handle));
//
// if(t == NULL || type != htype_thread)
// return;
Thread* t = get_selected_thread();
if(t == NULL)
return;
if(_add_request_dialog->run() == RESPONSE_OK)
{
//FIXME writre code for me :-)
}
_add_request_dialog->construct_request(*t);
_add_request_dialog->hide();
}