Beispiel #1
0
void CLevelTool::ZoomObject(BOOL bSelectedOnly)
{
    if( !Scene->locked() ){
        Scene->ZoomExtents(CurrentClassID(),bSelectedOnly);
    } else {
        if (UI->GetEState()==esEditLibrary){
            TfrmEditLibrary::ZoomObject();
        }
    }
}
Beispiel #2
0
void CLevelTools::RealUpdateProperties()
{
	if (m_Props->Visible){
		if (m_Props->IsModified()) Scene->UndoSave();
        ObjectList lst;
        PropItemVec items;
        // scene common props
        Scene->FillProp				("",items,CurrentClassID());
		m_Props->AssignItems		(items);
    }
	m_Flags.set(flUpdateProperties,FALSE);
}
Beispiel #3
0
LPCSTR CLevelTool::GetInfo()
{
	static AnsiString sel;
	int cnt = Scene->SelectionCount(true,CurrentClassID());
	return sel.sprintf(" Sel: %d",cnt).c_str();
}