@@ -187,8 +187,8 @@ EVT_IDLE(clMainFrame::OnIdle)
187187EVT_ACTIVATE(clMainFrame::OnAppActivated)
188188EVT_CLOSE(clMainFrame::OnClose)
189189EVT_TIMER(FrameTimerId, clMainFrame::OnTimer)
190- // EVT_AUI_RENDER(Frame::OnAuiManagerRender)
191- // EVT_AUI_PANE_CLOSE(Frame::OnDockablePaneClosed)
190+ // EVT_AUI_RENDER(Frame::OnAuiManagerRender)
191+ // EVT_AUI_PANE_CLOSE(Frame::OnDockablePaneClosed)
192192
193193// ---------------------------------------------------
194194// File menu
@@ -293,6 +293,8 @@ EVT_MENU(XRCID("whitepsace_invisible"), clMainFrame::OnShowWhitespace)
293293EVT_MENU(XRCID(" whitepsace_always" ), clMainFrame::OnShowWhitespace)
294294EVT_MENU(XRCID(" whitespace_visiable_after_indent" ), clMainFrame::OnShowWhitespace)
295295EVT_MENU(XRCID(" whitespace_indent_only" ), clMainFrame::OnShowWhitespace)
296+ EVT_MENU(XRCID(" next_tab" ), clMainFrame::OnNextTab)
297+ EVT_MENU(XRCID(" prev_tab" ), clMainFrame::OnPrevTab)
296298EVT_MENU(XRCID(" full_screen" ), clMainFrame::OnShowFullScreen)
297299EVT_MENU(XRCID(" view_welcome_page" ), clMainFrame::OnShowWelcomePage)
298300EVT_MENU(XRCID(" view_welcome_page_at_startup" ), clMainFrame::OnLoadWelcomePage)
@@ -314,6 +316,8 @@ EVT_UPDATE_UI(XRCID("fold_all"), clMainFrame::OnFileExistUpdateUI)
314316EVT_UPDATE_UI(XRCID(" fold_all_in_selection" ), clMainFrame::DispatchUpdateUIEvent)
315317EVT_UPDATE_UI(XRCID(" fold_topmost_in_selection" ), clMainFrame::DispatchUpdateUIEvent)
316318EVT_UPDATE_UI(XRCID(" display_eol" ), clMainFrame::OnViewDisplayEOL_UI)
319+ EVT_UPDATE_UI(XRCID(" next_tab" ), clMainFrame::OnNextPrevTab_UI)
320+ EVT_UPDATE_UI(XRCID(" prev_tab" ), clMainFrame::OnNextPrevTab_UI)
317321EVT_UPDATE_UI(XRCID(" whitepsace_invisible" ), clMainFrame::OnShowWhitespaceUI)
318322EVT_UPDATE_UI(XRCID(" whitepsace_always" ), clMainFrame::OnShowWhitespaceUI)
319323EVT_UPDATE_UI(XRCID(" whitespace_visiable_after_indent" ), clMainFrame::OnShowWhitespaceUI)
@@ -778,6 +782,18 @@ clMainFrame::clMainFrame(
778782 " selection_to_multi_caret" , " Ctrl-Shift-L" , _ (" Edit::Split selection into multiple carets" ));
779783 clKeyboardManager::Get ()->AddGlobalAccelerator (
780784 " incremental_replace" , " " , _ (" Search::Toggle the Quick-Replace Bar" ));
785+ clKeyboardManager::Get ()->AddGlobalAccelerator (
786+ " copy_file_relative_path_to_workspace" , " Ctrl-Alt-Shift-C" , " Edit::Copy Path Relative to Clipboard" );
787+ clKeyboardManager::Get ()->AddGlobalAccelerator (
788+ " copy_file_name" , " " , " Edit::Copy Path to Clipboard" );
789+ clKeyboardManager::Get ()->AddGlobalAccelerator (
790+ " copy_file_path" , " " , " Edit::Copy Full Path to Clipboard" );
791+ clKeyboardManager::Get ()->AddGlobalAccelerator (
792+ " copy_file_name_only" , " " , " Edit::Copy File Name to Clipboard" );
793+ clKeyboardManager::Get ()->AddGlobalAccelerator (
794+ " open_shell_from_filepath" , " Ctrl-Shift-T" , " Search::Open Shell From File Path" );
795+ clKeyboardManager::Get ()->AddGlobalAccelerator (
796+ " open_file_explorer" , " Ctrl-Alt-Shift-T" , " Search::Open Containing Folder" );
781797}
782798
783799clMainFrame::~clMainFrame (void )
@@ -3301,7 +3317,7 @@ void clMainFrame::CreateWelcomePage()
33013317 content.Replace(wxT("$(FilesTable)"), filesTable);
33023318
33033319 //replace the HTML colours with platfroms correct colours
3304- wxColour active_caption = wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION);
3320+ wxColour active_caption = wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION);
33053321 wxColour active_caption_txt = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
33063322
33073323 active_caption = DrawingUtils::LightColour(active_caption, 11.0);
@@ -4625,6 +4641,50 @@ void clMainFrame::OnShowWhitespace(wxCommandEvent& e)
46254641 EditorConfigST::Get ()->SetOptions (options);
46264642}
46274643
4644+ void clMainFrame::OnNextTab (wxCommandEvent& e)
4645+ {
4646+ int idx = GetMainBook ()->GetCurrentPageIndex ();
4647+
4648+ if (idx != wxNOT_FOUND) {
4649+ clTab::Vec_t tabs;
4650+ GetMainBook ()->GetAllTabs (tabs);
4651+
4652+ idx = (idx + 1 ) % tabs.size ();
4653+ GetMainBook ()->SelectPage (GetMainBook ()->GetPage (idx));
4654+ }
4655+ }
4656+
4657+ void clMainFrame::OnPrevTab (wxCommandEvent& e)
4658+ {
4659+ int idx = GetMainBook ()->GetCurrentPageIndex ();
4660+
4661+ if (idx != wxNOT_FOUND) {
4662+ idx--;
4663+
4664+ if (idx < 0 ) {
4665+ clTab::Vec_t tabs;
4666+ GetMainBook ()->GetAllTabs (tabs);
4667+
4668+ idx = tabs.size () - 1 ;
4669+ }
4670+
4671+ GetMainBook ()->SelectPage (GetMainBook ()->GetPage (idx));
4672+ }
4673+ }
4674+
4675+ void clMainFrame::OnNextPrevTab_UI (wxUpdateUIEvent& e)
4676+ {
4677+ CHECK_SHUTDOWN ();
4678+ LEditor* editor = GetMainBook ()->GetActiveEditor ();
4679+ bool hasEditor = editor ? true : false ;
4680+ if (!hasEditor) {
4681+ e.Enable (false );
4682+ return ;
4683+ }
4684+
4685+ e.Enable (true );
4686+ }
4687+
46284688void clMainFrame::OnIncrementalSearch (wxCommandEvent& event)
46294689{
46304690 wxUnusedVar (event);
0 commit comments