Author Topic: Multiple windows next to each other  (Read 17559 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Multiple windows next to each other
« on: October 24, 2005, 10:00:15 am »
Dear community,

sometimes it is helpful (e.g. for comparision) to have 2 code windows next to each other. I don't mean tabs, I really mean to have 2 code windows visible. I currently do it by simply opening another Code::Blocks with the second file and let Windows do the ordering. This is perfectly OK, however: I wonder whether this is possible within Code::Blocks itself. Say: Something like a MDI environment...?!

With regards,

Morten.
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 mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Multiple windows next to each other
« Reply #1 on: October 24, 2005, 10:08:09 am »
Just a note:
C::B started as MDI but for various reasons the design was changed to SDI (and it's not going back! :)).
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Multiple windows next to each other
« Reply #2 on: October 24, 2005, 10:36:09 am »
C::B started as MDI but for various reasons the design was changed to SDI [...].
That's interesting! A collegue of mine is thinking of porting a SDI application into MDI (which I believe is quite hard). I would be interested if there are serious drawbacks he might not consider... What were the reason for dropping MDI support? ...wxWidgets related?

Morten.

Ps.: Sorry for asking an off-topic question. If I could change the priority of this thread I would do so to "very low".
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 squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Multiple windows next to each other
« Reply #3 on: October 24, 2005, 11:10:13 am »
sometimes it is helpful (e.g. for comparision)

For source comparision I suggest software like KDiff3. It's much better for this purpose, because it also visually shows differences.
this space is for rent

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Multiple windows next to each other
« Reply #4 on: October 24, 2005, 11:17:09 am »
What were the reason for dropping MDI support? ...wxWidgets related?

First and foremost, MDI is a windows-only thing. C::B being cross-platform is required not only to work the same across platforms but also to look the same.
Besides that and without going into details, when we were evaluating the change to wx2.6, the MDI windows didn't behave correctly as was the case with wx2.4.
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: Multiple windows next to each other
« Reply #5 on: October 24, 2005, 04:44:58 pm »
I was thinking that tabs are good for using in linux and windows. But on Mac OS X its a different thing.
Most OS X applications are windows floating, like Gimp, and most users are used to that.
The tabbing interface isn't well suited for big resolutions (ie. more than 1600x1200).

Is there a way to add an option in wx to choose between tabbed interface or floating interface?

takeshimiya

  • Guest
Re: Multiple windows next to each other
« Reply #6 on: October 24, 2005, 04:50:02 pm »
Too bad, this fact alone is an important reason of why there are *nix programmers that refuse to use an IDE (tabbed interface):


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Multiple windows next to each other
« Reply #7 on: October 24, 2005, 05:51:19 pm »
Too bad, this fact alone is an important reason of why there are *nix programmers that refuse to use an IDE (tabbed interface):
...which I don't understand. What does the picture tell me exactly?!

(Sorry for maybe being stupid.)

Morten.
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

takeshimiya

  • Guest
Re: Multiple windows next to each other
« Reply #8 on: October 24, 2005, 06:28:55 pm »
:D
Viewing multiple source files at the same time (ie. 8 files), isn't possible in a tabbed interface, but possible in a floating interface, or at least in a 'each file haves a separated window' like the MS Word XP/2003.

That screenshot isn't uncommon between linux programmers with big monitors.

I like the tabbed interface, but sometimes isn't the best option, and other times (ie. Mac OS X) is not an option.

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: Multiple windows next to each other
« Reply #9 on: October 25, 2005, 07:26:56 am »
When I need to look at 2, I just drag the .cpp file into notepad. It takes 2 seconds. I have a notepad button programemed on my keyboard, or just hit the winkey + r and type notepad, and there you go.  takeshimiya, what is with the funny window titlebar names? :lol: What gui is your os running too?

C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Multiple windows next to each other
« Reply #10 on: October 25, 2005, 07:50:17 am »
Now I got the point.

I like the drag-and-drop idea of Vampyre_Dark. Hence - how do you do drag-and-drop? It seems not possible in my version of Code::Blocks...?!

However - I "found out" another quite simple way to open another window: The tools menu. I've just added notepad and wordpad (for *nix files) to it and used ${ACTIVE_EDITOR_FILENAME} as parameter. This way I don't even need drag-and-drop.

And another nice feature came into my mind: To extend the right-mouse-click menu on a file with an "open with..." command. There the entries from the tools menu should apear and something like "choose..." which opens a file explorer and lets you select a tool to open this specific file with. I am going to post this on SourceForge, maybe you like the idea as well.

With regards,

Morten.
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 Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: Multiple windows next to each other
« Reply #11 on: October 25, 2005, 07:59:23 am »
I said I drag and drop into notepad!

If you want to frag a file into C::B you need to drag it into the code window ouptut at the bottom (messages I think it's called).


edit - frag a file? :lol:
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Multiple windows next to each other
« Reply #12 on: October 25, 2005, 08:03:17 am »
I said I drag and drop into notepad!
Yes, I understood. But from where within Code::Blocks do you drag? It doesn't work for me at least from the project explorer and/or the opened file tabs...?!  :(
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 Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: Multiple windows next to each other
« Reply #13 on: October 25, 2005, 08:07:28 am »
I said I drag and drop into notepad!
Yes, I understood. But from where within Code::Blocks do you drag? It doesn't work for me at least from the project explorer and/or the opened file tabs...?!  :(
Oops. I meant I drag the icon of the file itself from my code folder. Sorry. :lol:
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

takeshimiya

  • Guest
Re: Multiple windows next to each other
« Reply #14 on: October 25, 2005, 08:10:19 am »
takeshimiya, what is with the funny window titlebar names? :lol: What gui is your os running too?

Ah, those, :D it's a screenshot of the desktop of a developer of enlightment DR17, the best window manager and desktop shell for linux (IMHO).
It's the future of window managers, only rivaled by Mac OS X.

If anyone wants to try it, there is a distro that haves an excellent selection of software and everything configured to use DR17. Its called e-live cd.

Everyone that have tried e-live has been surprised, it's amazing, I have no doubts it's the future!




« Last Edit: October 25, 2005, 08:13:48 am by takeshimiya »