UI: Swap translation drop-down and ZRCola (de)composition button
The order of controls now reflect the order transformations are applied to the text. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
9f128a96d1
commit
ddc8b00416
@ -27,7 +27,7 @@
|
|||||||
<property name="ui_table">UI</property>
|
<property name="ui_table">UI</property>
|
||||||
<property name="use_enum">1</property>
|
<property name="use_enum">1</property>
|
||||||
<property name="use_microsoft_bom">1</property>
|
<property name="use_microsoft_bom">1</property>
|
||||||
<object class="Frame" expanded="1">
|
<object class="Frame" expanded="0">
|
||||||
<property name="aui_managed">1</property>
|
<property name="aui_managed">1</property>
|
||||||
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
<property name="bg"></property>
|
<property name="bg"></property>
|
||||||
@ -247,6 +247,12 @@
|
|||||||
<property name="name">separator4</property>
|
<property name="name">separator4</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="submenu" expanded="0">
|
||||||
|
<property name="bitmap"></property>
|
||||||
|
<property name="label">Tra&nslation</property>
|
||||||
|
<property name="name">m_menuTranslationSeq</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
</object>
|
||||||
<object class="wxMenuItem" expanded="0">
|
<object class="wxMenuItem" expanded="0">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="checked">0</property>
|
<property name="checked">0</property>
|
||||||
@ -260,12 +266,6 @@
|
|||||||
<property name="shortcut"></property>
|
<property name="shortcut"></property>
|
||||||
<property name="unchecked_bitmap"></property>
|
<property name="unchecked_bitmap"></property>
|
||||||
</object>
|
</object>
|
||||||
<object class="submenu" expanded="0">
|
|
||||||
<property name="bitmap"></property>
|
|
||||||
<property name="label">Tra&nslation</property>
|
|
||||||
<property name="name">m_menuTranslationSeq</property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
</object>
|
|
||||||
<object class="separator" expanded="0">
|
<object class="separator" expanded="0">
|
||||||
<property name="name">separator5</property>
|
<property name="name">separator5</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
@ -504,7 +504,7 @@
|
|||||||
<property name="tooltip">Paste</property>
|
<property name="tooltip">Paste</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="wxAuiToolBar" expanded="1">
|
<object class="wxAuiToolBar" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">0</property>
|
<property name="LeftDockable">0</property>
|
||||||
<property name="RightDockable">0</property>
|
<property name="RightDockable">0</property>
|
||||||
@ -596,20 +596,9 @@
|
|||||||
<property name="statusbar">Send decomposed text to source window</property>
|
<property name="statusbar">Send decomposed text to source window</property>
|
||||||
<property name="tooltip">Send Decomposed</property>
|
<property name="tooltip">Send Decomposed</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="toolSeparator" expanded="1">
|
<object class="toolSeparator" expanded="0">
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="tool" expanded="0">
|
|
||||||
<property name="bitmap">Load From Icon Resource; composition.ico; [24; 24]</property>
|
|
||||||
<property name="context_menu">0</property>
|
|
||||||
<property name="id">wxID_COMPOSITION_TOOLBAR</property>
|
|
||||||
<property name="kind">wxITEM_CHECK</property>
|
|
||||||
<property name="label">ZRCola (De)composition</property>
|
|
||||||
<property name="name">m_toolComposition</property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="statusbar">Toggle ZRCola character (De)composition</property>
|
|
||||||
<property name="tooltip">ZRCola (De)composition</property>
|
|
||||||
</object>
|
|
||||||
<object class="wxChoice" expanded="0">
|
<object class="wxChoice" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
@ -656,7 +645,7 @@
|
|||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">0</property>
|
<property name="selection">0</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size">250,-1</property>
|
<property name="size">240,-1</property>
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
@ -670,6 +659,17 @@
|
|||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChoice">OnTranslationSeqChoice</event>
|
<event name="OnChoice">OnTranslationSeqChoice</event>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="tool" expanded="0">
|
||||||
|
<property name="bitmap">Load From Icon Resource; composition.ico; [24; 24]</property>
|
||||||
|
<property name="context_menu">0</property>
|
||||||
|
<property name="id">wxID_COMPOSITION_TOOLBAR</property>
|
||||||
|
<property name="kind">wxITEM_CHECK</property>
|
||||||
|
<property name="label">ZRCola (De)composition</property>
|
||||||
|
<property name="name">m_toolComposition</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="statusbar">Toggle ZRCola character (De)composition</property>
|
||||||
|
<property name="tooltip">ZRCola (De)composition</property>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="CustomControl" expanded="0">
|
<object class="CustomControl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -133,13 +133,13 @@ wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxS
|
|||||||
|
|
||||||
m_menuEdit->AppendSeparator();
|
m_menuEdit->AppendSeparator();
|
||||||
|
|
||||||
m_menuItemComposition = new wxMenuItem( m_menuEdit, wxID_COMPOSITION_MENU, wxString( _("&ZRCola (De)composition") ) , _("Toggle ZRCola character (De)composition"), wxITEM_CHECK );
|
|
||||||
m_menuEdit->Append( m_menuItemComposition );
|
|
||||||
|
|
||||||
m_menuTranslationSeq = new wxMenu();
|
m_menuTranslationSeq = new wxMenu();
|
||||||
wxMenuItem* m_menuTranslationSeqItem = new wxMenuItem( m_menuEdit, wxID_ANY, _("Tra&nslation"), wxEmptyString, wxITEM_NORMAL, m_menuTranslationSeq );
|
wxMenuItem* m_menuTranslationSeqItem = new wxMenuItem( m_menuEdit, wxID_ANY, _("Tra&nslation"), wxEmptyString, wxITEM_NORMAL, m_menuTranslationSeq );
|
||||||
m_menuEdit->Append( m_menuTranslationSeqItem );
|
m_menuEdit->Append( m_menuTranslationSeqItem );
|
||||||
|
|
||||||
|
m_menuItemComposition = new wxMenuItem( m_menuEdit, wxID_COMPOSITION_MENU, wxString( _("&ZRCola (De)composition") ) , _("Toggle ZRCola character (De)composition"), wxITEM_CHECK );
|
||||||
|
m_menuEdit->Append( m_menuItemComposition );
|
||||||
|
|
||||||
m_menuEdit->AppendSeparator();
|
m_menuEdit->AppendSeparator();
|
||||||
|
|
||||||
wxMenuItem* m_menuSettings;
|
wxMenuItem* m_menuSettings;
|
||||||
@ -213,12 +213,12 @@ wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxS
|
|||||||
|
|
||||||
m_toolbarTranslate->AddSeparator();
|
m_toolbarTranslate->AddSeparator();
|
||||||
|
|
||||||
m_toolComposition = m_toolbarTranslate->AddTool( wxID_COMPOSITION_TOOLBAR, _("ZRCola (De)composition"), wxIcon( wxT("composition.ico"), wxBITMAP_TYPE_ICO_RESOURCE, 24, 24 ), wxNullBitmap, wxITEM_CHECK, _("ZRCola (De)composition"), _("Toggle ZRCola character (De)composition"), NULL );
|
|
||||||
|
|
||||||
wxArrayString m_toolTranslationSeqChoices;
|
wxArrayString m_toolTranslationSeqChoices;
|
||||||
m_toolTranslationSeq = new wxChoice( m_toolbarTranslate, wxID_ANY, wxDefaultPosition, wxSize( 250,-1 ), m_toolTranslationSeqChoices, 0 );
|
m_toolTranslationSeq = new wxChoice( m_toolbarTranslate, wxID_ANY, wxDefaultPosition, wxSize( 240,-1 ), m_toolTranslationSeqChoices, 0 );
|
||||||
m_toolTranslationSeq->SetSelection( 0 );
|
m_toolTranslationSeq->SetSelection( 0 );
|
||||||
m_toolbarTranslate->AddControl( m_toolTranslationSeq );
|
m_toolbarTranslate->AddControl( m_toolTranslationSeq );
|
||||||
|
m_toolComposition = m_toolbarTranslate->AddTool( wxID_COMPOSITION_TOOLBAR, _("ZRCola (De)composition"), wxIcon( wxT("composition.ico"), wxBITMAP_TYPE_ICO_RESOURCE, 24, 24 ), wxNullBitmap, wxITEM_CHECK, _("ZRCola (De)composition"), _("Toggle ZRCola character (De)composition"), NULL );
|
||||||
|
|
||||||
m_toolbarTranslate->Realize();
|
m_toolbarTranslate->Realize();
|
||||||
m_mgr.AddPane( m_toolbarTranslate, wxAuiPaneInfo().Name( wxT("toolbarCompose") ).Top().Caption( _("Compose") ).PinButton( true ).Dock().Resizable().FloatingSize( wxSize( -1,-1 ) ).LeftDockable( false ).RightDockable( false ).Row( 0 ).Layer( 1 ).ToolbarPane() );
|
m_mgr.AddPane( m_toolbarTranslate, wxAuiPaneInfo().Name( wxT("toolbarCompose") ).Top().Caption( _("Compose") ).PinButton( true ).Dock().Resizable().FloatingSize( wxSize( -1,-1 ) ).LeftDockable( false ).RightDockable( false ).Row( 0 ).Layer( 1 ).ToolbarPane() );
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ class wxZRColaFrameBase : public wxFrame
|
|||||||
wxMenuBar* m_menubar;
|
wxMenuBar* m_menubar;
|
||||||
wxMenu* m_menuProgram;
|
wxMenu* m_menuProgram;
|
||||||
wxMenu* m_menuEdit;
|
wxMenu* m_menuEdit;
|
||||||
wxMenuItem* m_menuItemComposition;
|
|
||||||
wxMenu* m_menuTranslationSeq;
|
wxMenu* m_menuTranslationSeq;
|
||||||
|
wxMenuItem* m_menuItemComposition;
|
||||||
wxMenu* m_menuView;
|
wxMenu* m_menuView;
|
||||||
wxMenu* m_menuHelp;
|
wxMenu* m_menuHelp;
|
||||||
wxAuiToolBar* m_toolbarEdit;
|
wxAuiToolBar* m_toolbarEdit;
|
||||||
@ -94,8 +94,8 @@ class wxZRColaFrameBase : public wxFrame
|
|||||||
wxAuiToolBarItem* m_toolCharSelect;
|
wxAuiToolBarItem* m_toolCharSelect;
|
||||||
wxAuiToolBarItem* m_toolSendDestination;
|
wxAuiToolBarItem* m_toolSendDestination;
|
||||||
wxAuiToolBarItem* m_toolSendSource;
|
wxAuiToolBarItem* m_toolSendSource;
|
||||||
wxAuiToolBarItem* m_toolComposition;
|
|
||||||
wxChoice* m_toolTranslationSeq;
|
wxChoice* m_toolTranslationSeq;
|
||||||
|
wxAuiToolBarItem* m_toolComposition;
|
||||||
wxZRColaCharacterCatalogPanel* m_panelChrCat;
|
wxZRColaCharacterCatalogPanel* m_panelChrCat;
|
||||||
wxStatusBar* m_statusBar;
|
wxStatusBar* m_statusBar;
|
||||||
|
|
||||||
|
@ -133,13 +133,13 @@ wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxS
|
|||||||
|
|
||||||
m_menuEdit->AppendSeparator();
|
m_menuEdit->AppendSeparator();
|
||||||
|
|
||||||
m_menuItemComposition = new wxMenuItem( m_menuEdit, wxID_COMPOSITION_MENU, wxString( _("&ZRCola (De)composition") ) , _("Toggle ZRCola character (De)composition"), wxITEM_CHECK );
|
|
||||||
m_menuEdit->Append( m_menuItemComposition );
|
|
||||||
|
|
||||||
m_menuTranslationSeq = new wxMenu();
|
m_menuTranslationSeq = new wxMenu();
|
||||||
wxMenuItem* m_menuTranslationSeqItem = new wxMenuItem( m_menuEdit, wxID_ANY, _("Tra&nslation"), wxEmptyString, wxITEM_NORMAL, m_menuTranslationSeq );
|
wxMenuItem* m_menuTranslationSeqItem = new wxMenuItem( m_menuEdit, wxID_ANY, _("Tra&nslation"), wxEmptyString, wxITEM_NORMAL, m_menuTranslationSeq );
|
||||||
m_menuEdit->Append( m_menuTranslationSeqItem );
|
m_menuEdit->Append( m_menuTranslationSeqItem );
|
||||||
|
|
||||||
|
m_menuItemComposition = new wxMenuItem( m_menuEdit, wxID_COMPOSITION_MENU, wxString( _("&ZRCola (De)composition") ) , _("Toggle ZRCola character (De)composition"), wxITEM_CHECK );
|
||||||
|
m_menuEdit->Append( m_menuItemComposition );
|
||||||
|
|
||||||
m_menuEdit->AppendSeparator();
|
m_menuEdit->AppendSeparator();
|
||||||
|
|
||||||
wxMenuItem* m_menuSettings;
|
wxMenuItem* m_menuSettings;
|
||||||
@ -213,12 +213,12 @@ wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxS
|
|||||||
|
|
||||||
m_toolbarTranslate->AddSeparator();
|
m_toolbarTranslate->AddSeparator();
|
||||||
|
|
||||||
m_toolComposition = m_toolbarTranslate->AddTool( wxID_COMPOSITION_TOOLBAR, _("ZRCola (De)composition"), wxIcon( wxT("composition.ico"), wxBITMAP_TYPE_ICO_RESOURCE, FromDIP(24), FromDIP(24) ), wxNullBitmap, wxITEM_CHECK, _("ZRCola (De)composition"), _("Toggle ZRCola character (De)composition"), NULL );
|
|
||||||
|
|
||||||
wxArrayString m_toolTranslationSeqChoices;
|
wxArrayString m_toolTranslationSeqChoices;
|
||||||
m_toolTranslationSeq = new wxChoice( m_toolbarTranslate, wxID_ANY, wxDefaultPosition, FromDIP(wxSize( 250,-1 )), m_toolTranslationSeqChoices, 0 );
|
m_toolTranslationSeq = new wxChoice( m_toolbarTranslate, wxID_ANY, wxDefaultPosition, FromDIP(wxSize( 240,-1 )), m_toolTranslationSeqChoices, 0 );
|
||||||
m_toolTranslationSeq->SetSelection( 0 );
|
m_toolTranslationSeq->SetSelection( 0 );
|
||||||
m_toolbarTranslate->AddControl( m_toolTranslationSeq );
|
m_toolbarTranslate->AddControl( m_toolTranslationSeq );
|
||||||
|
m_toolComposition = m_toolbarTranslate->AddTool( wxID_COMPOSITION_TOOLBAR, _("ZRCola (De)composition"), wxIcon( wxT("composition.ico"), wxBITMAP_TYPE_ICO_RESOURCE, FromDIP(24), FromDIP(24) ), wxNullBitmap, wxITEM_CHECK, _("ZRCola (De)composition"), _("Toggle ZRCola character (De)composition"), NULL );
|
||||||
|
|
||||||
m_toolbarTranslate->Realize();
|
m_toolbarTranslate->Realize();
|
||||||
m_mgr.AddPane( m_toolbarTranslate, wxAuiPaneInfo().Name( wxT("toolbarCompose") ).Top().Caption( _("Compose") ).PinButton( true ).Dock().Resizable().FloatingSize( wxSize( -1,-1 ) ).LeftDockable( false ).RightDockable( false ).Row( 0 ).Layer( 1 ).ToolbarPane() );
|
m_mgr.AddPane( m_toolbarTranslate, wxAuiPaneInfo().Name( wxT("toolbarCompose") ).Top().Caption( _("Compose") ).PinButton( true ).Dock().Resizable().FloatingSize( wxSize( -1,-1 ) ).LeftDockable( false ).RightDockable( false ).Row( 0 ).Layer( 1 ).ToolbarPane() );
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ class wxZRColaFrameBase : public wxFrame
|
|||||||
wxMenuBar* m_menubar;
|
wxMenuBar* m_menubar;
|
||||||
wxMenu* m_menuProgram;
|
wxMenu* m_menuProgram;
|
||||||
wxMenu* m_menuEdit;
|
wxMenu* m_menuEdit;
|
||||||
wxMenuItem* m_menuItemComposition;
|
|
||||||
wxMenu* m_menuTranslationSeq;
|
wxMenu* m_menuTranslationSeq;
|
||||||
|
wxMenuItem* m_menuItemComposition;
|
||||||
wxMenu* m_menuView;
|
wxMenu* m_menuView;
|
||||||
wxMenu* m_menuHelp;
|
wxMenu* m_menuHelp;
|
||||||
wxAuiToolBar* m_toolbarEdit;
|
wxAuiToolBar* m_toolbarEdit;
|
||||||
@ -94,8 +94,8 @@ class wxZRColaFrameBase : public wxFrame
|
|||||||
wxAuiToolBarItem* m_toolCharSelect;
|
wxAuiToolBarItem* m_toolCharSelect;
|
||||||
wxAuiToolBarItem* m_toolSendDestination;
|
wxAuiToolBarItem* m_toolSendDestination;
|
||||||
wxAuiToolBarItem* m_toolSendSource;
|
wxAuiToolBarItem* m_toolSendSource;
|
||||||
wxAuiToolBarItem* m_toolComposition;
|
|
||||||
wxChoice* m_toolTranslationSeq;
|
wxChoice* m_toolTranslationSeq;
|
||||||
|
wxAuiToolBarItem* m_toolComposition;
|
||||||
wxZRColaCharacterCatalogPanel* m_panelChrCat;
|
wxZRColaCharacterCatalogPanel* m_panelChrCat;
|
||||||
wxStatusBar* m_statusBar;
|
wxStatusBar* m_statusBar;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user