Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the new GTabView #470

Merged
merged 30 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4900de3
first lite version of GenioTabView
Freaxed Dec 10, 2024
5a5107a
Change the view of a tab according to preferred Group orientation
Freaxed Dec 10, 2024
395aee9
each tab is referred with a tab_id
Freaxed Dec 13, 2024
eccc6e2
major update to introduce GTabView
Freaxed Jan 11, 2025
49396cd
Merge branch 'main' into feature/geniotab-GTabView
Freaxed Jan 11, 2025
459757f
using constand to address tabviews
Freaxed Jan 11, 2025
b2f24ed
GTab: center labels
jackburton79 Jan 11, 2025
14a8eeb
removed useless boolean
Freaxed Jan 11, 2025
b71c486
Small style fixes (not completed)
jackburton79 Jan 11, 2025
65975b7
added missing override keyword
Freaxed Jan 11, 2025
2a7b690
minor cleanups
Freaxed Jan 11, 2025
a92a529
fixed clang error
Freaxed Jan 12, 2025
f82dab9
minor refactor to cleanup the GTab class
Freaxed Jan 12, 2025
0913823
Removed reduntant "virtual".
jackburton79 Jan 13, 2025
8f08afd
removed used variable
Freaxed Jan 13, 2025
3357721
improvements in the avoid distruptive tab moves
Freaxed Jan 13, 2025
ccfcd27
Outline view and ConsoleIO view more friendly with tab movements
Freaxed Jan 13, 2025
f95a162
Storing and Loading the tabs location. Still missing the right order.
Freaxed Jan 13, 2025
02d22de
store order of tabs
Freaxed Jan 13, 2025
dd0dd06
Removed debug code
Freaxed Jan 13, 2025
08dae68
fixed bug in tab index
Freaxed Jan 13, 2025
899d86a
Style. Made some method const.
jackburton79 Jan 13, 2025
ba4d020
Small style fixes
jackburton79 Jan 13, 2025
7d91a4d
Small style fixes
jackburton79 Jan 13, 2025
245c540
Further style fixes. Added some more const
jackburton79 Jan 13, 2025
8bcb652
More style fixes
jackburton79 Jan 13, 2025
f4dd4b7
TabManger: restore selected tab from config
Freaxed Jan 15, 2025
6a26618
fixed tab selection at startup
Freaxed Jan 15, 2025
16c80f9
Fix 32 bit build
jackburton79 Jan 15, 2025
90a4bd1
Change appearance menu item and config labels.
jackburton79 Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ SRCS += src/helpers/tabview/CircleColorMenuItem.cpp
SRCS += src/helpers/tabview/TabContainerView.cpp
SRCS += src/helpers/tabview/TabManager.cpp
SRCS += src/helpers/tabview/TabView.cpp
SRCS += src/helpers/gtab/GTabView.cpp
SRCS += src/helpers/gtab/TabsContainer.cpp
SRCS += src/helpers/gtab/GTab.cpp
SRCS += src/lsp-client/CallTipContext.cpp
SRCS += src/lsp-client/LSPEditorWrapper.cpp
SRCS += src/lsp-client/LSPProjectWrapper.cpp
Expand Down Expand Up @@ -88,6 +91,7 @@ SRCS += src/ui/SearchResultPanel.cpp
SRCS += src/ui/SearchResultTab.cpp
SRCS += src/ui/StyledItem.cpp
SRCS += src/ui/ToolBar.cpp
SRCS += src/ui/PanelTabManager.cpp
SRCS += src/templates/IconMenuItem.cpp
SRCS += src/templates/TemplateManager.cpp
SRCS += src/templates/TemplatesMenu.cpp
Expand Down
39 changes: 36 additions & 3 deletions src/GenioApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ GenioApp::_PrepareConfig(ConfigManager& cfg)

BString generalAppearance = general;
generalAppearance.Append("/").Append(B_TRANSLATE("Appearance"));
cfg.AddConfig(generalAppearance.String(), "show_projects", B_TRANSLATE("Show projects pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_outline", B_TRANSLATE("Show outline pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_output", B_TRANSLATE("Show info pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_projects", B_TRANSLATE("Show left pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_outline", B_TRANSLATE("Show right pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_output", B_TRANSLATE("Show bottom pane"), true);
cfg.AddConfig(generalAppearance.String(), "show_toolbar", B_TRANSLATE("Show toolbar"), true);
cfg.AddConfig(generalAppearance.String(), "show_statusbar", B_TRANSLATE("Show statusbar"), true);
cfg.AddConfig(generalAppearance.String(), "use_small_icons", B_TRANSLATE("Use smaller icons in toolbar"), false);
Expand Down Expand Up @@ -503,6 +503,39 @@ GenioApp::_PrepareConfig(ConfigManager& cfg)
cfg.AddConfig("Hidden", "run_without_buffering", "run_without_buffering", true);
GMessage log_limits = { {"min", 1024}, {"max", 4096} };
cfg.AddConfig("Hidden", "log_size", B_TRANSLATE("Log size:"), 1024, &log_limits);


BMessage tabConfig;
GMessage tab('TAB ');
tab.AddInt32("id", kTabProblems);
tab.AddString("panel_group", "bottom_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabBuildLog);
tab.ReplaceString("panel_group", "bottom_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabOutputLog);
tab.ReplaceString("panel_group", "bottom_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabSearchResult);
tab.ReplaceString("panel_group", "bottom_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabProjectBrowser);
tab.ReplaceString("panel_group", "left_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabSourceControl);
tab.ReplaceString("panel_group", "left_panels");
tabConfig.AddMessage("tab", &tab);

tab.ReplaceInt32("id", kTabOutlineView);
tab.ReplaceString("panel_group", "right_panels");
tabConfig.AddMessage("tab", &tab);

cfg.AddConfig("Hidden", "tabviews", "tabviews", tabConfig);
}


Expand Down
Loading
Loading