|
|
|
@ -670,17 +670,17 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
|
|
|
|
|
|
|
|
|
|
if ( clickedObject() ) {
|
|
|
|
|
setClickedPoint( clickedObject() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( e->button() == Qt::RightButton ) {
|
|
|
|
|
clickedObject()->showPopupMenu( pmenu, TQCursor::pos() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( ksw && e->button() == Qt::LeftButton ) {
|
|
|
|
|
ksw->statusBar()->changeItem( clickedObject()->translatedLongName(), 0 );
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//Empty sky selected. If left-click, display "nothing" in the status bar.
|
|
|
|
|
//If right-click, open "empty" popup menu.
|
|
|
|
|
//If right-click, open "empty" popup menu.
|
|
|
|
|
setClickedObject( NULL );
|
|
|
|
|
|
|
|
|
|
switch (e->button()) {
|
|
|
|
@ -692,7 +692,7 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
|
|
|
|
|
SkyObject *nullObj = new SkyObject( SkyObject::TYPE_UNKNOWN, clickedPoint()->ra()->Hours(), clickedPoint()->dec()->Degrees() );
|
|
|
|
|
pmenu->createEmptyMenu( nullObj );
|
|
|
|
|
delete nullObj;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pmenu->popup( TQCursor::pos() );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|