summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/kstarsinit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/kstarsinit.cpp')
-rw-r--r--kstars/kstars/kstarsinit.cpp118
1 files changed, 59 insertions, 59 deletions
diff --git a/kstars/kstars/kstarsinit.cpp b/kstars/kstars/kstarsinit.cpp
index 276e5c8a..544d9d9d 100644
--- a/kstars/kstars/kstarsinit.cpp
+++ b/kstars/kstars/kstarsinit.cpp
@@ -49,27 +49,27 @@
void KStars::initActions() {
//File Menu:
new KAction(i18n("&New Window"), "window_new", KShortcut( "Ctrl+N" ),
- this, TQT_SLOT( newWindow() ), actionCollection(), "new_window");
+ TQT_TQOBJECT(this), TQT_SLOT( newWindow() ), actionCollection(), "new_window");
new KAction(i18n("&Close Window"), "fileclose", KShortcut( "Ctrl+W" ),
- this, TQT_SLOT( closeWindow() ), actionCollection(), "close_window");
+ TQT_TQOBJECT(this), TQT_SLOT( closeWindow() ), actionCollection(), "close_window");
new KAction( i18n( "&Download Data..." ), "knewstuff", KShortcut( "Ctrl+D" ),
- this, TQT_SLOT( slotDownload() ), actionCollection(), "get_data" );
- new KAction( i18n( "Open FITS..."), "fileopen", KShortcut( "Ctrl+O"), this, TQT_SLOT( slotOpenFITS()), actionCollection(), "open_file");
+ TQT_TQOBJECT(this), TQT_SLOT( slotDownload() ), actionCollection(), "get_data" );
+ new KAction( i18n( "Open FITS..."), "fileopen", KShortcut( "Ctrl+O"), TQT_TQOBJECT(this), TQT_SLOT( slotOpenFITS()), actionCollection(), "open_file");
new KAction( i18n( "&Save Sky Image..." ), "fileexport", KShortcut( "Ctrl+I" ),
- this, TQT_SLOT( slotExportImage() ), actionCollection(), "export_image" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotExportImage() ), actionCollection(), "export_image" );
new KAction( i18n( "&Run Script..." ), "launch", KShortcut( "Ctrl+R" ),
- this, TQT_SLOT( slotRunScript() ), actionCollection(), "run_script" );
- KStdAction::print(this, TQT_SLOT( slotPrint() ), actionCollection(), "print" );
- KStdAction::quit(this, TQT_SLOT( close() ), actionCollection(), "quit" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotRunScript() ), actionCollection(), "run_script" );
+ KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT( slotPrint() ), actionCollection(), "print" );
+ KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection(), "quit" );
//Time Menu:
new KAction( i18n( "Set Time to &Now" ), KShortcut( "Ctrl+E" ),
- this, TQT_SLOT( slotSetTimeToNow() ), actionCollection(), "time_to_now" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotSetTimeToNow() ), actionCollection(), "time_to_now" );
new KAction( i18n( "set Clock to New Time", "&Set Time..." ), "clock", KShortcut( "Ctrl+S" ),
- 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"),
i18n("Start &Clock"), BarIcon("1rightarrow"),
- 0, this, TQT_SLOT( slotToggleTimer() ), actionCollection(), "timer_control" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotToggleTimer() ), actionCollection(), "timer_control" );
actTimeRun->setOffToolTip( i18n( "Start Clock" ) );
actTimeRun->setOnToolTip( i18n( "Stop Clock" ) );
TQObject::connect(data()->clock(), TQT_SIGNAL(clockStarted()), actTimeRun, TQT_SLOT(turnOn()) );
@@ -79,36 +79,36 @@ void KStars::initActions() {
//Focus Menu:
new KAction(i18n( "&Zenith" ), KShortcut( "Z" ),
- this, TQT_SLOT( slotPointFocus() ), actionCollection(), "zenith");
+ TQT_TQOBJECT(this), TQT_SLOT( slotPointFocus() ), actionCollection(), "zenith");
new KAction(i18n( "&North" ), KShortcut( "N" ),
- this, TQT_SLOT( slotPointFocus() ), actionCollection(), "north");
+ TQT_TQOBJECT(this), TQT_SLOT( slotPointFocus() ), actionCollection(), "north");
new KAction(i18n( "&East" ), KShortcut( "E" ),
- this, TQT_SLOT( slotPointFocus() ), actionCollection(), "east");
+ TQT_TQOBJECT(this), TQT_SLOT( slotPointFocus() ), actionCollection(), "east");
new KAction(i18n( "&South" ), KShortcut( "S" ),
- this, TQT_SLOT( slotPointFocus() ), actionCollection(), "south");
+ TQT_TQOBJECT(this), TQT_SLOT( slotPointFocus() ), actionCollection(), "south");
new KAction(i18n( "&West" ), KShortcut( "W" ),
- this, TQT_SLOT( slotPointFocus() ), actionCollection(), "west");
- KAction *tmpAction = KStdAction::find( this, TQT_SLOT( slotFind() ),
+ TQT_TQOBJECT(this), TQT_SLOT( slotPointFocus() ), actionCollection(), "west");
+ KAction *tmpAction = KStdAction::find( TQT_TQOBJECT(this), TQT_SLOT( slotFind() ),
actionCollection(), "find_object" );
tmpAction->setText( i18n( "&Find Object..." ) );
tmpAction->setToolTip( i18n( "Find object" ) );
new KAction( i18n( "Engage &Tracking" ), "decrypted", KShortcut( "Ctrl+T" ),
- this, TQT_SLOT( slotTrack() ), actionCollection(), "track_object" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotTrack() ), actionCollection(), "track_object" );
new KAction( i18n( "Set Focus &Manually..." ), KShortcut( "Ctrl+M" ),
- this, TQT_SLOT( slotManualFocus() ), actionCollection(), "manual_focus" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotManualFocus() ), actionCollection(), "manual_focus" );
//View Menu:
- KStdAction::zoomIn(this, TQT_SLOT( slotZoomIn() ), actionCollection(), "zoom_in" );
- KStdAction::zoomOut(this, TQT_SLOT( slotZoomOut() ), actionCollection(), "zoom_out" );
+ KStdAction::zoomIn(TQT_TQOBJECT(this), TQT_SLOT( slotZoomIn() ), actionCollection(), "zoom_in" );
+ KStdAction::zoomOut(TQT_TQOBJECT(this), TQT_SLOT( slotZoomOut() ), actionCollection(), "zoom_out" );
new KAction( i18n( "&Default Zoom" ), "viewmagfit.png", KShortcut( "Ctrl+Z" ),
- this, TQT_SLOT( slotDefaultZoom() ), actionCollection(), "zoom_default" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotDefaultZoom() ), actionCollection(), "zoom_default" );
new KAction( i18n( "&Zoom to Angular Size..." ), "viewmag.png", KShortcut( "Ctrl+Shift+Z" ),
- 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" ),
- Key_Space, this, TQT_SLOT( slotCoordSys() ), actionCollection(), "coordsys" );
- KStdAction::fullScreen( this, TQT_SLOT( slotFullScreen() ), actionCollection(), 0 );
+ Key_Space, TQT_TQOBJECT(this), TQT_SLOT( slotCoordSys() ), actionCollection(), "coordsys" );
+ KStdAction::fullScreen( TQT_TQOBJECT(this), TQT_SLOT( slotFullScreen() ), actionCollection(), 0 );
//Settings Menu:
@@ -178,9 +178,9 @@ void KStars::initActions() {
while ( !stream.eof() ) {
line = stream.readLine();
- schemeName = line.left( line.find( ':' ) );
+ schemeName = line.left( line.tqfind( ':' ) );
//I call it filename here, but it's used as the name of the action!
- filename = "cs_" + line.mid( line.find( ':' ) +1, line.find( '.' ) - line.find( ':' ) - 1 );
+ filename = "cs_" + line.mid( line.tqfind( ':' ) +1, line.tqfind( '.' ) - line.tqfind( ':' ) - 1 );
addColorMenuItem( i18n( schemeName.local8Bit() ), filename.local8Bit() );
}
file.close();
@@ -191,62 +191,62 @@ void KStars::initActions() {
initFOV();
new KAction( i18n( "Location on Earth", "&Geographic..." ),
- "kstars_geo", KShortcut( "Ctrl+G" ), this,
+ "kstars_geo", KShortcut( "Ctrl+G" ), TQT_TQOBJECT(this),
TQT_SLOT( slotGeoLocator() ), actionCollection(), "geolocation" );
- KStdAction::preferences( this, TQT_SLOT( slotViewOps() ), actionCollection(), "configure" );
+ KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT( slotViewOps() ), actionCollection(), "configure" );
new KAction(i18n( "Startup Wizard..." ), "wizard", KShortcut(),
- this, TQT_SLOT( slotWizard() ), actionCollection(), "startwizard" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotWizard() ), actionCollection(), "startwizard" );
//Tools Menu:
new KAction(i18n( "Calculator..."), KShortcut( "Ctrl+C"),
- this, TQT_SLOT( slotCalculator() ), actionCollection(), "astrocalculator");
+ TQT_TQOBJECT(this), TQT_SLOT( slotCalculator() ), actionCollection(), "astrocalculator");
new KAction(i18n( "Observing List..."), KShortcut( "Ctrl+L"),
- this, TQT_SLOT( slotObsList() ), actionCollection(), "obslist");
+ TQT_TQOBJECT(this), TQT_SLOT( slotObsList() ), actionCollection(), "obslist");
// enable action only if file was loaded and processed successfully.
if (!data()->VariableStarsList.isEmpty())
new KAction(i18n( "AAVSO Light Curves..."), KShortcut( "Ctrl+V"),
- this, TQT_SLOT( slotLCGenerator() ), actionCollection(), "lightcurvegenerator");
+ TQT_TQOBJECT(this), TQT_SLOT( slotLCGenerator() ), actionCollection(), "lightcurvegenerator");
new KAction(i18n( "Altitude vs. Time..."), KShortcut( "Ctrl+A"),
- this, TQT_SLOT( slotAVT() ), actionCollection(), "altitude_vs_time");
+ TQT_TQOBJECT(this), TQT_SLOT( slotAVT() ), actionCollection(), "altitude_vs_time");
new KAction(i18n( "What's up Tonight..."), KShortcut("Ctrl+U"),
- this, TQT_SLOT(slotWUT()), actionCollection(), "whats_up_tonight");
+ TQT_TQOBJECT(this), TQT_SLOT(slotWUT()), actionCollection(), "whats_up_tonight");
//FIXME GLOSSARY
// new KAction(i18n( "Glossary..."), KShortcut("Ctrl+K"),
// this, TQT_SLOT(slotGlossary()), actionCollection(), "glossary");
new KAction(i18n( "Script Builder..."), KShortcut("Ctrl+B"),
- this, TQT_SLOT(slotScriptBuilder()), actionCollection(), "scriptbuilder");
+ TQT_TQOBJECT(this), TQT_SLOT(slotScriptBuilder()), actionCollection(), "scriptbuilder");
new KAction(i18n( "Solar System..."), KShortcut("Ctrl+Y"),
- this, TQT_SLOT(slotSolarSystem()), actionCollection(), "solarsystem");
+ TQT_TQOBJECT(this), TQT_SLOT(slotSolarSystem()), actionCollection(), "solarsystem");
new KAction(i18n( "Jupiter's Moons..."), KShortcut("Ctrl+J"),
- this, TQT_SLOT(slotJMoonTool()), actionCollection(), "jmoontool");
+ TQT_TQOBJECT(this), TQT_SLOT(slotJMoonTool()), actionCollection(), "jmoontool");
// devices Menu
- new KAction(i18n("Telescope Wizard..."), 0, this, TQT_SLOT(slotTelescopeWizard()), actionCollection(), "telescope_wizard");
- new KAction(i18n("Telescope Properties..."), 0, this, TQT_SLOT(slotTelescopeProperties()), actionCollection(), "telescope_properties");
- new KAction(i18n("Device Manager..."), 0, this, TQT_SLOT(slotINDIDriver()), actionCollection(), "device_manager");
+ new KAction(i18n("Telescope Wizard..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotTelescopeWizard()), actionCollection(), "telescope_wizard");
+ new KAction(i18n("Telescope Properties..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotTelescopeProperties()), actionCollection(), "telescope_properties");
+ new KAction(i18n("Device Manager..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotINDIDriver()), actionCollection(), "device_manager");
- tmpAction = new KAction(i18n("Capture Image Sequence..."), 0, this, TQT_SLOT(slotImageSequence()), actionCollection(), "capture_sequence");
+ tmpAction = new KAction(i18n("Capture Image Sequence..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImageSequence()), actionCollection(), "capture_sequence");
tmpAction->setEnabled(false);
- tmpAction = new KAction(i18n("INDI Control Panel..."), 0, this, TQT_SLOT(slotINDIPanel()), actionCollection(), "indi_control_panel");
+ tmpAction = new KAction(i18n("INDI Control Panel..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotINDIPanel()), actionCollection(), "indi_control_panel");
tmpAction->setEnabled(false);
- new KAction(i18n("Configure INDI..."), 0, this, TQT_SLOT(slotINDIConf()), actionCollection(), "configure_indi");
+ new KAction(i18n("Configure INDI..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotINDIConf()), actionCollection(), "configure_indi");
//Help Menu:
new KAction( i18n( "Tip of the Day" ), "idea", 0,
- this, TQT_SLOT( slotTipOfDay() ), actionCollection(), "help_tipofday" );
+ TQT_TQOBJECT(this), TQT_SLOT( slotTipOfDay() ), actionCollection(), "help_tipofday" );
//Handbook toolBar item:
new KAction( i18n( "&Handbook" ), "contents", KShortcut( "F1" ),
- this, TQT_SLOT( appHelpActivated() ), actionCollection(), "handbook" );
+ TQT_TQOBJECT(this), TQT_SLOT( appHelpActivated() ), actionCollection(), "handbook" );
//
//viewToolBar actions:
@@ -254,39 +254,39 @@ void KStars::initActions() {
//show_stars:
a = new KToggleAction( i18n( "Toggle Stars" ), "kstars_stars",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_stars" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_stars" );
//show_deepsky:
a = new KToggleAction( i18n( "Toggle Deep Sky Objects" ), "kstars_deepsky",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_deepsky" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_deepsky" );
//show_planets:
a = new KToggleAction( i18n( "Toggle Solar System" ), "kstars_planets",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_planets" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_planets" );
//show_clines:
a = new KToggleAction( i18n( "Toggle Constellation Lines" ), "kstars_clines",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_clines" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_clines" );
//show_cnames:
a = new KToggleAction( i18n( "Toggle Constellation Names" ), "kstars_cnames",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_cnames" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_cnames" );
//show_cbound:
a = new KToggleAction( i18n( "Toggle Constellation Boundaries" ), "kstars_cbound",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_cbounds" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_cbounds" );
//show_mw:
a = new KToggleAction( i18n( "Toggle Milky Way" ), "kstars_mw",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_mw" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_mw" );
//show_grid:
a = new KToggleAction( i18n( "Toggle Coordinate Grid" ), "kstars_grid",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_grid" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_grid" );
//show_horizon:
a = new KToggleAction( i18n( "Toggle Ground" ), "kstars_horizon",
- 0, this, TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_horizon" );
+ 0, TQT_TQOBJECT(this), TQT_SLOT( slotViewToolBar() ), actionCollection(), "show_horizon" );
if (Options::fitsSaveDirectory().isEmpty())
Options::setFitsSaveDirectory(TQDir:: homeDirPath());
@@ -327,7 +327,7 @@ void KStars::initFOV() {
if ( fields.count() == 4 ) {
nm = fields[0].stripWhiteSpace();
- KToggleAction *kta = new KToggleAction( nm, 0, this, TQT_SLOT( slotTargetSymbol() ),
+ KToggleAction *kta = new KToggleAction( nm, 0, TQT_TQOBJECT(this), TQT_SLOT( slotTargetSymbol() ),
actionCollection(), nm.utf8() );
kta->setExclusiveGroup( "fovsymbol" );
if ( nm == Options::fOVName() ) kta->setChecked( true );
@@ -335,11 +335,11 @@ void KStars::initFOV() {
}
}
} else {
- kdDebug() << i18n( "Could not open file: %1" ).arg( f.name() ) << endl;
+ kdDebug() << i18n( "Could not open file: %1" ).tqarg( f.name() ) << endl;
}
fovActionMenu->popupMenu()->insertSeparator();
- fovActionMenu->insert( new KAction( i18n( "Edit FOV Symbols..." ), 0, this, TQT_SLOT( slotFOVEdit() ), actionCollection(), "edit_fov" ) );
+ fovActionMenu->insert( new KAction( i18n( "Edit FOV Symbols..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotFOVEdit() ), actionCollection(), "edit_fov" ) );
}
void KStars::initStatusBar() {
@@ -467,7 +467,7 @@ void KStars::privatedata::buildGUI() {
ks->initStatusBar();
ks->initActions();
- // create the layout of the central widget
+ // create the tqlayout of the central widget
ks->topLayout = new TQVBoxLayout( ks->centralWidget );
ks->topLayout->addWidget( ks->skymap );