@ -48,24 +48,24 @@
void KStars : : initActions ( ) {
void KStars : : initActions ( ) {
//File Menu:
//File Menu:
new K Action( i18n ( " &New Window " ) , " window_new " , K Shortcut( " Ctrl+N " ) ,
new TDE Action( i18n ( " &New Window " ) , " window_new " , TDE Shortcut( " Ctrl+N " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( newWindow ( ) ) , actionCollection ( ) , " new_window " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( newWindow ( ) ) , actionCollection ( ) , " new_window " ) ;
new K Action( i18n ( " &Close Window " ) , " fileclose " , K Shortcut( " Ctrl+W " ) ,
new TDE Action( i18n ( " &Close Window " ) , " fileclose " , TDE Shortcut( " Ctrl+W " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( closeWindow ( ) ) , actionCollection ( ) , " close_window " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( closeWindow ( ) ) , actionCollection ( ) , " close_window " ) ;
new K Action( i18n ( " &Download Data... " ) , " knewstuff " , K Shortcut( " Ctrl+D " ) ,
new TDE Action( i18n ( " &Download Data... " ) , " knewstuff " , TDE Shortcut( " Ctrl+D " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotDownload ( ) ) , actionCollection ( ) , " get_data " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotDownload ( ) ) , actionCollection ( ) , " get_data " ) ;
new K Action( i18n ( " Open FITS... " ) , " fileopen " , K Shortcut( " Ctrl+O " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFITS ( ) ) , actionCollection ( ) , " open_file " ) ;
new TDE Action( i18n ( " Open FITS... " ) , " fileopen " , TDE Shortcut( " Ctrl+O " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFITS ( ) ) , actionCollection ( ) , " open_file " ) ;
new K Action( i18n ( " &Save Sky Image... " ) , " fileexport " , K Shortcut( " Ctrl+I " ) ,
new TDE Action( i18n ( " &Save Sky Image... " ) , " fileexport " , TDE Shortcut( " Ctrl+I " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExportImage ( ) ) , actionCollection ( ) , " export_image " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExportImage ( ) ) , actionCollection ( ) , " export_image " ) ;
new K Action( i18n ( " &Run Script... " ) , " launch " , K Shortcut( " Ctrl+R " ) ,
new TDE Action( i18n ( " &Run Script... " ) , " launch " , TDE Shortcut( " Ctrl+R " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRunScript ( ) ) , actionCollection ( ) , " run_script " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRunScript ( ) ) , actionCollection ( ) , " run_script " ) ;
KStdAction : : print ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrint ( ) ) , actionCollection ( ) , " print " ) ;
KStdAction : : print ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrint ( ) ) , actionCollection ( ) , " print " ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) , " quit " ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) , " quit " ) ;
//Time Menu:
//Time Menu:
new K Action( i18n ( " Set Time to &Now " ) , K Shortcut( " Ctrl+E " ) ,
new TDE Action( i18n ( " Set Time to &Now " ) , TDE Shortcut( " Ctrl+E " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetTimeToNow ( ) ) , actionCollection ( ) , " time_to_now " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetTimeToNow ( ) ) , actionCollection ( ) , " time_to_now " ) ;
new K Action( i18n ( " set Clock to New Time " , " &Set Time... " ) , " clock " , K Shortcut( " Ctrl+S " ) ,
new TDE Action( i18n ( " set Clock to New Time " , " &Set Time... " ) , " clock " , TDE Shortcut( " Ctrl+S " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetTime ( ) ) , actionCollection ( ) , " time_dialog " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetTime ( ) ) , actionCollection ( ) , " time_dialog " ) ;
ToggleAction * actTimeRun = new ToggleAction ( i18n ( " Stop &Clock " ) , BarIcon ( " player_pause " ) ,
ToggleAction * actTimeRun = new ToggleAction ( i18n ( " Stop &Clock " ) , BarIcon ( " player_pause " ) ,
i18n ( " Start &Clock " ) , BarIcon ( " 1rightarrow " ) ,
i18n ( " Start &Clock " ) , BarIcon ( " 1rightarrow " ) ,
@ -78,33 +78,33 @@ void KStars::initActions() {
TQObject : : connect ( data ( ) - > clock ( ) , TQT_SIGNAL ( clockStopped ( ) ) , this , TQT_SLOT ( updateTime ( ) ) ) ;
TQObject : : connect ( data ( ) - > clock ( ) , TQT_SIGNAL ( clockStopped ( ) ) , this , TQT_SLOT ( updateTime ( ) ) ) ;
//Focus Menu:
//Focus Menu:
new K Action( i18n ( " &Zenith " ) , K Shortcut( " Z " ) ,
new TDE Action( i18n ( " &Zenith " ) , TDE Shortcut( " Z " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " zenith " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " zenith " ) ;
new K Action( i18n ( " &North " ) , K Shortcut( " N " ) ,
new TDE Action( i18n ( " &North " ) , TDE Shortcut( " N " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " north " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " north " ) ;
new K Action( i18n ( " &East " ) , K Shortcut( " E " ) ,
new TDE Action( i18n ( " &East " ) , TDE Shortcut( " E " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " east " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " east " ) ;
new K Action( i18n ( " &South " ) , K Shortcut( " S " ) ,
new TDE Action( i18n ( " &South " ) , TDE Shortcut( " S " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " south " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " south " ) ;
new K Action( i18n ( " &West " ) , K Shortcut( " W " ) ,
new TDE Action( i18n ( " &West " ) , TDE Shortcut( " W " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " west " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPointFocus ( ) ) , actionCollection ( ) , " west " ) ;
K Action * tmpAction = KStdAction : : find ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFind ( ) ) ,
TDE Action * tmpAction = KStdAction : : find ( TQT_TQOBJECT ( this ) , TQT_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 K Action( i18n ( " Engage &Tracking " ) , " decrypted " , K Shortcut( " Ctrl+T " ) ,
new TDE Action( i18n ( " Engage &Tracking " ) , " decrypted " , TDE Shortcut( " Ctrl+T " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTrack ( ) ) , actionCollection ( ) , " track_object " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTrack ( ) ) , actionCollection ( ) , " track_object " ) ;
new K Action( i18n ( " Set Focus &Manually... " ) , K Shortcut( " Ctrl+M " ) ,
new TDE Action( i18n ( " Set Focus &Manually... " ) , TDE Shortcut( " Ctrl+M " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotManualFocus ( ) ) , actionCollection ( ) , " manual_focus " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotManualFocus ( ) ) , actionCollection ( ) , " manual_focus " ) ;
//View Menu:
//View Menu:
KStdAction : : zoomIn ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotZoomIn ( ) ) , actionCollection ( ) , " zoom_in " ) ;
KStdAction : : zoomIn ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotZoomIn ( ) ) , actionCollection ( ) , " zoom_in " ) ;
KStdAction : : zoomOut ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotZoomOut ( ) ) , actionCollection ( ) , " zoom_out " ) ;
KStdAction : : zoomOut ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotZoomOut ( ) ) , actionCollection ( ) , " zoom_out " ) ;
new K Action( i18n ( " &Default Zoom " ) , " viewmagfit.png " , K Shortcut( " Ctrl+Z " ) ,
new TDE Action( i18n ( " &Default Zoom " ) , " viewmagfit.png " , TDE Shortcut( " Ctrl+Z " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotDefaultZoom ( ) ) , actionCollection ( ) , " zoom_default " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotDefaultZoom ( ) ) , actionCollection ( ) , " zoom_default " ) ;
new K Action( i18n ( " &Zoom to Angular Size... " ) , " viewmag.png " , K Shortcut( " Ctrl+Shift+Z " ) ,
new TDE Action( i18n ( " &Zoom to Angular Size... " ) , " viewmag.png " , TDE Shortcut( " Ctrl+Shift+Z " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetZoom ( ) ) , actionCollection ( ) , " zoom_set " ) ;
TQT_TQOBJECT ( this ) , TQT_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 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCoordSys ( ) ) , actionCollection ( ) , " coordsys " ) ;
Key_Space , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCoordSys ( ) ) , actionCollection ( ) , " coordsys " ) ;
@ -114,56 +114,56 @@ void KStars::initActions() {
//Settings Menu:
//Settings Menu:
//
//
// MHH - 2002-01-13
// MHH - 2002-01-13
// Setting the slot in the K ToggleAction constructor, connects the slot to
// Setting the slot in the TDE ToggleAction constructor, connects the slot to
// the activated signal instead of the toggled signal. This seems like a bug
// the activated signal instead of the toggled signal. This seems like a bug
// to me, but ...
// to me, but ...
//
//
//Info Boxes option actions
//Info Boxes option actions
KToggleAction * a = new K ToggleAction( i18n ( " Show the information boxes " , " Show &Info Boxes " ) ,
TDEToggleAction * a = new TDE ToggleAction( 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 , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( setVisible ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( setVisible ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show time-related info box " , " Show &Time Box " ) ,
a = new TDE ToggleAction( 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 , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showTimeBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showTimeBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show focus-related info box " , " Show &Focus Box " ) ,
a = new TDE ToggleAction( 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 , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showFocusBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showFocusBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show location-related info box " , " Show &Location Box " ) ,
a = new TDE ToggleAction( 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 , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showGeoBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , infoBoxes ( ) , TQT_SLOT ( showGeoBox ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
//Toolbar view options
//Toolbar view options
a = new K ToggleAction( i18n ( " Show Main Toolbar " ) ,
a = new TDE ToggleAction( i18n ( " Show Main Toolbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_mainToolBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_mainToolBar " ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show View Toolbar " ) ,
a = new TDE ToggleAction( i18n ( " Show View Toolbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_viewToolBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_viewToolBar " ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
//Statusbar view options
//Statusbar view options
a = new K ToggleAction( i18n ( " Show Statusbar " ) ,
a = new TDE ToggleAction( i18n ( " Show Statusbar " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_statusBar " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_statusBar " ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show Az/Alt Field " ) ,
a = new TDE ToggleAction( i18n ( " Show Az/Alt Field " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_sbAzAlt " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_sbAzAlt " ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
a = new K ToggleAction( i18n ( " Show RA/Dec Field " ) ,
a = new TDE ToggleAction( i18n ( " Show RA/Dec Field " ) ,
0 , 0 , 0 , actionCollection ( ) , " show_sbRADec " ) ;
0 , 0 , 0 , actionCollection ( ) , " show_sbRADec " ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
TQObject : : connect ( a , TQT_SIGNAL ( toggled ( bool ) ) , this , TQT_SLOT ( slotShowGUIItem ( bool ) ) ) ;
//Color scheme actions. These are added to the "colorschemes" K ActionMenu.
//Color scheme actions. These are added to the "colorschemes" TDE ActionMenu.
colorActionMenu = new K ActionMenu( i18n ( " C&olor Schemes " ) , actionCollection ( ) , " colorschemes " ) ;
colorActionMenu = new TDE ActionMenu( i18n ( " C&olor Schemes " ) , actionCollection ( ) , " colorschemes " ) ;
addColorMenuItem ( i18n ( " &Default " ) , " cs_default " ) ;
addColorMenuItem ( i18n ( " &Default " ) , " cs_default " ) ;
addColorMenuItem ( i18n ( " &Star Chart " ) , " cs_chart " ) ;
addColorMenuItem ( i18n ( " &Star Chart " ) , " cs_chart " ) ;
addColorMenuItem ( i18n ( " &Night Vision " ) , " cs_night " ) ;
addColorMenuItem ( i18n ( " &Night Vision " ) , " cs_night " ) ;
@ -187,65 +187,65 @@ void KStars::initActions() {
}
}
//Add FOV Symbol actions
//Add FOV Symbol actions
fovActionMenu = new K ActionMenu( i18n ( " &FOV Symbols " ) , actionCollection ( ) , " fovsymbols " ) ;
fovActionMenu = new TDE ActionMenu( i18n ( " &FOV Symbols " ) , actionCollection ( ) , " fovsymbols " ) ;
initFOV ( ) ;
initFOV ( ) ;
new K Action( i18n ( " Location on Earth " , " &Geographic... " ) ,
new TDE Action( i18n ( " Location on Earth " , " &Geographic... " ) ,
" kstars_geo " , K Shortcut( " Ctrl+G " ) , TQT_TQOBJECT ( this ) ,
" kstars_geo " , TDE Shortcut( " Ctrl+G " ) , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( slotGeoLocator ( ) ) , actionCollection ( ) , " geolocation " ) ;
TQT_SLOT ( slotGeoLocator ( ) ) , actionCollection ( ) , " geolocation " ) ;
KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewOps ( ) ) , actionCollection ( ) , " configure " ) ;
KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewOps ( ) ) , actionCollection ( ) , " configure " ) ;
new K Action( i18n ( " Startup Wizard... " ) , " wizard " , K Shortcut( ) ,
new TDE Action( i18n ( " Startup Wizard... " ) , " wizard " , TDE Shortcut( ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotWizard ( ) ) , actionCollection ( ) , " startwizard " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotWizard ( ) ) , actionCollection ( ) , " startwizard " ) ;
//Tools Menu:
//Tools Menu:
new K Action( i18n ( " Calculator... " ) , K Shortcut( " Ctrl+C " ) ,
new TDE Action( i18n ( " Calculator... " ) , TDE Shortcut( " Ctrl+C " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCalculator ( ) ) , actionCollection ( ) , " astrocalculator " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCalculator ( ) ) , actionCollection ( ) , " astrocalculator " ) ;
new K Action( i18n ( " Observing List... " ) , K Shortcut( " Ctrl+L " ) ,
new TDE Action( i18n ( " Observing List... " ) , TDE Shortcut( " Ctrl+L " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotObsList ( ) ) , actionCollection ( ) , " obslist " ) ;
TQT_TQOBJECT ( this ) , TQT_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 K Action( i18n ( " AAVSO Light Curves... " ) , K Shortcut( " Ctrl+V " ) ,
new TDE Action( i18n ( " AAVSO Light Curves... " ) , TDE Shortcut( " Ctrl+V " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLCGenerator ( ) ) , actionCollection ( ) , " lightcurvegenerator " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLCGenerator ( ) ) , actionCollection ( ) , " lightcurvegenerator " ) ;
new K Action( i18n ( " Altitude vs. Time... " ) , K Shortcut( " Ctrl+A " ) ,
new TDE Action( i18n ( " Altitude vs. Time... " ) , TDE Shortcut( " Ctrl+A " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAVT ( ) ) , actionCollection ( ) , " altitude_vs_time " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAVT ( ) ) , actionCollection ( ) , " altitude_vs_time " ) ;
new K Action( i18n ( " What's up Tonight... " ) , K Shortcut( " Ctrl+U " ) ,
new TDE Action( i18n ( " What's up Tonight... " ) , TDE Shortcut( " Ctrl+U " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotWUT ( ) ) , actionCollection ( ) , " whats_up_tonight " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotWUT ( ) ) , actionCollection ( ) , " whats_up_tonight " ) ;
//FIXME GLOSSARY
//FIXME GLOSSARY
// new KAction(i18n( "Glossary..."), K Shortcut("Ctrl+K"),
// new TDEAction(i18n( "Glossary..."), TDE Shortcut("Ctrl+K"),
// this, TQT_SLOT(slotGlossary()), actionCollection(), "glossary");
// this, TQT_SLOT(slotGlossary()), actionCollection(), "glossary");
new K Action( i18n ( " Script Builder... " ) , K Shortcut( " Ctrl+B " ) ,
new TDE Action( i18n ( " Script Builder... " ) , TDE Shortcut( " Ctrl+B " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScriptBuilder ( ) ) , actionCollection ( ) , " scriptbuilder " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScriptBuilder ( ) ) , actionCollection ( ) , " scriptbuilder " ) ;
new K Action( i18n ( " Solar System... " ) , K Shortcut( " Ctrl+Y " ) ,
new TDE Action( i18n ( " Solar System... " ) , TDE Shortcut( " Ctrl+Y " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSolarSystem ( ) ) , actionCollection ( ) , " solarsystem " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSolarSystem ( ) ) , actionCollection ( ) , " solarsystem " ) ;
new K Action( i18n ( " Jupiter's Moons... " ) , K Shortcut( " Ctrl+J " ) ,
new TDE Action( i18n ( " Jupiter's Moons... " ) , TDE Shortcut( " Ctrl+J " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotJMoonTool ( ) ) , actionCollection ( ) , " jmoontool " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotJMoonTool ( ) ) , actionCollection ( ) , " jmoontool " ) ;
// devices Menu
// devices Menu
new K Action( i18n ( " Telescope Wizard... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTelescopeWizard ( ) ) , actionCollection ( ) , " telescope_wizard " ) ;
new TDE Action( i18n ( " Telescope Wizard... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTelescopeWizard ( ) ) , actionCollection ( ) , " telescope_wizard " ) ;
new K Action( i18n ( " Telescope Properties... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTelescopeProperties ( ) ) , actionCollection ( ) , " telescope_properties " ) ;
new TDE Action( i18n ( " Telescope Properties... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTelescopeProperties ( ) ) , actionCollection ( ) , " telescope_properties " ) ;
new K Action( i18n ( " Device Manager... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIDriver ( ) ) , actionCollection ( ) , " device_manager " ) ;
new TDE Action( i18n ( " Device Manager... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIDriver ( ) ) , actionCollection ( ) , " device_manager " ) ;
tmpAction = new K Action( i18n ( " Capture Image Sequence... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotImageSequence ( ) ) , actionCollection ( ) , " capture_sequence " ) ;
tmpAction = new TDE Action( i18n ( " Capture Image Sequence... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotImageSequence ( ) ) , actionCollection ( ) , " capture_sequence " ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction = new K Action( i18n ( " INDI Control Panel... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIPanel ( ) ) , actionCollection ( ) , " indi_control_panel " ) ;
tmpAction = new TDE Action( i18n ( " INDI Control Panel... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIPanel ( ) ) , actionCollection ( ) , " indi_control_panel " ) ;
tmpAction - > setEnabled ( false ) ;
tmpAction - > setEnabled ( false ) ;
new K Action( i18n ( " Configure INDI... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIConf ( ) ) , actionCollection ( ) , " configure_indi " ) ;
new TDE Action( i18n ( " Configure INDI... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotINDIConf ( ) ) , actionCollection ( ) , " configure_indi " ) ;
//Help Menu:
//Help Menu:
new K Action( i18n ( " Tip of the Day " ) , " idea " , 0 ,
new TDE Action( i18n ( " Tip of the Day " ) , " idea " , 0 ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTipOfDay ( ) ) , actionCollection ( ) , " help_tipofday " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTipOfDay ( ) ) , actionCollection ( ) , " help_tipofday " ) ;
//Handbook toolBar item:
//Handbook toolBar item:
new K Action( i18n ( " &Handbook " ) , " contents " , K Shortcut( " F1 " ) ,
new TDE Action( i18n ( " &Handbook " ) , " contents " , TDE Shortcut( " F1 " ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( appHelpActivated ( ) ) , actionCollection ( ) , " handbook " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( appHelpActivated ( ) ) , actionCollection ( ) , " handbook " ) ;
//
//
@ -253,39 +253,39 @@ void KStars::initActions() {
//
//
//show_stars:
//show_stars:
a = new K ToggleAction( i18n ( " Toggle Stars " ) , " kstars_stars " ,
a = new TDE ToggleAction( i18n ( " Toggle Stars " ) , " kstars_stars " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_stars " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_stars " ) ;
//show_deepsky:
//show_deepsky:
a = new K ToggleAction( i18n ( " Toggle Deep Sky Objects " ) , " kstars_deepsky " ,
a = new TDE ToggleAction( i18n ( " Toggle Deep Sky Objects " ) , " kstars_deepsky " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_deepsky " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_deepsky " ) ;
//show_planets:
//show_planets:
a = new K ToggleAction( i18n ( " Toggle Solar System " ) , " kstars_planets " ,
a = new TDE ToggleAction( i18n ( " Toggle Solar System " ) , " kstars_planets " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_planets " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_planets " ) ;
//show_clines:
//show_clines:
a = new K ToggleAction( i18n ( " Toggle Constellation Lines " ) , " kstars_clines " ,
a = new TDE ToggleAction( i18n ( " Toggle Constellation Lines " ) , " kstars_clines " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_clines " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_clines " ) ;
//show_cnames:
//show_cnames:
a = new K ToggleAction( i18n ( " Toggle Constellation Names " ) , " kstars_cnames " ,
a = new TDE ToggleAction( i18n ( " Toggle Constellation Names " ) , " kstars_cnames " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cnames " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cnames " ) ;
//show_cbound:
//show_cbound:
a = new K ToggleAction( i18n ( " Toggle Constellation Boundaries " ) , " kstars_cbound " ,
a = new TDE ToggleAction( i18n ( " Toggle Constellation Boundaries " ) , " kstars_cbound " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cbounds " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_cbounds " ) ;
//show_mw:
//show_mw:
a = new K ToggleAction( i18n ( " Toggle Milky Way " ) , " kstars_mw " ,
a = new TDE ToggleAction( i18n ( " Toggle Milky Way " ) , " kstars_mw " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_mw " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_mw " ) ;
//show_grid:
//show_grid:
a = new K ToggleAction( i18n ( " Toggle Coordinate Grid " ) , " kstars_grid " ,
a = new TDE ToggleAction( i18n ( " Toggle Coordinate Grid " ) , " kstars_grid " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_grid " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_grid " ) ;
//show_horizon:
//show_horizon:
a = new K ToggleAction( i18n ( " Toggle Ground " ) , " kstars_horizon " ,
a = new TDE ToggleAction( i18n ( " Toggle Ground " ) , " kstars_horizon " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_horizon " ) ;
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , actionCollection ( ) , " show_horizon " ) ;
if ( Options : : fitsSaveDirectory ( ) . isEmpty ( ) )
if ( Options : : fitsSaveDirectory ( ) . isEmpty ( ) )
@ -327,7 +327,7 @@ void KStars::initFOV() {
if ( fields . count ( ) = = 4 ) {
if ( fields . count ( ) = = 4 ) {
nm = fields [ 0 ] . stripWhiteSpace ( ) ;
nm = fields [ 0 ] . stripWhiteSpace ( ) ;
KToggleAction * kta = new K ToggleAction( nm , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTargetSymbol ( ) ) ,
TDEToggleAction * kta = new TDE ToggleAction( nm , 0 , TQT_TQOBJECT ( this ) , TQT_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 K Action( i18n ( " Edit FOV Symbols... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFOVEdit ( ) ) , actionCollection ( ) , " edit_fov " ) ) ;
fovActionMenu - > insert ( new TDE Action( i18n ( " Edit FOV Symbols... " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFOVEdit ( ) ) , actionCollection ( ) , " edit_fov " ) ) ;
}
}
void KStars : : initStatusBar ( ) {
void KStars : : initStatusBar ( ) {
@ -477,7 +477,7 @@ void KStars::privatedata::buildGUI() {
//Do not show text on the view toolbar buttons
//Do not show text on the view toolbar buttons
//FIXME: after strings freeze, remove this and make the
//FIXME: after strings freeze, remove this and make the
//text of each button shorter
//text of each button shorter
ks - > toolBar ( " viewToolBar " ) - > setIconText ( K ToolBar: : IconOnly ) ;
ks - > toolBar ( " viewToolBar " ) - > setIconText ( TDE ToolBar: : IconOnly ) ;
ks - > TimeStep = new TimeStepBox ( ks - > toolBar ( ) ) ;
ks - > TimeStep = new TimeStepBox ( ks - > toolBar ( ) ) ;
ks - > toolBar ( ) - > insertWidget ( 0 , 6 , ks - > TimeStep , 15 ) ;
ks - > toolBar ( ) - > insertWidget ( 0 , 6 , ks - > TimeStep , 15 ) ;