News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Notebook layout configuration (patch to test)

Started by Jenna, March 25, 2014, 12:14:43 AM

Previous topic - Next topic

LETARTARE

@jens
1-I deleted all the configuration files(after backup).
2-I opened 'C::B' svn9778 with patch 'save_tab_layout_viii.patch'
3-I selected   'Settings->Environment->Open default workspace'
4-I loaded 'CodeBlocks.cbp' svn9778
5-I opened two windows files
6-I closed 'C::B'
7-I re-opened'C::B' -> one window!

I attach the 'config.7z' obtained.
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Jenna

I never used the default-workspace to save real projects.
I can confirm, that it does not work as you do it.
Can you try it with  "Settings->Environment->Open blank workspace" and open the project directly or use a "real" workspace ?

At the moment I do not have the power to work on the default workspace stuff.

I'm even not sure if I will be able to build a new nightly this weekend, too much work the last weeks, too much private stuff that takes precedence, sorry.


LETARTARE

Thank you very much Jens.

1-I've renamed the workspace by another name and open more windows, then closed and reopened, it looks ok, except that you select a file in the handler for either correct (multiple windows)

2-By the way you explain it works fine.

Instead, make your work and when you have time ...

This does not prevent me from using 'C::B'.
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

MortenMacFly

Just for the record: While I really like the idea it also somehow screws the start_here page. The effect is, when I start C::B I see only one editor tab with the title "start_here" (not the start here page!) and when I close this tab all the other tabs left opened last time "come back". At that point the layout is OK.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

...to visualise what I mean I've attached an image:
This is what happens if I start C::B:
- the start here page is shown
- I open a project that had two open editor windows when closing
- environment settings are "open last open files" (on project load)
- I cannot click the "x" symbol
- the layout looks screwed (notice the left border of the start here page)
- if I close the window (via CTRL+F4) I see the actual 2 editor tabs just fine.

I guess that the start here page is being drawn after the editor layout has been restored on top of these - or the other way round the editor position does not account for the start here page and just draws above it... the latter is more likely.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

LETARTARE

CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

oBFusCATed

Some questions:
1. I see no versioning in the file, wouldn't be a good idea to introduce one?
2. I guess the patches posted here modify the EditorTabsLayout, can this be made a bit more user-readable?
3. Is it safe to upgrade from an older version of the patch to the latest?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

Quote from: oBFusCATed on September 05, 2014, 09:00:05 AM
Version 8 of the patch doesn't apply anymore :(
New patch attached.
Still no versioning for the layout files, so old layout-files might lead to layout-issues and/or crashes.

Jenna

I just committed ths and some other changes (read-only icon) to sf (svn r9940 - 9949) in the hope it does not break anything.
Please test and report back.
For large workspaces you might need to hide the annoying dialog about project layoutfile versioning, when first opening an existing workspacce (or delete the *.layout files before).