Commit cff23ea8 authored by nobody's avatar nobody

This commit was manufactured by cvs2svn to create tag


svn path=/tags/KDE_3_0_1_RELEASE/kdeedu/kstars/; revision=155937
parents b45ceb27 d2530ade
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
......@@ -410,7 +410,7 @@ void KStars::initMenuBar() {
actFind->setText( i18n( "&Find Object..." ) );
actFind->setToolTip( i18n( "Find Object" ) );
actFind->plug( p );
actTrack = new KAction( i18n( "&Track Object" ), BarIcon( "unlock" ), 0, this, SLOT( mTrack() ), actionCollection() );
actTrack = new KAction( i18n( "&Track Object" ), BarIcon( "decrypted" ), 0, this, SLOT( mTrack() ), actionCollection() );
actTrack->setAccel( CTRL+Key_T );
actTrack->plug( p );
......@@ -846,12 +846,12 @@ void KStars::mFind() {
void KStars::mTrack() {
if ( options()->isTracking ) {
options()->isTracking = false;
actTrack->setIconSet( BarIcon( "unlock" ) );
actTrack->setIconSet( BarIcon( "decrypted" ) );
skymap->setClickedObject( NULL );
skymap->setFoundObject( NULL );//no longer tracking foundObject
} else {
options()->isTracking = true;
actTrack->setIconSet( BarIcon( "lock" ) );
actTrack->setIconSet( BarIcon( "encrypted" ) );
......@@ -79,6 +79,8 @@ SkyMap::SkyMap(QWidget *parent, const char *name )
sky = new QPixmap();
pmenu = new QPopupMenu();
FoundObject = NULL;
ClickedObject = NULL;
SkyMap::~SkyMap() {
......@@ -176,10 +178,10 @@ void SkyMap::slotCenter( void ) {
setFoundObject( ClickedObject );
if ( foundObject() != NULL ) { //set tracking to true
ksw->options()->isTracking = true;
ksw->actTrack->setIconSet( BarIcon( "lock" ) );
ksw->actTrack->setIconSet( BarIcon( "encrypted" ) );
} else {
ksw->options()->isTracking = false;
ksw->actTrack->setIconSet( BarIcon( "unlock" ) );
ksw->actTrack->setIconSet( BarIcon( "decrypted" ) );
ksw->showFocusCoords(); //updateinfoPanel
......@@ -423,7 +425,7 @@ void SkyMap::keyPressEvent( QKeyEvent *e ) {
setClickedObject( NULL );
setFoundObject( NULL );//no longer tracking foundObject
ksw->options()->isTracking = false;
ksw->actTrack->setIconSet( BarIcon( "unlock" ) );
ksw->actTrack->setIconSet( BarIcon( "decrypted" ) );
......@@ -446,7 +448,7 @@ void SkyMap::mouseMoveEvent( QMouseEvent *e ) {
if (!slewing) {
slewing = true;
ksw->options()->isTracking = false; //break tracking on slew
ksw->actTrack->setIconSet( BarIcon( "unlock" ) );
ksw->actTrack->setIconSet( BarIcon( "decrypted" ) );
setClickedObject( NULL );
setFoundObject( NULL );//no longer tracking foundObject
......@@ -1872,7 +1874,7 @@ void SkyMap::drawSymbol( QPainter &psky, int type, int x, int y, int size, QChar
if ( QT_VERSION >=300 && size==2 ) size = 1;
star = starpix->getPixmap (&color, size);
bitBlt ((QPaintDevice *) sky, x1-star->width()/2, y1-star->height()/2, star);
bitBlt ((QPaintDevice *) sky, xa-star->width()/2, ya-star->height()/2, star);
case 1: //catalog star
//Some NGC/IC objects are stars...changed their type to 1 (was double star)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment