//=================================================
void WxGimmickView::OnRemove(wxCommandEvent& event)
{
- modifyValidationSignal(false);
- //TODO Select current tree handler
+ //TODO Select current tree handler
wxBusyCursor busy;
GetTreeViewMap()["Local database"]->RemoveSelected();
#include <boost/date_time/gregorian/gregorian.hpp>
-
-
-
const std::string empty_string("");
//=====================================================================
ctrl_style);
level.wxCtrl = ctrl;
level.wxSplitter->Initialize(ctrl);
-
-
+
// Create the columns : one for each attribute of the level
int col = 0;
std::string title;
- tree::LevelDescriptor::AttributeDescriptorListType::const_iterator a;
+
+ tree::LevelDescriptor::AttributeDescriptorListType::const_iterator a;
for (a = handler->GetTree().GetAttributeDescriptorList(i+1).begin();
a != handler->GetTree().GetAttributeDescriptorList(i+1).end();
++a)
std::string temp = a->GetKey();
if (temp.compare("ID") != 0)
{
+
ctrl->InsertColumn(col,
crea::std2wx(title),
col_style);
col++;
}
level.key.push_back(a->GetKey());
-
- // ctrl->SetColumnWidth(col, wxLIST_AUTOSIZE );
-
-
}
}
}
if(erase)
{
+ GetGimmickView()->modifyValidationSignal(false);
bool needRefresh=false;
std::vector<tree::Node*>::const_iterator i;
for (i=sel.begin(); i!=sel.end(); ++i)
if ( GetCtrl(level) == obj ) break;
}
SetSelectedUpToDate(level,false);
+ // to allow a first selection in images TreeView
+ if (level==mLevelList.size()-1)
+ OnItemSelected(event);
}
//================================================================
{
mLevelList[level].SortAscending = false;
}
-
+
SortLevel(level);
}
//================================================================
{
if(event.GetKeyCode() == WXK_DELETE)
{
- RemoveSelected();
- // ClearSelection();
+ wxBusyCursor busy;
+
+ RemoveSelected();
+ GetGimmickView()->ClearSelection();
}
}