'Edit' and 'gallery' button for symbol editor

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@522 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-07 18:04:02 +00:00
parent a3b2403858
commit d4e46e06d8
6 changed files with 103 additions and 11 deletions
-7
View File
@@ -43,13 +43,6 @@ void SymbolValueViewer::draw(RotatedDC& dc) {
// todo : labels?
dc.DrawBitmap(symbols[i], style().getPos() + RealSize(i * (wh + 2), 0));
}
// draw helper text if there are no symbols
if (symbols.empty()) {
dc.SetFont(wxFont(10,wxSWISS,wxNORMAL,wxNORMAL));
dc.SetTextForeground(*wxBLACK);
RealSize text_size = dc.GetTextExtent(_("double click to edit symbol"));
dc.DrawText(_("double click to edit symbol"), align_in_rect(ALIGN_MIDDLE_CENTER, text_size, style().getRect()));
}
}
void SymbolValueViewer::onValueChange() {