thaolt / qscite

Automatically exported from code.google.com/p/qscite
GNU General Public License v2.0
0 stars 0 forks source link

Options dialog needed #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We should have a configuration dialog that lets the user choose basic
options such as:

- Font Options
  - Font name
  - Text size
  - Monospace?
- Line number (on/off)
- Forced lexer type (in case the app guesses the lexer incorrectly)
- Tab settings
  - Spaces or tab characters (default to spaces)
  - If spaces, how many for each tab (default to 2 spaces)

The above list of options is not complete, but it is minimal for what we
should have before closing this bug.  Feature requests can be submitted for
other options.

We should also make sure that the options are written to a config file that
is fitting for the platform QSciTE is running on.  For example:
  - Linux -> "/home/[username]/.qscite/config"
  - Mac OS X -> "/Users/[username]/Library/QSciTE/config"
  - Windows 2k/XP -> "%SYSTEMROOT%\Documents and Settings\[username]\Local
Settings\Application Data\QSciTE\config"
  - Windows Vista -> "%SYSTEMROOT%\Users\[username]\Local
Settings\Application Data\QSciTE\config"

A thought: Perhaps we could also have something to read a SciTE
configuration file (global or user).

Original issue reported on code.google.com by jpsut...@gmail.com on 12 Feb 2008 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by jpsut...@gmail.com on 12 Feb 2008 at 11:10

GoogleCodeExporter commented 8 years ago
It'd probably be a good idea to create the dialog in Qt Designer.  I'd like it 
to
have the following features:

1) NOT modal
2) Changes should be applied to the document as soon as it is made (without 
hitting
apply/OK), but the changes are _temporary_ until apply/OK is clicked.
3) Configuration changes should be written to a configuration file.

Original comment by jpsut...@gmail.com on 12 Feb 2008 at 11:38

GoogleCodeExporter commented 8 years ago
QSettings uses a platform-appropriate place to store persistent settings. It's 
not
exactly the same as the paths stated, but we would be better off using it than
rolling our own.

Original comment by bfrobin...@gmail.com on 12 Feb 2008 at 11:39

GoogleCodeExporter commented 8 years ago
Sounds good to me.

Original comment by jpsut...@gmail.com on 13 Feb 2008 at 1:00

GoogleCodeExporter commented 8 years ago
We also need a word wrap option (default enabled).

Original comment by jpsut...@gmail.com on 13 Feb 2008 at 5:20

GoogleCodeExporter commented 8 years ago
I just added a font dialog.  It's on a per-tab basis and shouldn't save between
sessions.  It's not quite what I'd like, as it seems to remove some of the text
formatting of the lexer (the boldness of keywords, for example).

Original comment by jpsut...@gmail.com on 13 Feb 2008 at 10:34

GoogleCodeExporter commented 8 years ago
There might be two different dialogs: a modal one for program defaults and a
non-modal one for customizing the current tab (with a "Save as default" button).
That's the general direction I'm working in. If it seems to be wrong once 
there's
some functionality on the table, some will probably still be usable.

Original comment by bfrobin...@gmail.com on 15 Feb 2008 at 9:20

GoogleCodeExporter commented 8 years ago
I'll have the non-modal display settings dialog finished in a few hours. Let's 
hold
off on tagging 0.3 until I get that in.

Original comment by bfrobin...@gmail.com on 26 Feb 2008 at 7:13

GoogleCodeExporter commented 8 years ago
Closing the bug based on functionality in r86.

Original comment by bfrobin...@gmail.com on 27 Feb 2008 at 2:05