[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Fri Jan 14 08:19:25 CET 2005


CVS commit by harris: 

Added a keyboard shortcut:  Press "O" to add the clicked object to the 
observing list.  Hold down Shift to add the focused object instead.

Also, adding an object to the list now causes a statusbar message.

CCMAIL: kstars-devel at kde.org


  M +6 -0      skymapevents.cpp   1.99
  M +4 -0      tools/observinglist.cpp   1.5


--- kdeedu/kstars/kstars/skymapevents.cpp  #1.98:1.99
@@ -269,4 +269,10 @@ void SkyMap::keyPressEvent( QKeyEvent *e
                         break;
 
+                case Key_O: //Add object to Observing List
+                        if ( shiftPressed ) setClickedObject( focusObject() );
+                        if ( clickedObject() ) 
+                                ksw->observingList()->slotAddObject();
+                        break;
+
                 case Key_L: //Toggle User label on Clicked/Centered object
                         if ( shiftPressed ) setClickedObject( focusObject() );

--- kdeedu/kstars/kstars/tools/observinglist.cpp  #1.4:1.5
@@ -22,4 +22,5 @@
 #include <klistview.h>
 #include <kpushbutton.h>
+#include <kstatusbar.h>
 #include <ktextedit.h>
 
@@ -91,4 +92,7 @@ void ObservingList::slotAddObject( SkyOb
                         QString::number( obj->mag() ),
                         obj->typeName() );
+
+        //Note addition in statusbar
+        ks->statusBar()->changeItem( i18n( "Added %1 to observing list." ).arg( ks->map()->clickedObject()->name() ), 0 );
 }
 




More information about the Kstars-devel mailing list