@ -49,66 +49,66 @@
void KStars : : initActions ( ) {
void KStars : : initActions ( ) {
//File Menu:
//File Menu:
new TDEAction ( i18n ( " &New Window " ) , " window-new " , TDEShortcut ( " Ctrl+N " ) ,
new TDEAction ( i18n ( " &New Window " ) , " window-new " , TDEShortcut ( " Ctrl+N " ) ,
this , TQ T _SLOT( newWindow ( ) ) , actionCollection ( ) , " new_window " ) ;
this , TQ _SLOT( newWindow ( ) ) , actionCollection ( ) , " new_window " ) ;
new TDEAction ( i18n ( " &Close Window " ) , " window-close " , TDEShortcut ( " Ctrl+W " ) ,
new TDEAction ( i18n ( " &Close Window " ) , " window-close " , TDEShortcut ( " Ctrl+W " ) ,
this , TQ T _SLOT( closeWindow ( ) ) , actionCollection ( ) , " close_window " ) ;
this , TQ _SLOT( closeWindow ( ) ) , actionCollection ( ) , " close_window " ) ;
new TDEAction ( i18n ( " &Download Data... " ) , " knewstuff " , TDEShortcut ( " Ctrl+D " ) ,
new TDEAction ( i18n ( " &Download Data... " ) , " knewstuff " , TDEShortcut ( " Ctrl+D " ) ,
this , TQ T _SLOT( slotDownload ( ) ) , actionCollection ( ) , " get_data " ) ;
this , TQ _SLOT( slotDownload ( ) ) , actionCollection ( ) , " get_data " ) ;
new TDEAction ( i18n ( " Open FITS... " ) , " document-open " , TDEShortcut ( " Ctrl+O " ) , this , TQ T _SLOT( slotOpenFITS ( ) ) , actionCollection ( ) , " open_file " ) ;
new TDEAction ( i18n ( " Open FITS... " ) , " document-open " , TDEShortcut ( " Ctrl+O " ) , this , TQ _SLOT( slotOpenFITS ( ) ) , actionCollection ( ) , " open_file " ) ;
new TDEAction ( i18n ( " &Save Sky Image... " ) , " fileexport " , TDEShortcut ( " Ctrl+I " ) ,
new TDEAction ( i18n ( " &Save Sky Image... " ) , " fileexport " , TDEShortcut ( " Ctrl+I " ) ,
this , TQ T _SLOT( slotExportImage ( ) ) , actionCollection ( ) , " export_image " ) ;
this , TQ _SLOT( slotExportImage ( ) ) , actionCollection ( ) , " export_image " ) ;
new TDEAction ( i18n ( " &Run Script... " ) , " launch " , TDEShortcut ( " Ctrl+R " ) ,
new TDEAction ( i18n ( " &Run Script... " ) , " launch " , TDEShortcut ( " Ctrl+R " ) ,
this , TQ T _SLOT( slotRunScript ( ) ) , actionCollection ( ) , " run_script " ) ;
this , TQ _SLOT( slotRunScript ( ) ) , actionCollection ( ) , " run_script " ) ;
KStdAction : : print ( this , TQ T _SLOT( slotPrint ( ) ) , actionCollection ( ) , " print " ) ;
KStdAction : : print ( this , TQ _SLOT( slotPrint ( ) ) , actionCollection ( ) , " print " ) ;
KStdAction : : quit ( this , TQ T _SLOT( close ( ) ) , actionCollection ( ) , " quit " ) ;
KStdAction : : quit ( this , TQ _SLOT( close ( ) ) , actionCollection ( ) , " quit " ) ;
//Time Menu:
//Time Menu:
new TDEAction ( i18n ( " Set Time to &Now " ) , TDEShortcut ( " Ctrl+E " ) ,
new TDEAction ( i18n ( " Set Time to &Now " ) , TDEShortcut ( " Ctrl+E " ) ,
this , TQ T _SLOT( slotSetTimeToNow ( ) ) , actionCollection ( ) , " time_to_now " ) ;
this , TQ _SLOT( slotSetTimeToNow ( ) ) , actionCollection ( ) , " time_to_now " ) ;
new TDEAction ( i18n ( " set Clock to New Time " , " &Set Time... " ) , " clock " , TDEShortcut ( " Ctrl+S " ) ,
new TDEAction ( i18n ( " set Clock to New Time " , " &Set Time... " ) , " clock " , TDEShortcut ( " Ctrl+S " ) ,
this , TQ T _SLOT( slotSetTime ( ) ) , actionCollection ( ) , " time_dialog " ) ;
this , TQ _SLOT( slotSetTime ( ) ) , actionCollection ( ) , " time_dialog " ) ;
ToggleAction * actTimeRun = new ToggleAction ( i18n ( " Stop &Clock " ) , BarIcon ( " media-playback-pause " ) ,
ToggleAction * actTimeRun = new ToggleAction ( i18n ( " Stop &Clock " ) , BarIcon ( " media-playback-pause " ) ,
i18n ( " Start &Clock " ) , BarIcon ( " 1rightarrow " ) ,
i18n ( " Start &Clock " ) , BarIcon ( " 1rightarrow " ) ,
0 , this , TQ T _SLOT( slotToggleTimer ( ) ) , actionCollection ( ) , " timer_control " ) ;
0 , this , TQ _SLOT( slotToggleTimer ( ) ) , actionCollection ( ) , " timer_control " ) ;
actTimeRun - > setOffToolTip ( i18n ( " Start Clock " ) ) ;
actTimeRun - > setOffToolTip ( i18n ( " Start Clock " ) ) ;
actTimeRun - > setOnToolTip ( i18n ( " Stop Clock " ) ) ;
actTimeRun - > setOnToolTip ( i18n ( " Stop Clock " ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQ T _SIGNAL( clockStarted ( ) ) , actTimeRun , TQ T _SLOT( turnOn ( ) ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQ _SIGNAL( clockStarted ( ) ) , actTimeRun , TQ _SLOT( turnOn ( ) ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQ T _SIGNAL( clockStopped ( ) ) , actTimeRun , TQ T _SLOT( turnOff ( ) ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQ _SIGNAL( clockStopped ( ) ) , actTimeRun , TQ _SLOT( turnOff ( ) ) ) ;
//UpdateTime() if clock is stopped (so hidden objects get drawn)
//UpdateTime() if clock is stopped (so hidden objects get drawn)
TQObject : : connect ( data ( ) - > clock ( ) , TQ T _SIGNAL( clockStopped ( ) ) , this , TQ T _SLOT( updateTime ( ) ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQ _SIGNAL( clockStopped ( ) ) , this , TQ _SLOT( updateTime ( ) ) ) ;
//Focus Menu:
//Focus Menu:
new TDEAction ( i18n ( " &Zenith " ) , TDEShortcut ( " Z " ) ,
new TDEAction ( i18n ( " &Zenith " ) , TDEShortcut ( " Z " ) ,
this , TQ T _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " zenith " ) ;
this , TQ _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " zenith " ) ;
new TDEAction ( i18n ( " &North " ) , TDEShortcut ( " N " ) ,
new TDEAction ( i18n ( " &North " ) , TDEShortcut ( " N " ) ,
this , TQ T _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " north " ) ;
this , TQ _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " north " ) ;
new TDEAction ( i18n ( " &East " ) , TDEShortcut ( " E " ) ,
new TDEAction ( i18n ( " &East " ) , TDEShortcut ( " E " ) ,
this , TQ T _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " east " ) ;
this , TQ _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " east " ) ;
new TDEAction ( i18n ( " &South " ) , TDEShortcut ( " S " ) ,
new TDEAction ( i18n ( " &South " ) , TDEShortcut ( " S " ) ,
this , TQ T _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " south " ) ;
this , TQ _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " south " ) ;
new TDEAction ( i18n ( " &West " ) , TDEShortcut ( " W " ) ,
new TDEAction ( i18n ( " &West " ) , TDEShortcut ( " W " ) ,
this , TQ T _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " west " ) ;
this , TQ _SLOT( slotPointFocus ( ) ) , actionCollection ( ) , " west " ) ;
TDEAction * tmpAction = KStdAction : : find ( this , TQ T _SLOT( slotFind ( ) ) ,
TDEAction * tmpAction = KStdAction : : find ( this , TQ _SLOT( slotFind ( ) ) ,
actionCollection ( ) , " find_object " ) ;
actionCollection ( ) , " find_object " ) ;
tmpAction - > setText ( i18n ( " &Find Object... " ) ) ;
tmpAction - > setText ( i18n ( " &Find Object... " ) ) ;
tmpAction - > setToolTip ( i18n ( " Find object " ) ) ;
tmpAction - > setToolTip ( i18n ( " Find object " ) ) ;
new TDEAction ( i18n ( " Engage &Tracking " ) , " decrypted " , TDEShortcut ( " Ctrl+T " ) ,
new TDEAction ( i18n ( " Engage &Tracking " ) , " decrypted " , TDEShortcut ( " Ctrl+T " ) ,
this , TQ T _SLOT( slotTrack ( ) ) , actionCollection ( ) , " track_object " ) ;
this , TQ _SLOT( slotTrack ( ) ) , actionCollection ( ) , " track_object " ) ;
new TDEAction ( i18n ( " Set Focus &Manually... " ) , TDEShortcut ( " Ctrl+M " ) ,
new TDEAction ( i18n ( " Set Focus &Manually... " ) , TDEShortcut ( " Ctrl+M " ) ,
this , TQ T _SLOT( slotManualFocus ( ) ) , actionCollection ( ) , " manual_focus " ) ;
this , TQ _SLOT( slotManualFocus ( ) ) , actionCollection ( ) , " manual_focus " ) ;
//View Menu:
//View Menu:
KStdAction : : zoomIn ( this , TQ T _SLOT( slotZoomIn ( ) ) , actionCollection ( ) , " zoom_in " ) ;
KStdAction : : zoomIn ( this , TQ _SLOT( slotZoomIn ( ) ) , actionCollection ( ) , " zoom_in " ) ;
KStdAction : : zoomOut ( this , TQ T _SLOT( slotZoomOut ( ) ) , actionCollection ( ) , " zoom_out " ) ;
KStdAction : : zoomOut ( this , TQ _SLOT( slotZoomOut ( ) ) , actionCollection ( ) , " zoom_out " ) ;
new TDEAction ( i18n ( " &Default Zoom " ) , " viewmagfit.png " , TDEShortcut ( " Ctrl+Z " ) ,
new TDEAction ( i18n ( " &Default Zoom " ) , " viewmagfit.png " , TDEShortcut ( " Ctrl+Z " ) ,
this , TQ T _SLOT( slotDefaultZoom ( ) ) , actionCollection ( ) , " zoom_default " ) ;
this , TQ _SLOT( slotDefaultZoom ( ) ) , actionCollection ( ) , " zoom_default " ) ;
new TDEAction ( i18n ( " &Zoom to Angular Size... " ) , " viewmag.png " , TDEShortcut ( " Ctrl+Shift+Z " ) ,
new TDEAction ( i18n ( " &Zoom to Angular Size... " ) , " viewmag.png " , TDEShortcut ( " Ctrl+Shift+Z " ) ,
this , TQ T _SLOT( slotSetZoom ( ) ) , actionCollection ( ) , " zoom_set " ) ;
this , TQ _SLOT( slotSetZoom ( ) ) , actionCollection ( ) , " zoom_set " ) ;
actCoordSys = new ToggleAction ( i18n ( " Horizontal &Coordinates " ) , i18n ( " Equatorial &Coordinates " ) ,
actCoordSys = new ToggleAction ( i18n ( " Horizontal &Coordinates " ) , i18n ( " Equatorial &Coordinates " ) ,
Key_Space , this , TQ T _SLOT( slotCoordSys ( ) ) , actionCollection ( ) , " coordsys " ) ;
Key_Space , this , TQ _SLOT( slotCoordSys ( ) ) , actionCollection ( ) , " coordsys " ) ;
KStdAction : : fullScreen ( this , TQ T _SLOT( slotFullScreen ( ) ) , actionCollection ( ) , 0 ) ;
KStdAction : : fullScreen ( this , TQ _SLOT( slotFullScreen ( ) ) , actionCollection ( ) , 0 ) ;
//Settings Menu:
//Settings Menu:
@ -122,45 +122,45 @@ void KStars::initActions() {
TDEToggleAction * a = new TDEToggleAction ( i18n ( " Show the information boxes " , " Show &Info Boxes " ) ,
TDEToggleAction * a = new TDEToggleAction ( i18n ( " Show the information boxes " , " Show &Info Boxes " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_boxes " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_boxes " ) ;
a - > setChecked ( Options : : showInfoBoxes ( ) ) ;
a - > setChecked ( Options : : showInfoBoxes ( ) ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ T _SLOT( setVisible ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ _SLOT( setVisible ( bool ) ) ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show time-related info box " , " Show &Time Box " ) ,
a = new TDEToggleAction ( i18n ( " Show time-related info box " , " Show &Time Box " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_time_box " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_time_box " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ T _SLOT( showTimeBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ _SLOT( showTimeBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show focus-related info box " , " Show &Focus Box " ) ,
a = new TDEToggleAction ( i18n ( " Show focus-related info box " , " Show &Focus Box " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_focus_box " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_focus_box " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ T _SLOT( showFocusBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ _SLOT( showFocusBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show location-related info box " , " Show &Location Box " ) ,
a = new TDEToggleAction ( i18n ( " Show location-related info box " , " Show &Location Box " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_location_box " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_location_box " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ T _SLOT( showGeoBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , infoBoxes ( ) , TQ _SLOT( showGeoBox ( bool ) ) ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
//Toolbar view options
//Toolbar view options
a = new TDEToggleAction ( i18n ( " Show Main Toolbar " ) ,
a = new TDEToggleAction ( i18n ( " Show Main Toolbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_mainToolBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_mainToolBar " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show View Toolbar " ) ,
a = new TDEToggleAction ( i18n ( " Show View Toolbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_viewToolBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_viewToolBar " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
//Statusbar view options
//Statusbar view options
a = new TDEToggleAction ( i18n ( " Show Statusbar " ) ,
a = new TDEToggleAction ( i18n ( " Show Statusbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_statusBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_statusBar " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show Az/Alt Field " ) ,
a = new TDEToggleAction ( i18n ( " Show Az/Alt Field " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_sbAzAlt " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_sbAzAlt " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
a = new TDEToggleAction ( i18n ( " Show RA/Dec Field " ) ,
a = new TDEToggleAction ( i18n ( " Show RA/Dec Field " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_sbRADec " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_sbRADec " ) ;
TQObject : : connect ( a , TQ T _SIGNAL( toggled ( bool ) ) , this , TQ T _SLOT( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQ _SIGNAL( toggled ( bool ) ) , this , TQ _SLOT( slotShowGUIItem ( bool ) ) ) ;
//Color scheme actions. These are added to the "colorschemes" TDEActionMenu.
//Color scheme actions. These are added to the "colorschemes" TDEActionMenu.
colorActionMenu = new TDEActionMenu ( i18n ( " C&olor Schemes " ) , actionCollection ( ) , " colorschemes " ) ;
colorActionMenu = new TDEActionMenu ( i18n ( " C&olor Schemes " ) , actionCollection ( ) , " colorschemes " ) ;
@ -192,61 +192,61 @@ void KStars::initActions() {
new TDEAction ( i18n ( " Location on Earth " , " &Geographic... " ) ,
new TDEAction ( i18n ( " Location on Earth " , " &Geographic... " ) ,
" kstars_geo " , TDEShortcut ( " Ctrl+G " ) , this ,
" kstars_geo " , TDEShortcut ( " Ctrl+G " ) , this ,
TQ T _SLOT( slotGeoLocator ( ) ) , actionCollection ( ) , " geolocation " ) ;
TQ _SLOT( slotGeoLocator ( ) ) , actionCollection ( ) , " geolocation " ) ;
KStdAction : : preferences ( this , TQ T _SLOT( slotViewOps ( ) ) , actionCollection ( ) , " configure " ) ;
KStdAction : : preferences ( this , TQ _SLOT( slotViewOps ( ) ) , actionCollection ( ) , " configure " ) ;
new TDEAction ( i18n ( " Startup Wizard... " ) , " wizard " , TDEShortcut ( ) ,
new TDEAction ( i18n ( " Startup Wizard... " ) , " wizard " , TDEShortcut ( ) ,
this , TQ T _SLOT( slotWizard ( ) ) , actionCollection ( ) , " startwizard " ) ;
this , TQ _SLOT( slotWizard ( ) ) , actionCollection ( ) , " startwizard " ) ;
//Tools Menu:
//Tools Menu:
new TDEAction ( i18n ( " Calculator... " ) , TDEShortcut ( " Ctrl+C " ) ,
new TDEAction ( i18n ( " Calculator... " ) , TDEShortcut ( " Ctrl+C " ) ,
this , TQ T _SLOT( slotCalculator ( ) ) , actionCollection ( ) , " astrocalculator " ) ;
this , TQ _SLOT( slotCalculator ( ) ) , actionCollection ( ) , " astrocalculator " ) ;
new TDEAction ( i18n ( " Observing List... " ) , TDEShortcut ( " Ctrl+L " ) ,
new TDEAction ( i18n ( " Observing List... " ) , TDEShortcut ( " Ctrl+L " ) ,
this , TQ T _SLOT( slotObsList ( ) ) , actionCollection ( ) , " obslist " ) ;
this , TQ _SLOT( slotObsList ( ) ) , actionCollection ( ) , " obslist " ) ;
// enable action only if file was loaded and processed successfully.
// enable action only if file was loaded and processed successfully.
if ( ! data ( ) - > VariableStarsList . isEmpty ( ) )
if ( ! data ( ) - > VariableStarsList . isEmpty ( ) )
new TDEAction ( i18n ( " AAVSO Light Curves... " ) , TDEShortcut ( " Ctrl+V " ) ,
new TDEAction ( i18n ( " AAVSO Light Curves... " ) , TDEShortcut ( " Ctrl+V " ) ,
this , TQ T _SLOT( slotLCGenerator ( ) ) , actionCollection ( ) , " lightcurvegenerator " ) ;
this , TQ _SLOT( slotLCGenerator ( ) ) , actionCollection ( ) , " lightcurvegenerator " ) ;
new TDEAction ( i18n ( " Altitude vs. Time... " ) , TDEShortcut ( " Ctrl+A " ) ,
new TDEAction ( i18n ( " Altitude vs. Time... " ) , TDEShortcut ( " Ctrl+A " ) ,
this , TQ T _SLOT( slotAVT ( ) ) , actionCollection ( ) , " altitude_vs_time " ) ;
this , TQ _SLOT( slotAVT ( ) ) , actionCollection ( ) , " altitude_vs_time " ) ;
new TDEAction ( i18n ( " What's up Tonight... " ) , TDEShortcut ( " Ctrl+U " ) ,
new TDEAction ( i18n ( " What's up Tonight... " ) , TDEShortcut ( " Ctrl+U " ) ,
this , TQ T _SLOT( slotWUT ( ) ) , actionCollection ( ) , " whats_up_tonight " ) ;
this , TQ _SLOT( slotWUT ( ) ) , actionCollection ( ) , " whats_up_tonight " ) ;
//FIXME GLOSSARY
//FIXME GLOSSARY
// new TDEAction(i18n( "Glossary..."), TDEShortcut("Ctrl+K"),
// new TDEAction(i18n( "Glossary..."), TDEShortcut("Ctrl+K"),
// this, TQ T _SLOT(slotGlossary()), actionCollection(), "glossary");
// this, TQ _SLOT(slotGlossary()), actionCollection(), "glossary");
new TDEAction ( i18n ( " Script Builder... " ) , TDEShortcut ( " Ctrl+B " ) ,
new TDEAction ( i18n ( " Script Builder... " ) , TDEShortcut ( " Ctrl+B " ) ,
this , TQ T _SLOT( slotScriptBuilder ( ) ) , actionCollection ( ) , " scriptbuilder " ) ;
this , TQ _SLOT( slotScriptBuilder ( ) ) , actionCollection ( ) , " scriptbuilder " ) ;
new TDEAction ( i18n ( " Solar System... " ) , TDEShortcut ( " Ctrl+Y " ) ,
new TDEAction ( i18n ( " Solar System... " ) , TDEShortcut ( " Ctrl+Y " ) ,
this , TQ T _SLOT( slotSolarSystem ( ) ) , actionCollection ( ) , " solarsystem " ) ;
this , TQ _SLOT( slotSolarSystem ( ) ) , actionCollection ( ) , " solarsystem " ) ;
new TDEAction ( i18n ( " Jupiter's Moons... " ) , TDEShortcut ( " Ctrl+J " ) ,
new TDEAction ( i18n ( " Jupiter's Moons... " ) , TDEShortcut ( " Ctrl+J " ) ,
this , TQ T _SLOT( slotJMoonTool ( ) ) , actionCollection ( ) , " jmoontool " ) ;
this , TQ _SLOT( slotJMoonTool ( ) ) , actionCollection ( ) , " jmoontool " ) ;
// devices Menu
// devices Menu
new TDEAction ( i18n ( " Telescope Wizard... " ) , 0 , this , TQ T _SLOT( slotTelescopeWizard ( ) ) , actionCollection ( ) , " telescope_wizard " ) ;
new TDEAction ( i18n ( " Telescope Wizard... " ) , 0 , this , TQ _SLOT( slotTelescopeWizard ( ) ) , actionCollection ( ) , " telescope_wizard " ) ;
new TDEAction ( i18n ( " Telescope Properties... " ) , 0 , this , TQ T _SLOT( slotTelescopeProperties ( ) ) , actionCollection ( ) , " telescope_properties " ) ;
new TDEAction ( i18n ( " Telescope Properties... " ) , 0 , this , TQ _SLOT( slotTelescopeProperties ( ) ) , actionCollection ( ) , " telescope_properties " ) ;
new TDEAction ( i18n ( " Device Manager... " ) , 0 , this , TQ T _SLOT( slotINDIDriver ( ) ) , actionCollection ( ) , " device_manager " ) ;
new TDEAction ( i18n ( " Device Manager... " ) , 0 , this , TQ _SLOT( slotINDIDriver ( ) ) , actionCollection ( ) , " device_manager " ) ;
tmpAction = new TDEAction ( i18n ( " Capture Image Sequence... " ) , 0 , this , TQ T _SLOT( slotImageSequence ( ) ) , actionCollection ( ) , " capture_sequence " ) ;
tmpAction = new TDEAction ( i18n ( " Capture Image Sequence... " ) , 0 , this , TQ _SLOT( slotImageSequence ( ) ) , actionCollection ( ) , " capture_sequence " ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction = new TDEAction ( i18n ( " INDI Control Panel... " ) , 0 , this , TQ T _SLOT( slotINDIPanel ( ) ) , actionCollection ( ) , " indi_control_panel " ) ;
tmpAction = new TDEAction ( i18n ( " INDI Control Panel... " ) , 0 , this , TQ _SLOT( slotINDIPanel ( ) ) , actionCollection ( ) , " indi_control_panel " ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction - > setEnabled ( false ) ;
new TDEAction ( i18n ( " Configure INDI... " ) , 0 , this , TQ T _SLOT( slotINDIConf ( ) ) , actionCollection ( ) , " configure_indi " ) ;
new TDEAction ( i18n ( " Configure INDI... " ) , 0 , this , TQ _SLOT( slotINDIConf ( ) ) , actionCollection ( ) , " configure_indi " ) ;
//Help Menu:
//Help Menu:
new TDEAction ( i18n ( " Tip of the Day " ) , " idea " , 0 ,
new TDEAction ( i18n ( " Tip of the Day " ) , " idea " , 0 ,
this , TQ T _SLOT( slotTipOfDay ( ) ) , actionCollection ( ) , " help_tipofday " ) ;
this , TQ _SLOT( slotTipOfDay ( ) ) , actionCollection ( ) , " help_tipofday " ) ;
//Handbook toolBar item:
//Handbook toolBar item:
new TDEAction ( i18n ( " &Handbook " ) , " contents " , TDEShortcut ( " F1 " ) ,
new TDEAction ( i18n ( " &Handbook " ) , " contents " , TDEShortcut ( " F1 " ) ,
this , TQ T _SLOT( appHelpActivated ( ) ) , actionCollection ( ) , " handbook " ) ;
this , TQ _SLOT( appHelpActivated ( ) ) , actionCollection ( ) , " handbook " ) ;
//
//
//viewToolBar actions:
//viewToolBar actions:
@ -254,39 +254,39 @@ void KStars::initActions() {
//show_stars:
//show_stars:
a = new TDEToggleAction ( i18n ( " Toggle Stars " ) , " kstars_stars " ,
a = new TDEToggleAction ( i18n ( " Toggle Stars " ) , " kstars_stars " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_stars " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_stars " ) ;
//show_deepsky:
//show_deepsky:
a = new TDEToggleAction ( i18n ( " Toggle Deep Sky Objects " ) , " kstars_deepsky " ,
a = new TDEToggleAction ( i18n ( " Toggle Deep Sky Objects " ) , " kstars_deepsky " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_deepsky " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_deepsky " ) ;
//show_planets:
//show_planets:
a = new TDEToggleAction ( i18n ( " Toggle Solar System " ) , " kstars_planets " ,
a = new TDEToggleAction ( i18n ( " Toggle Solar System " ) , " kstars_planets " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_planets " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_planets " ) ;
//show_clines:
//show_clines:
a = new TDEToggleAction ( i18n ( " Toggle Constellation Lines " ) , " kstars_clines " ,
a = new TDEToggleAction ( i18n ( " Toggle Constellation Lines " ) , " kstars_clines " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_clines " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_clines " ) ;
//show_cnames:
//show_cnames:
a = new TDEToggleAction ( i18n ( " Toggle Constellation Names " ) , " kstars_cnames " ,
a = new TDEToggleAction ( i18n ( " Toggle Constellation Names " ) , " kstars_cnames " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cnames " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cnames " ) ;
//show_cbound:
//show_cbound:
a = new TDEToggleAction ( i18n ( " Toggle Constellation Boundaries " ) , " kstars_cbound " ,
a = new TDEToggleAction ( i18n ( " Toggle Constellation Boundaries " ) , " kstars_cbound " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cbounds " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cbounds " ) ;
//show_mw:
//show_mw:
a = new TDEToggleAction ( i18n ( " Toggle Milky Way " ) , " kstars_mw " ,
a = new TDEToggleAction ( i18n ( " Toggle Milky Way " ) , " kstars_mw " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_mw " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_mw " ) ;
//show_grid:
//show_grid:
a = new TDEToggleAction ( i18n ( " Toggle Coordinate Grid " ) , " kstars_grid " ,
a = new TDEToggleAction ( i18n ( " Toggle Coordinate Grid " ) , " kstars_grid " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_grid " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_grid " ) ;
//show_horizon:
//show_horizon:
a = new TDEToggleAction ( i18n ( " Toggle Ground " ) , " kstars_horizon " ,
a = new TDEToggleAction ( i18n ( " Toggle Ground " ) , " kstars_horizon " ,
0 , this , TQ T _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_horizon " ) ;
0 , this , TQ _SLOT( slotViewToolBar ( ) ) , actionCollection ( ) , " show_horizon " ) ;
if ( Options : : fitsSaveDirectory ( ) . isEmpty ( ) )
if ( Options : : fitsSaveDirectory ( ) . isEmpty ( ) )
Options : : setFitsSaveDirectory ( TQDir : : homeDirPath ( ) ) ;
Options : : setFitsSaveDirectory ( TQDir : : homeDirPath ( ) ) ;
@ -327,7 +327,7 @@ void KStars::initFOV() {
if ( fields . count ( ) = = 4 ) {
if ( fields . count ( ) = = 4 ) {
nm = fields [ 0 ] . stripWhiteSpace ( ) ;
nm = fields [ 0 ] . stripWhiteSpace ( ) ;
TDEToggleAction * kta = new TDEToggleAction ( nm , 0 , this , TQ T _SLOT( slotTargetSymbol ( ) ) ,
TDEToggleAction * kta = new TDEToggleAction ( nm , 0 , this , TQ _SLOT( slotTargetSymbol ( ) ) ,
actionCollection ( ) , nm . utf8 ( ) ) ;
actionCollection ( ) , nm . utf8 ( ) ) ;
kta - > setExclusiveGroup ( " fovsymbol " ) ;
kta - > setExclusiveGroup ( " fovsymbol " ) ;
if ( nm = = Options : : fOVName ( ) ) kta - > setChecked ( true ) ;
if ( nm = = Options : : fOVName ( ) ) kta - > setChecked ( true ) ;
@ -339,7 +339,7 @@ void KStars::initFOV() {
}
}
fovActionMenu - > popupMenu ( ) - > insertSeparator ( ) ;
fovActionMenu - > popupMenu ( ) - > insertSeparator ( ) ;
fovActionMenu - > insert ( new TDEAction ( i18n ( " Edit FOV Symbols... " ) , 0 , this , TQ T _SLOT( slotFOVEdit ( ) ) , actionCollection ( ) , " edit_fov " ) ) ;
fovActionMenu - > insert ( new TDEAction ( i18n ( " Edit FOV Symbols... " ) , 0 , this , TQ _SLOT( slotFOVEdit ( ) ) , actionCollection ( ) , " edit_fov " ) ) ;
}
}
void KStars : : initStatusBar ( ) {
void KStars : : initStatusBar ( ) {
@ -459,7 +459,7 @@ void KStars::privatedata::buildGUI() {
ks - > skymap = new SkyMap ( ks - > data ( ) , ks - > centralWidget ) ;
ks - > skymap = new SkyMap ( ks - > data ( ) , ks - > centralWidget ) ;
// update skymap if KStarsData send update signal
// update skymap if KStarsData send update signal
TQObject : : connect ( kstarsData , TQ T _SIGNAL( update ( ) ) , ks - > skymap , TQ T _SLOT( forceUpdateNow ( ) ) ) ;
TQObject : : connect ( kstarsData , TQ _SIGNAL( update ( ) ) , ks - > skymap , TQ _SLOT( forceUpdateNow ( ) ) ) ;
// get focus of keyboard and mouse actions (for example zoom in with +)
// get focus of keyboard and mouse actions (for example zoom in with +)
ks - > map ( ) - > TQWidget : : setFocus ( ) ;
ks - > map ( ) - > TQWidget : : setFocus ( ) ;
@ -484,11 +484,11 @@ void KStars::privatedata::buildGUI() {
//Changing the timestep needs to propagate to the clock, check if slew mode should be
//Changing the timestep needs to propagate to the clock, check if slew mode should be
//(dis)engaged, and return input focus to the skymap.
//(dis)engaged, and return input focus to the skymap.
connect ( ks - > TimeStep , TQ T _SIGNAL( scaleChanged ( float ) ) , ks - > data ( ) , TQ T _SLOT( setTimeDirection ( float ) ) ) ;
connect ( ks - > TimeStep , TQ _SIGNAL( scaleChanged ( float ) ) , ks - > data ( ) , TQ _SLOT( setTimeDirection ( float ) ) ) ;
connect ( ks - > TimeStep , TQ T _SIGNAL( scaleChanged ( float ) ) , ks - > data ( ) - > clock ( ) , TQ T _SLOT( setScale ( float ) ) ) ;
connect ( ks - > TimeStep , TQ _SIGNAL( scaleChanged ( float ) ) , ks - > data ( ) - > clock ( ) , TQ _SLOT( setScale ( float ) ) ) ;
// connect( ks->TimeStep, TQ T _SIGNAL( scaleChanged( float ) ), ks->skymap, TQT _SLOT( slotClockSlewing() ) );
// connect( ks->TimeStep, TQ _SIGNAL( scaleChanged( float ) ), ks->skymap, TQ_SLOT( slotClockSlewing() ) );
connect ( ks - > data ( ) - > clock ( ) , TQ T _SIGNAL( scaleChanged ( float ) ) , ks - > map ( ) , TQ T _SLOT( slotClockSlewing ( ) ) ) ;
connect ( ks - > data ( ) - > clock ( ) , TQ _SIGNAL( scaleChanged ( float ) ) , ks - > map ( ) , TQ _SLOT( slotClockSlewing ( ) ) ) ;
connect ( ks - > TimeStep , TQ T _SIGNAL( scaleChanged ( float ) ) , ks , TQ T _SLOT( mapGetsFocus ( ) ) ) ;
connect ( ks - > TimeStep , TQ _SIGNAL( scaleChanged ( float ) ) , ks , TQ _SLOT( mapGetsFocus ( ) ) ) ;
ks - > resize ( Options : : windowWidth ( ) , Options : : windowHeight ( ) ) ;
ks - > resize ( Options : : windowWidth ( ) , Options : : windowHeight ( ) ) ;
@ -507,11 +507,11 @@ void KStars::privatedata::buildGUI() {
ks - > data ( ) - > initGuides ( & tempnum ) ;
ks - > data ( ) - > initGuides ( & tempnum ) ;
//Connect the clock.
//Connect the clock.
TQObject : : connect ( ks - > data ( ) - > clock ( ) , TQ T _SIGNAL( timeAdvanced ( ) ) , ks , TQ T _SLOT( updateTime ( ) ) ) ;
TQObject : : connect ( ks - > data ( ) - > clock ( ) , TQ _SIGNAL( timeAdvanced ( ) ) , ks , TQ _SLOT( updateTime ( ) ) ) ;
TQObject : : connect ( ks - > data ( ) - > clock ( ) , TQ T _SIGNAL( timeChanged ( ) ) , ks , TQ T _SLOT( updateTime ( ) ) ) ;
TQObject : : connect ( ks - > data ( ) - > clock ( ) , TQ _SIGNAL( timeChanged ( ) ) , ks , TQ _SLOT( updateTime ( ) ) ) ;
// Connect cache function
// Connect cache function
TQObject : : connect ( kstarsData , TQ T _SIGNAL( clearCache ( ) ) , ks , TQ T _SLOT( clearCachedFindDialog ( ) ) ) ;
TQObject : : connect ( kstarsData , TQ _SIGNAL( clearCache ( ) ) , ks , TQ _SLOT( clearCachedFindDialog ( ) ) ) ;
SkyPoint newPoint ;
SkyPoint newPoint ;
if ( ks - > data ( ) - > useDefaultOptions ) {
if ( ks - > data ( ) - > useDefaultOptions ) {