added TextCtrl control for things like card.notes and keyword stuff

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@112 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-11 22:12:46 +00:00
parent f0dd2ae1fa
commit c2a03bc445
11 changed files with 59 additions and 29 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ void ChoiceValueEditor::onLoseFocus() {
drop_down->hide(false);
}
void ChoiceValueEditor::drawSelection(RotatedDC& dc) {
void ChoiceValueEditor::draw(RotatedDC& dc) {
ChoiceValueViewer::draw(dc);
if (nativeLook()) {
draw_drop_down_arrow(&editor(), dc.getDC(), style().getRect().grow(1), drop_down->IsShown());
}
+1 -1
View File
@@ -28,7 +28,7 @@ class ChoiceValueEditor : public ChoiceValueViewer, public ValueEditor {
virtual void onChar(wxKeyEvent& ev);
virtual void onLoseFocus();
virtual void drawSelection(RotatedDC& dc);
virtual void draw(RotatedDC& dc);
virtual void determineSize();
private:
+2 -1
View File
@@ -138,7 +138,8 @@ void ColorValueEditor::onLoseFocus() {
drop_down->hide(false);
}
void ColorValueEditor::drawSelection(RotatedDC& dc) {
void ColorValueEditor::draw(RotatedDC& dc) {
ColorValueViewer::draw(dc);
if (nativeLook()) {
draw_drop_down_arrow(&editor(), dc.getDC(), style().getRect().grow(1), drop_down->IsShown());
}
+1 -1
View File
@@ -27,7 +27,7 @@ class ColorValueEditor : public ColorValueViewer, public ValueEditor {
virtual void onChar(wxKeyEvent& ev);
virtual void onLoseFocus();
virtual void drawSelection(RotatedDC& dc);
virtual void draw(RotatedDC& dc);
virtual void determineSize();
private:
-5
View File
@@ -99,11 +99,6 @@ class ValueEditor {
virtual void determineSize() {}
/// The editor is shown or hidden
virtual void onShow(bool) {}
/// Draw selection indicators
/** note: the drawing of the value is done by the viewer, only a selection indicator is drawn here
*/
virtual void drawSelection(RotatedDC& dc) {}
};
// ----------------------------------------------------------------------------- : Utility