Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 303112 Details for
Bug 199389
no help about shortcuts
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
patch
scim-bridge-0.4.15-bz199389.patch (text/plain), 5.50 KB, created by
Caius Chance
on 2008-04-21 06:43:05 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Caius Chance
Created:
2008-04-21 06:43:05 UTC
Size:
5.50 KB
patch
obsolete
>diff -up scim-bridge-0.4.15/agent/scim-bridge-agent.cpp.1-bz199389 scim-bridge-0.4.15/agent/scim-bridge-agent.cpp >--- scim-bridge-0.4.15/agent/scim-bridge-agent.cpp.1-bz199389 2008-02-24 10:08:43.000000000 +1000 >+++ scim-bridge-0.4.15/agent/scim-bridge-agent.cpp 2008-04-21 16:41:30.000000000 +1000 >@@ -96,6 +96,7 @@ class ScimBridgeAgentImpl: public ScimBr > void quit (); > void load_config (); > void save_config (); >+ ConfigPointer get_config(); > > void add_client_listener (ScimBridgeAgentClientListener *client_listener); > void remove_client_listener (ScimBridgeAgentClientListener *client_listener); >@@ -529,6 +530,27 @@ void ScimBridgeAgentImpl::slot_reload_co > scim_global_config_flush (); > > scim_keyboard_layout = scim_get_default_keyboard_layout (); >+ >+ // Hot key name, hot key config key. >+ // ! Update hotkey_list_length according to updated list length. >+ int hotkey_list_length = 6; >+ String hotkey_list[][2] = { >+ { "Toggle on/off: ", "/Hotkeys/FrontEnd/Trigger" }, >+ { "Turn on: ", "/Hotkeys/FrontEnd/On" }, >+ { "Turn off: ", "/Hotkeys/FrontEnd/Off" }, >+ { "Next input method: ", "/Hotkeys/FrontEnd/NextFactory" }, >+ { "Previous input method: ", "/Hotkeys/FrontEnd/PreviousFactory" }, >+ { "Show input method menu: ", "/Hotkeys/FrontEnd/ShowFactoryMenu" } >+ }; >+ >+ // Undefined hot keys are hidden from help window. >+ String help_hotkeys = "\nGlobal Hotkeys:"; >+ for ( int i = 0; i < hotkey_list_length; i++ ) { >+ String tmp_hotkeys = scim_config->read (String (hotkey_list[i][1]), String ("")); >+ if ( tmp_hotkeys != "" ) >+ help_hotkeys += "\n" + hotkey_list[i][0] + tmp_hotkeys; >+ } >+ ScimBridgeAgentIMContext::set_help_hotkeys (help_hotkeys); > } > > >diff -up scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.cpp.1-bz199389 scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.cpp >--- scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.cpp.1-bz199389 2007-11-07 20:48:45.000000000 +1000 >+++ scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.cpp 2008-04-21 16:29:23.000000000 +1000 >@@ -60,6 +60,8 @@ static unsigned int imengine_id = 0; > > static bool on_the_spot_enabled = true; > >+static String help_hotkeys = "abcde"; >+ > /* Class definition */ > class ScimBridgeAgentIMContextImpl: public ScimBridgeAgentIMContext > { >@@ -137,6 +139,7 @@ class ScimBridgeAgentIMContextImpl: publ > void alloc_imengine (); > void free_imengine (); > >+ > private: > > scim_bridge_imcontext_id_t id; >@@ -273,6 +276,12 @@ void ScimBridgeAgentIMContext::set_on_th > } > > >+void ScimBridgeAgentIMContext::set_help_hotkeys (const String &hotkey_str) >+{ >+ help_hotkeys = hotkey_str; >+} >+ >+ > ScimBridgeAgentIMContextImpl::ScimBridgeAgentIMContextImpl (ScimBridgeAgentClientListener *new_client_listener): > client_listener (new_client_listener), imengine (NULL), enabled (false), preedit_mode (PREEDIT_ANY), > preedit_shown (false), preedit_cursor_position (0) >@@ -915,24 +924,26 @@ void ScimBridgeAgentIMContextImpl::panel > > void ScimBridgeAgentIMContextImpl::panel_request_help () > { >- String help = String (_ ("Smart Common Input Method platform ")) + >- String (SCIM_VERSION) + >- String (_ ("\n(C) 2002-2005 James Su <suzhe@tsinghua.org.cn>\n\n")); >+ String help = String (_ ("SCIM Bridge")) + >+ String (_ ("\n(C) 2006-2008 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>\n")) + >+ help_hotkeys + >+ String ("\n\n"); > >- IMEngineFactoryPointer factory = scim_backend->get_factory (get_imengine ()->get_factory_uuid ()); >- if (factory.null ()) factory = fallback_imengine_factory; >- help += utf8_wcstombs (factory->get_name ()); >- help += String (_ (":\n\n")); >+ IMEngineFactoryPointer factory = scim_backend->get_factory (get_imengine ()->get_factory_uuid ()); >+ if (factory.null ()) factory = fallback_imengine_factory; >+ >+ help += utf8_wcstombs (factory->get_name ()); >+ help += String (_ (":\n\n")); > >- help += utf8_wcstombs (factory->get_authors ()); >- help += String (_ ("\n\n")); >+ help += utf8_wcstombs (factory->get_authors ()); >+ help += String (_ ("\n\n")); > >- help += utf8_wcstombs (factory->get_help ()); >- help += String (_ ("\n\n")); >+ help += utf8_wcstombs (factory->get_help ()); >+ help += String (_ ("\n\n")); > >- help += utf8_wcstombs (factory->get_credits ()); >+ help += utf8_wcstombs (factory->get_credits ()); > >- panel_listener->show_help (help); >+ panel_listener->show_help (help); > } > > >diff -up scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.h.1-bz199389 scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.h >--- scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.h.1-bz199389 2007-06-02 13:33:48.000000000 +1000 >+++ scim-bridge-0.4.15/agent/scim-bridge-agent-imcontext.h 2008-04-21 16:29:23.000000000 +1000 >@@ -130,6 +130,21 @@ class ScimBridgeAgentIMContext > static void set_enabled_by_default (bool enabled); > > /** >+ * Get the hotkey help messages. >+ * >+ * @return help messages about hotkeys. >+ */ >+ static scim::String get_help_hotkeys (); >+ >+ /** >+ * Set the hotkey help messages. >+ * >+ * @param hotkey_str Help message about hotkeys. >+ * >+ */ >+ static void set_help_hotkeys (const scim::String &hotkey_str); >+ >+ /** > * Destructor. > */ > virtual ~ScimBridgeAgentIMContext () {}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 199389
:
297144
|
297145
|
297146
|
303112
|
303115
|
303116
|
303231
|
309559
|
310009