Author Topic: Request : C::B View::notebook enhancements  (Read 73982 times)

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Request : C::B View::notebook enhancements
« on: December 08, 2010, 07:01:47 am »
Hello to all,

Can you, (dear) C::B developpers, implement the possibility :

1) To put editor notebook tabs on the left ? ( wxNB_LEFT ? )
With nowadays wide screens, it is cool to have a vertical list of open files, so you dont have to click on little "<" and ">" arrows.

2) To put only the name of the file ( without any path info ) in notebook tabs ? Im getting huge tabs, and even on 16:9 screen, I only can display a few.

Thank you for reading
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #1 on: December 08, 2010, 07:28:43 am »
1) I will look into it,
2) "Settings -> Editor... -> General settings -> [Other settings ->] Editor title is the file's -> name only (no path information)"

Whether you have the part in the brackets or not depends on your version of C::B.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #2 on: December 08, 2010, 07:38:16 am »
1) I will look into it,

I'm not sure if it is possible, because we use wxAuiNotebook and at least in 2.8.10 (the version we use), it has only wxAUI_NB_BOTTOM na wxAUI_NB_TOP style flags (that's what the documentation says, I will look into it if I am on my working system).

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: Request : C::B View::notebook enhancements
« Reply #3 on: December 08, 2010, 08:11:52 am »
"Settings -> Editor... -> General settings -> [Other settings ->] Editor title is the file's -> name only (no path information)"

Oh, apologize for this newbee question...and Thanx

================================================================
There is  no wxAUI_NB_LEFT in 2.9.1

http://docs.wxwidgets.org/2.9.1/classwx_aui_notebook.html :

(...)

Styles

This class supports the following styles:

    wxAUI_NB_DEFAULT_STYLE:
    Defined as wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_CLOSE_ON_ACTIVE_TAB.
    wxAUI_NB_TAB_SPLIT:
    Allows the tab control to be split by dragging a tab.
    wxAUI_NB_TAB_MOVE:
    Allows a tab to be moved horizontally by dragging.
    wxAUI_NB_TAB_EXTERNAL_MOVE:
    Allows a tab to be moved to another tab control.
    wxAUI_NB_TAB_FIXED_WIDTH:
    With this style, all tabs have the same width.
    wxAUI_NB_SCROLL_BUTTONS:
    With this style, left and right scroll buttons are displayed.
    wxAUI_NB_WINDOWLIST_BUTTON:
    With this style, a drop-down list of windows is available.
    wxAUI_NB_CLOSE_BUTTON:
    With this style, a close button is available on the tab bar.
    wxAUI_NB_CLOSE_ON_ACTIVE_TAB:
    With this style, the close button is visible on the active tab.
    wxAUI_NB_CLOSE_ON_ALL_TABS:
    With this style, the close button is visible on all tabs.
    wxAUI_NB_TOP:
    With this style, tabs are drawn along the top of the notebook.
    wxAUI_NB_BOTTOM:
    With this style, tabs are drawn along the bottom of the notebook.

(...)

« Last Edit: December 08, 2010, 09:31:59 am by earlgrey »
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #4 on: December 08, 2010, 11:07:09 am »
I just looked into the sources (of wxWidgets):
the flags exist in the header-file, but the implemetation is missing in the sources.

So this will not come soon.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #5 on: December 08, 2010, 12:43:21 pm »
I've another request:

I want to know the (full) path the edited file, in visual studio there is a tooltip with this info when the mouse is over the tab.
Unfortunately wxAUIToolbar doesn't support tooltips over the tabs, so the only solution is something similar to what Scite does:
http://c0485891.cdn.cloudfiles.rackspacecloud.com/62fe6bcd-7042-4205-a847-a095f83d8a64_3_full.png

How hard would it be to implement such feature?
(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: Request : C::B View::notebook enhancements
« Reply #6 on: December 08, 2010, 12:46:52 pm »
Seems to be the wrong image.
Okay after your description (in the next post) I see what you mean.
I think it can be done (not absolutely sure about), but in my opinion it's quit ugly.
« Last Edit: December 08, 2010, 01:16:49 pm by jens »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #7 on: December 08, 2010, 01:05:18 pm »
Here is another similar image: http://mondaybynoon.com/images/screenshots/scite-default.jpg
found here: http://mondaybynoon.com/2007/03/12/using-scite-with-textmate-style-snippets/

The thing they do is to add a label/text control between the notebook and the editor
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #8 on: December 08, 2010, 02:06:24 pm »
I want to know the (full) path the edited file, in visual studio there is a tooltip with this info when the mouse is over the tab.
You can always see this in the properties of the edited file (using right mouse button on the tab)...?!
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #9 on: December 08, 2010, 02:11:25 pm »
Morten: I know, but this is a task I do often and I want to save couple of clicks
(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 daniloz

  • Regular
  • ***
  • Posts: 268
Re: Request : C::B View::notebook enhancements
« Reply #10 on: December 08, 2010, 02:24:08 pm »
Since the feature-request season is open... ;-)

On thing I miss is the ability to scroll through the tabs (notebooks) by using the mouse wheel.

I have a little bit looked around, but I'm not a notebook specialist... Any idea if this is possible/difficult??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #11 on: December 08, 2010, 02:41:15 pm »
Any idea if this is possible/difficult??
I've a pending patch that implements this applied in my working copy for a couple of month. However, it's untested on Linux.
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 daniloz

  • Regular
  • ***
  • Posts: 268
Re: Request : C::B View::notebook enhancements
« Reply #12 on: December 08, 2010, 02:43:50 pm »
I've a pending patch that implements this applied in my working copy for a couple of month. However, it's untested on Linux.

I'm working on Windows Vista 32bit and would be glad if you could send me the patch... :-)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #13 on: December 08, 2010, 03:13:33 pm »
Post the patch Morten, I'll give it a try on linux  :lol:
(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 earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: Request : C::B View::notebook enhancements [ Tabs scrolling ]
« Reply #14 on: December 10, 2010, 06:33:26 am »
@daniloz :

====================================================
On thing I miss is the ability to scroll through the tabs (notebooks) by using the mouse wheel.
====================================================

I just tried this :

- Left click on a tab, dont release the button
- In the same time, use Left / Right arrow keyboard keys

Better than clicking the little black arrows !
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit