[Kstars-devel] kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Mon Mar 1 09:02:17 CET 2004
CVS commit by harris:
Converting KStars to the KConfigXT framework, which will make
management of our many config options much easier.
With this framework, all of our options are described in the
XML file kstars.kcfg. The build process parses this file
and generates an Options class with accessors and mutators
for each option. Using Qt Designer, the widgets controlling
each option are named "kcfg_OptionName", and then these are
automatically connected to the corresponding option with no
actual coding required.
In practice, where you used to see "options()->optionName",
you will now see "Options::optionName()" for access and
"Options::setOptionName(newValue)" for mutation.
To add a new option, just describe it in the kstars.kcfg
file, and make sure to name its widget controller (if any)
in Qt Designer with the "kcfg_OptionName" scheme.
Notes:
I added a "Colors" group to the kstarsrc file.
There is no longer a viewopsdialog class. Instead, we just
create a KConfigDialog object and add the Ops* widgets as
pages. Almost all of the code that was in ViewOpsDialog is
not necessary under KConfigXT, but some of it we still
need for controlling complex widgets that KConfigXT can't
deal with:
- the listbox of deep-sky and custom object catalogs
(now in OpsCatalog.cpp)
- the listboxes of adjustable colors and predefined color
schemes (now in OpsColors.cpp).
Because it is now a standard KConfigDialog, the View Options
window no longer does "live" updating of the skymap as
options are changed. It does have an "Apply" button,
which achieves the same result, just not automatically.
It seems to be working pretty well; please test the behavior
of options if you can.
CCMAIL: kstars-devel at kde.org
A Options.kcfgc 1.1
A kstars.kcfg 1.1
A opscatalogui.ui 1.1
A opscolorsui.ui 1.1
M +3 -1 Makefile.am 1.104
M +1 -1 devicemanager.cpp 1.4
M +3 -5 finddialog.cpp 1.21
M +1 -1 indiproperty.cpp 1.3
M +11 -11 indistd.cpp 1.6
M +20 -4 kstars.cpp 1.77
M +2 -7 kstars.h 1.65
M +108 -144 kstarsactions.cpp 1.86
M +124 -145 kstarsdata.cpp 1.120
M +23 -41 kstarsdata.h 1.72
M +92 -92 kstarsdcop.cpp 1.22
M +57 -56 kstarsinit.cpp 1.81
M +1 -1 main.cpp 1.30
M +35 -35 opsadvanced.ui 1.12
M +14 -14 opsguides.ui 1.9
M +46 -46 opssolarsystem.ui 1.9
M +25 -25 scriptbuilder.cpp 1.25
M +103 -109 skymap.cpp 1.124
M +1 -6 skymap.h 1.55
M +219 -251 skymapdraw.cpp 1.51
M +45 -47 skymapevents.cpp 1.87
M +1 -1 stardatasink.cpp 1.16
M +6 -6 telescopewizardprocess.cpp 1.11
M +6 -2 timezonerule.cpp 1.14
M +179 -179 viewopsdialog.cpp 1.57
M +1 -1 wutdialog.cpp 1.23
R kstars_options_handling.cpp 1.43
R opscatalog.ui 1.10
R opscolors.ui 1.10
More information about the Kstars-devel
mailing list