[dasher] Added Gtk2 options for speech/clipboard/control mode
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher] Added Gtk2 options for speech/clipboard/control mode
- Date: Tue, 18 Jan 2011 17:19:06 +0000 (UTC)
commit 7b047ba0589154cd2855fa01e8d89054a94c654f
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date: Tue Dec 21 19:38:15 2010 +0000
Added Gtk2 options for speech/clipboard/control mode
Clipboard currently non-functional whether checkbox on/off, tho!
Data/GUI/dasher.preferences.ui | 127 ++++++++++++++++++++++++++++++++++++++++
Src/Gtk2/Preferences.cpp | 9 +++-
2 files changed, 135 insertions(+), 1 deletions(-)
---
diff --git a/Data/GUI/dasher.preferences.ui b/Data/GUI/dasher.preferences.ui
index 57cd82f..c4967ff 100644
--- a/Data/GUI/dasher.preferences.ui
+++ b/Data/GUI/dasher.preferences.ui
@@ -1220,6 +1220,133 @@ your writing speed.</property>
<property name="position">3</property>
</packing>
</child>
+ <child>
+ <object class="GtkAlignment" id="alignment52">
+ <property name="visible">True</property>
+ <property name="top_padding">4</property>
+ <property name="left_padding">24</property>
+ <child>
+ <object class="GtkVBox" id="vbox51">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkCheckButton" id="control_has_copy">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Include Clipboard commands</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="control_has_speech">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Include Speech commands</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="control_has_halt">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Force to have Halt command</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="control_has_edit">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Include Editing commands</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="copy_all_on_stop">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Copy All on stop</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="speak_all_on_stop">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Speak All on stop</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="speak_words">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="label" translatable="yes">Speak words as you write</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal handler="generic_bool_changed" name="clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">7</property>
+ </packing>
+ </child>
</object>
</child>
</object>
diff --git a/Src/Gtk2/Preferences.cpp b/Src/Gtk2/Preferences.cpp
index ab88c9a..0f921d3 100644
--- a/Src/Gtk2/Preferences.cpp
+++ b/Src/Gtk2/Preferences.cpp
@@ -46,7 +46,14 @@ BoolTranslation sBoolTranslationTable[] = {
{BP_START_SPACE, "spacebutton", NULL},
{BP_STOP_OUTSIDE, "winpausebutton", NULL},
{BP_AUTO_SPEEDCONTROL, "adaptivebutton", NULL},
- {BP_LM_ADAPTIVE, "cb_adaptive", NULL}
+ {BP_LM_ADAPTIVE, "cb_adaptive", NULL},
+ {BP_CONTROL_MODE_HAS_COPY,"control_has_copy",NULL},
+ {BP_CONTROL_MODE_HAS_SPEECH,"control_has_speech",NULL},
+ {BP_CONTROL_MODE_HAS_HALT,"control_has_halt",NULL},
+ {BP_CONTROL_MODE_HAS_EDIT,"control_has_edit",NULL},
+ {BP_COPY_ALL_ON_STOP,"copy_all_on_stop",NULL},
+ {BP_SPEAK_ALL_ON_STOP,"speak_all_on_stop",NULL},
+ {BP_SPEAK_WORDS,"speak_words",NULL}
};
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]