[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Thu Aug 9 22:51:15 CEST 2007


SVN commit 698325 by harris:

Add the central constellation boundary highlight as a user-visible 
option in the configuration window.

CCMAIL: kstars-devel at kde.org



 M  +10 -0     kstars.kcfg  
 M  +20 -13    opsguides.ui  
 M  +2 -1      skymapdraw.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kstars.kcfg #698324:698325
@@ -354,6 +354,11 @@
 			<whatsthis>Toggle whether constellation boundaries are drawn in the sky map.</whatsthis>
 			<default>true</default>
 		</entry>
+		<entry name="ShowHighlightedCBound" type="Bool">
+			<label>Highlight the central constellation boundary in the sky map?</label>
+			<whatsthis>Toggle whether constellation boundary containing the central focus point is highlighted in the sky map.</whatsthis>
+			<default>true</default>
+		</entry>
 		<entry name="ShowCLines" type="Bool">
 			<label>Draw constellation lines in the sky map?</label>
 			<whatsthis>Toggle whether constellation lines are drawn in the sky map.</whatsthis>
@@ -680,6 +685,11 @@
 			<whatsthis>The color for the constellation boundary lines.</whatsthis>
 			<default>#222</default>
 		</entry>
+		<entry name="CBoundHighColor" type="String">
+			<label>Color of highlighted constellation boundary</label>
+			<whatsthis>The color for the constellation boundary lines.</whatsthis>
+			<default>#222</default>
+		</entry>
 		<entry name="CLineColor" type="String">
 			<label>Color of constellation lines</label>
 			<whatsthis>The color for the constellation figure lines.</whatsthis>
--- trunk/KDE/kdeedu/kstars/kstars/opsguides.ui #698324:698325
@@ -1,7 +1,4 @@
 <ui version="4.0" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
  <class>OpsGuides</class>
  <widget class="QWidget" name="OpsGuides" >
   <property name="geometry" >
@@ -9,16 +6,10 @@
     <x>0</x>
     <y>0</y>
     <width>423</width>
-    <height>577</height>
+    <height>502</height>
    </rect>
   </property>
   <layout class="QVBoxLayout" >
-   <property name="margin" >
-    <number>8</number>
-   </property>
-   <property name="spacing" >
-    <number>6</number>
-   </property>
    <item>
     <widget class="QCheckBox" name="kcfg_ShowCLines" >
      <property name="toolTip" >
@@ -40,6 +31,13 @@
     </widget>
    </item>
    <item>
+    <widget class="QCheckBox" name="kcfg_ShowHighlightedCBound" >
+     <property name="text" >
+      <string>Highlight central constellation boundary</string>
+     </property>
+    </widget>
+   </item>
+   <item>
     <widget class="QCheckBox" name="kcfg_ShowCNames" >
      <property name="toolTip" >
       <string>Draw constellation names?</string>
@@ -58,12 +56,21 @@
       <string>Constellation Name Options</string>
      </property>
      <layout class="QVBoxLayout" >
-      <property name="margin" >
-       <number>8</number>
-      </property>
       <property name="spacing" >
        <number>6</number>
       </property>
+      <property name="leftMargin" >
+       <number>8</number>
+      </property>
+      <property name="topMargin" >
+       <number>8</number>
+      </property>
+      <property name="rightMargin" >
+       <number>8</number>
+      </property>
+      <property name="bottomMargin" >
+       <number>8</number>
+      </property>
       <item>
        <widget class="QRadioButton" name="kcfg_UseLatinConstellNames" >
         <property name="toolTip" >
--- trunk/KDE/kdeedu/kstars/kstars/skymapdraw.cpp #698324:698325
@@ -132,7 +132,8 @@
 		showFocusCoords( true );
 		drawBoxes( p );
 
-		drawHighlightConstellation( p );
+		if ( Options::showHighlightedCBound() )
+			drawHighlightConstellation( p );
 
 		//draw FOV symbol
 		ks->data()->fovSymbol.draw( p, (float)(Options::fOVSize() * Options::zoomFactor()/57.3/60.0) );


More information about the Kstars-devel mailing list