octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave/GUI tests


From: Jacob Dawid
Subject: Re: Octave/GUI tests
Date: Sat, 26 May 2012 20:00:42 +0200

Hey Michael,

thank you for testing! Here is a short reply to give you an idea of how I want to tackle these issues:

- terminal widget not behaving correctly; after start-up, I see "undecodable token: \001b(hex)[?1034h" appearing; it seems that the terminal size is not adapted properly in the pty, this is especially visible when starting "system('vim')"
- probably related to the previous one, pager doesn't work properly; I start the GUI with "./bin/octave-gui" in a terminal; at octave prompte, when using the pager, I can't control it from the octave terminal widget, I have to type my commands in the terminal where I started the GUI

These are tricky issues I have still to figure out. Since the bug must be somewhere in qterminal, I can't really tell what is the issue here. Any help, ideas or hints are appreciated.
 
- editor window is now a dockable widget, that's fine; but now we're hit by one of the limitation of the Qt docking system: dockable windows are always on top of the main window, even when the docked window is floating; whether or not this is good, it's a matter of taste, but personally I don't like it; that's the main reason that made me think we'd need our own version of dockable windows instead of using the Qt one (when I played with it a few months ago)

I am quite sure Qt's docking window system is powerful enough to fulfill our needs, we just need to tweak it. I might already have an idea on how to provide a fully flexible docking system where the terminal is dockable, too. (Making the editor floating was one step into that direction).
 
- folding only appears when content is indented; for instance folding does not appear when typing the following (but does appear if you indent the line "y = 2*x;"):
function y = fun (x)
y = 2*x;
endfunction

No idea, I need to see what's the problem here.

- closing the editor window just hides it; it's probably a matter of taste, but it sounded not intuitive to me; it didn't ask me for saving my current modified file; after closing the window, then clicking on "New File", just made the editor window to reappear with a new unnamed tab; so using the sequence new-file/close-window/new-file/close-window/new-file, you end up with the 3 unnamed tabs in the editor window

Why do you click "new file", when you don't want a new file ;) ? In the Window-menu there you can turn on/off visibility for every window. The intend was to not force you to use that awkward series of close/save/reopen, instead just hide the editor and let it show up again when you're done with something else.
 
- no icons in non KDE/Gnome environment (I'm using LXDE); I think it's because of the use QIcon::fromTheme() without any fallback; note that fromTheme is only useful on Linux platform, it's meaningless on Windows (not sure about Mac OS X). It's also strange that icons are actually appearing in the editor window; this makes me suspect that it's using its own set of icons, but then it also means that for instance undo/redo icons in the main toolbar don't like the same as in the editor toolbar (as I don't have any icons in the main toolbar, I can't check, but I suspect it's the case)

I know there is a way to obtain standard icons for each OS, since I did it once. Seems to me that I have do search the docs for that, but this can fixed easily.
 
- I wanted to test the variable browser, so I typed "demo plotyy" to see the variables at the various steps of the demo (it stops twice); however some variables are long strings with newline characters in it, making the variable browser not looking very nice; maybe strings should get truncated with an ellipsis and newline characters should be printed as \n instead?

Yes, very good. I think you're right here.
 
- the current directory doesn't seem to be in sync; I typed a few "cd" commands, but the current directory displayed didn't change

It is not functional yet, I just inserted the GUI elements, but didn't write the logic behind.
 
- using the "exit" menu item while a gnuplot window is opened leads to a segfault

Which version of octave fo you use? I have 3.7.0+ and gnuplot doesn't work at all :(

Best regards,
Jacob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]