예제 #1
0
void HadronLabel::textEditorEscapeKeyPressed(TextEditor& editor)
{
    if (use_modal_editor_) {
        editor.exitModalState(0);
    }
    else {
        Label::textEditorEscapeKeyPressed(editor);
    }
}
예제 #2
0
void HadronLabel::textEditorFocusLost(TextEditor& editor)
{
    if (use_modal_editor_) {
        editor.exitModalState(0);
    }
    else {
        Label::textEditorFocusLost(editor);
    }
}
예제 #3
0
void HadronLabel::textEditorReturnKeyPressed(TextEditor& editor)
{
    if (use_modal_editor_) {
        setText(editor.getText(), true);
        editor.exitModalState(0);
    }
    else {
        Label::textEditorReturnKeyPressed(editor);
    }
}
예제 #4
0
 void textEditorFocusLost (TextEditor& editor)           { editor.exitModalState (0); }
예제 #5
0
 void textEditorEscapeKeyPressed (TextEditor& editor)    { editor.exitModalState (0); }
예제 #6
0
 void textEditorReturnKeyPressed (TextEditor& editor)    { editor.exitModalState (1); }