[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Tue Sep 9 16:57:58 CEST 2003


CVS commit by harris: 

Adding Customizable "Field of View" symbols (f/k/a Target Symbols).  Note that this appears on the 3.2 Planned Features document.

A Field of View symbol is defined by a very simple class named FOV. FOV stores the symbol's size in arcmin, its color, and its shape (0=square, 1=circle, 2=crosshairs, 3=bullseye).  It has accessor methods for these variables, and a draw() function.

There are three default FOV symbols in the Settings->FOV Symbols menu ("7x35 Binoculars", "One degree", and "HST/WFPC2") and an "Edit FOVs..." option, which opens a dialog to edit, remove or add new FOV's.

The FOV's are defined in fov.dat, which is stored locally, at $KDEHOME/share/apps/kstars/fov.dat.  If this file doesn't exist, a default version is created.  This way, the user can remove the defaults, if they wish.  After 3.2, I'd like to do this with color schemes as well.

Creating a new FOV is easy.  You first define the angular size of the symbol, in arcmin.  You can either enter a value manually, or fill-in telescope/eyepiece or telescope/camera parameters to compute a value.  Next, you set the shape and color for the symbol, and name it.  That's it.

The FOV parameters (size, shape, color) are stored separately in the config file.  These can be manipulated through the DCOP function "changeViewOption()", and they are already incorporated into the ScriptBuilder tool.

TODO:
+ The FOV symbol currently in use should be pre-selected in the 
  list when the FOV dialog is opened.
+ If the FOV Dialog is closed with a FOV highlighted in the list, 
  activate that FOV in the map.
+ The FOV "preview" in the New FOV dialog does not always refresh 
  to show the current parameters. 

CCMAIL: 63371-done at bugs.kde.org, kstars-devel at kde.org


  A            fov.cpp   1.1 [GPL (v2+)]
  A            fov.h   1.1 [GPL (v2+)]
  A            fovdialog.cpp   1.1 [GPL (v2+)]
  A            fovdialog.h   1.1 [GPL (v2+)]
  A            fovdialogui.ui   1.1
  A            newfovui.ui   1.1
  M +2 -1      Makefile.am   1.90
  M +5 -1      kstars.h   1.60
  M +6 -2      kstars_options_handling.cpp   1.36
  M +47 -0     kstarsactions.cpp   1.68
  M +8 -3      kstarsdata.cpp   1.90
  M +3 -0      kstarsdata.h   1.63
  M +3 -1      kstarsdcop.cpp   1.14
  M +65 -14    kstarsinit.cpp   1.69
  M +52 -9     kstarsoptions.cpp   1.39
  M +3 -1      kstarsoptions.h   1.34
  M +3 -2      kstarsui.rc   1.21
  M +6 -2      scriptbuilder.cpp   1.16
  M +3 -3      skymap.h   1.47
  M +7 -70     skymapdraw.cpp   1.33





More information about the Kstars-devel mailing list