Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
My first C::B build
Michaela Joy:
Hi All,
So I've been working with Code::Blocks for about 3 months now (Writing / re-learning C++). It's totally awesome. Of course, there are things that I don't (didn't) like. One of which is that "annoying" popup dialog box that comes up when I press <Ctrl><Tab>. Yesterday, I decided to do something about it. :)
The first thing I did was download wxWidgets (The version from the Code::Blocks repository) and build it. After some searching, I found the info around here about "-fpermissive". :)
Then, I grabbed the latest "HEAD" from the svn repository. Then, I read the "BUILD" file. :)
The result: Everything built flawlessly. :) (Well...almost flawlessly) On the "about" dialog, the SVN version is 0.
After some reading inside main.cpp, I found this function at line 4460
void MainFrame::OnSwitchTabs(cb_unused wxCommandEvent& event)
This is the function that displays the switcher dialog. So, I decided to replace that code. My thinking is to add a checkbox in the settings dialog somewhere (Not sure where; I'm open to suggestions) which will allow me to optionally disable the switcher dialog.
For now, I replaced the original code with this.
--- Code: ---cbAuiNotebook* nb = Manager::Get()->GetEditorManager()->GetNotebook();
if (!nb)
return;
if (nb->GetPageCount() <= 1)
return;
int currentSelection = nb->GetSelection();
wxWindow* page = nullptr;
size_t maxPages = nb->GetPageCount();
currentSelection++;
if (currentSelection < 0)
currentSelection = maxPages - 1;
else if (currentSelection >= maxPages)
currentSelection = 0;
nb->SetSelection(currentSelection);
--- End code ---
I've been putting C::B through its' paces, and so far, all seems to work well. If any C::B developer sees a potential problem with this code, please let Me know.
Also, if anybody can give Me a hint as to how to change the SVN version number so that I can reflect the correct value, I'd sure appreciate it.
Best,
:MJ
stahta01:
To get rid of SVN 0; you need to have an SVN program installed and CB needs to be able to find it.
No comment on the code posted.
Tim S.
Michaela Joy:
@stahta01: Thank you for your reply.
Currently, I have Tortoise SVN installed, which was what I used to get a snapshot from the C::B repository.
I found this.
http://www.collab.net/downloads/subversion
I was thinking of downloading "Subversion 1.8.13 (Windows 64-bit)"
Do you know if this will work? (I'm running Windows 7, x64) If so, I guess I have to get my snapshots through SVN using a command prompt instead of using Tortoise.
:MJ
scarphin:
TortoiseSVN has an option to install command line tools which are the command line svn executables (svn, svnadmin etc...). You have to insert TortoiseSVN's bin directory to your system path for them to work though. It should have an option to insert bin directory to system path during install.
Edit: You can already disable the tab dialogue. Try 'settings->environment->notebooks appereance->use drop-down tab list'.
raynebc:
Having ALT+Tab bring up a list of all open files instead of just changing tabs like most programs is one of the little things about C::B that annoys me too. I'd love for there to be a user setting to bring back the original, forward tab behavior.
--- Quote from: scarphin on May 19, 2015, 10:12:37 pm ---Edit: You can already disable the tab dialogue. Try 'settings->environment->notebooks appereance->use drop-down tab list'.
--- End quote ---
I tried changing that setting, but ALT+Tab still brings up a list instead of just advancing to the next tab in the way that CTRL+ALT+Tab advances to the previous tab.
Navigation
[0] Message Index
[#] Next page
Go to full version