Author Topic: Notebook layout configuration (patch to test)  (Read 23517 times)

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Notebook layout configuration (patch to test)
« Reply #15 on: May 24, 2014, 07:08:35 pm »
@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-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Notebook layout configuration (patch to test)
« Reply #16 on: May 24, 2014, 08:50:24 pm »
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.


Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Notebook layout configuration (patch to test)
« Reply #17 on: May 24, 2014, 11:21:24 pm »
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-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Notebook layout configuration (patch to test)
« Reply #18 on: June 24, 2014, 05:38:40 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Notebook layout configuration (patch to test)
« Reply #19 on: June 24, 2014, 05:46:03 pm »
...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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Notebook layout configuration (patch to test)
« Reply #20 on: August 20, 2014, 09:36:04 am »
Hello,
with svn 9855 everything is correct.
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Notebook layout configuration (patch to test)
« Reply #21 on: August 20, 2014, 08:41:08 pm »
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!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Notebook layout configuration (patch to test)
« Reply #22 on: September 05, 2014, 09:00:05 am »
Version 8 of the patch doesn't apply anymore :(
(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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Notebook layout configuration (patch to test)
« Reply #23 on: September 05, 2014, 10:25:51 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Notebook layout configuration (patch to test)
« Reply #24 on: October 12, 2014, 12:20:53 pm »
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).