#12 Store of settings

open
settings (1)
1
2014-03-19
2014-03-03
Carlos SS
No

Store of settings

Hi Santiago!
I'm testing "MadCommander" and I detected that when I change configuration settings on "Configuration/Show" menu, doesn't get

stored, and when I restart application all settings are with default values (all enabled).

To fix this I've used your '.madcommander' user configuration file to store value of "Basic Toolbar" as

"basic.toolbar.enable=true".

REMEMBER: This is only a test to put under your revision and see if this way is well done or you prefer another. If you like this
way I'must implement same process for other configuration options.

I send many patch files and a new file.

Tell me how do you see this fix. Saludos.

5 Attachments

Discussion

  • Carlos SS
    Carlos SS
    2014-03-04

    Beware:
    There is a mistake in which my new settings about configuration are saved always on program close (without pressing "Save Configuration"). I'm working to solve this.

     
  • Carlos SS
    Carlos SS
    2014-03-04

    I think save only some parameters it's difficult to manage. What do you think about saving all or none modified parameters?

     
  • Carlos SS
    Carlos SS
    2014-03-06

    I want to suggest you to use my last aproximation: save all or none parameters on button press (and not by default by exiting from aplication).

    In a future we can save only certain parameters because I'm splitting them in little methods in "ConfigHandler.java".

     
  • Carlos SS
    Carlos SS
    2014-03-10

    Hi Santiago!
    There is a patch to put under your revision to solve this.

    REMEMBER: This is only a test to put under your revision and see if this way is well done or you prefer another. If you like this
    way I'must implement same process for other configuration options.

     
  • Carlos SS
    Carlos SS
    2014-03-19

    P.D.:
    Also I set preferred size on "Main.java" to use "pack()" method rather "validate()" to optimize running when
    enable or disable toolbars and panels on the fly. But remains a problem when disabling "Basic" toolbar: his
    buttons are "zombie" and are visible when mouse flies over them.

     
  • Carlos SS
    Carlos SS
    2014-03-19

    P.D.: Store of all settings is complete. Also I set preferred size to use "pack()" method rather "validate()" to optimize running when
    enable or disable toolbars and panels on the fly. Solved problem when disabling "Basic" toolbar: his buttons are "zombie" and are visible when mouse flies over them.

    Also I disabled "setFloatable(true)" attribute of toolbars to stabilize application.

    Also I added to configuration saved position of panel divider and orientation. This required a modification on "Panel.java" to stabilize it and to work in a future with other types of panels (like JTree).

     
    Last edit: Carlos SS 2014-04-07
    Attachments


Anonymous


Cancel   Add attachments