AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with Options/Settings

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
Surveyor



Joined: 08 Feb 2008
Posts: 146
Location: British Columbia, Canada

PostPosted: Fri Jan 16, 2009 7:16 am    Post subject: Problem with Options/Settings Reply with quote

I believe a confusion exists with Options/Settings.

Each document in MDI, or each instance of AkelPad in SDI can have its own settings, such as color, font, tab size, etc. (in source code kept in "struct _WNDFRAMEA" and "struct _WNDFRAMEW"). This is very convenient for editing, since each document might require different settings.

BUT - settings are ALWAYS saved to Registry (or INI file) when:
  • MDI - AkelPad is closed, settings saved are for the LAST document closed
  • SDI - last instance of AkelPad is closed, settings are for that instance.


PROBLEM
is that:
MDI - tabs might be re-arranged (for convenience) or all documents might be closed at once. User is not sure of which settings are actually be saved to Registry (only 1 document's settings will be used!)
SDI - user "might" have 5 different instances running, and close then in a "random" order. Same problem - user doesn't know which settings are being saved.

Result of confusion is that when AkelPad is opened next, user might get settings that are not what he wants - "left over" from last saved document.

SOLUTION:
  1. Modify Settings dialog like this:

    New checkbox to the left should default to unchecked at program startup, and only be changed by the user manually.

  2. Modify

    • "RegSaveOptionsA",
    • "RegSaveOptionsW",
    • "IniSaveOptionsA" and
    • "IniSaveOptionsW"

    functions in Edit.cpp to test for checked box ("Save as default") and ONLY write to Registry or INI file if box is checked. That way, settings do NOT get saved unless user wants to, but settings can still be changed for each open document.


Comments?

- Surveyor
Back to top
View user's profile Send private message Send e-mail
ravenlaughs



Joined: 06 Sep 2008
Posts: 40

PostPosted: Sun Jan 18, 2009 2:16 am    Post subject: Reply with quote

That is a good idea!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group