No description, website, or topics provided.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


QAutoConfig lets you add a full configure dialog to your Qt application by only writing one, twenty line function and any ui files for the dialog itself.

It automatically syncs GUI widgets values with values in the configuration file.  It does this by matching keys and widgets that have the same name.  The default values is obtained from the initial values of the widgets.

QAutoConfigDialog handles all of the following for you:
 - Loading the widgets with their setting values.
 - Store the widget values when the OK or Apply buttons are pressed.
 - Reseting the widgets when the Default button is pressed using the global defaults first and binary defaults second.
 - Enable/Disable the Apply and Default buttons depending on if they actually do anything. (When you first pull up the dialog the Apply button is disabled because nothing has changed.)
 - Only stores settings if the value is different from the default (binary, or global if it exists) value.  Thus cleaning up the cluttered config directories.

In contrast to all of the home grown configure dialog, every application that use QAutoConfigDialog will present a constant look and feel for users:
 - The dialog can be open without blocking the rest of the application.
 - The caption is uniform across every application.
 - They all have the same look (currently using KJanusWidget when compiled for KDE).
 - All of the features from the first list help to further present a constant look and feel for the user.

The example application is from the Qt source example/mainwindow/application.  It has been modified and been given a configure dialog.  The configure dialog only "configures" itself the next time it is loaded allowing you to see a few of the gui orianted options of QAutoConfig.

To compile the example application:
cd example