#include <kdeapp.h>
Inheritance diagram for KdeApp:


|
||||||||||||||||||||||||
|
construtor Definition at line 100 of file kdeapp.cpp. References app, appCore, celestia_tick(), CelSplashScreen::finish(), CelestiaCore::getRenderer(), CelestiaCore::getSimulation(), glWidget, initActions(), CelestiaCore::initSimulation(), kdewatcher, menuBar, popupMenu(), renderer, CelestiaCore::setAlerter(), CelestiaCore::setContextMenuCallback(), CelestiaCore::setDistanceToScreen(), sim, slotFullScreen(), toggleMenubar, and toggleToolbar. 00100 : KMainWindow(0, 0)
00101 {
00102 #if KDE_VERSION >= 0x030200
00103 CelSplashScreen *splash = NULL;
00104 if (!disableSplash) {
00105 QStringList splashDirs = KGlobal::dirs()->findDirs("appdata", "splash");
00106 QStringList images;
00107 srandom(time(NULL));
00108 for(QStringList::iterator i = splashDirs.begin(); i != splashDirs.end(); ++i) {
00109 QDir d(*i);
00110 d.setFilter(QDir::Files);
00111 QStringList splashImages = d.entryList().grep(QRegExp("\\.(jpg|png)$", FALSE));
00112 for(QStringList::iterator j = splashImages.begin(); j != splashImages.end(); ++j) {
00113 images.append(*i + *j);
00114 }
00115 }
00116
00117 if (images.size() > 0) {
00118 int index = (int)(random()*1./RAND_MAX*images.size());
00119 splash = new CelSplashScreen(images[index], this);
00120 } else {
00121 KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("Something seems to be wrong with your installation of Celestia. The splash screen directory couldn't be found. \nStart-up will continue, but Celestia will probably be missing some data files and may not work correctly, please check your installation."));
00122 }
00123 }
00124 #endif
00125
00126 appCore=new CelestiaCore();
00127 if (appCore == NULL)
00128 {
00129 cerr << "Out of memory.\n";
00130 exit(1);
00131 }
00132
00133 kdewatcher = new KdeWatcher(appCore, this);
00134
00135 renderer = appCore->getRenderer();
00136 sim = appCore->getSimulation();
00137
00138 app=this;
00139 appCore->setContextMenuCallback(&KdeApp::popupMenu);
00140 appCore->setAlerter(new KdeAlerter(this));
00141
00142 setAcceptDrops(true);
00143
00144 // Create our OpenGL widget
00145 if ( (dir.length() > 1 ? chdir(dir.c_str()):chdir(CONFIG_DATA_DIR)) == -1)
00146 {
00147 ::std::cout << "Cannot chdir to '" << CONFIG_DATA_DIR << "', probably due to improper installation" << ::std::endl;
00148 exit(1);
00149 }
00150 glWidget = new KdeGlWidget( this, "kdeglwidget", appCore);
00151 string* altConfig = config.length() > 0 ? &config : NULL;
00152 #if KDE_VERSION >= 0x030200
00153 if (!appCore->initSimulation(altConfig, &extrasDirs, splash))
00154 #else
00155 if (!appCore->initSimulation(altConfig, &extrasDirs))
00156 #endif
00157 {
00158 exit(1);
00159 }
00160
00161 setCentralWidget(glWidget);
00162 initActions();
00163
00164 glWidget->setFocus();
00165
00166 resize(640,480);
00167 setAutoSaveSettings("MainWindow");
00168 KConfig* conf = kapp->config();
00169 applyMainWindowSettings(conf, "MainWindow");
00170 conf->setGroup("MainWindow");
00171 restoreWindowSize(conf);
00172 conf->setGroup(0);
00173 if (fullscreen) slotFullScreen();
00174
00175 KGlobal::config()->setGroup("Preferences");
00176 if (KGlobal::config()->hasKey("DistanceToScreen"))
00177 {
00178 appCore->setDistanceToScreen(KGlobal::config()->readNumEntry("DistanceToScreen"));
00179 }
00180
00181
00182 if (conf->hasGroup("Shortcuts"))
00183 actionCollection()->readShortcutSettings("Shortcuts", conf);
00184
00185 if (toolBar()->isHidden()) toggleToolbar->setChecked(false);
00186 if (menuBar()->isHidden()) toggleMenubar->setChecked(false);
00187
00188 #if KDE_VERSION >= 0x030200
00189 if (splash != NULL) {
00190 splash->finish(this);
00191 delete splash;
00192 }
00193 #endif
00194
00195 // We use a timer with a null timeout value
00196 // to add appCore->tick to Qt's event loop
00197 QTimer *t = new QTimer( dynamic_cast<QObject *>(this) );
00198 QObject::connect( t, SIGNAL(timeout()), SLOT(celestia_tick()) );
00199 t->start( 0, FALSE );
00200
00201 }
|
|
|
destructor Definition at line 73 of file kdeapp.h. 00073 {};
|
|
|
Definition at line 88 of file kdeapp.h. References appCore, glWidget, and CelestiaCore::tick(). Referenced by KdeApp().
|
|
|
Reimplemented from KCelBookmarkOwner. Definition at line 233 of file kdeapp.cpp. References glWidget. 00233 {
00234 QDateTime now = QDateTime::currentDateTime();
00235 QString iconName = QString::fromLatin1("favicons/celestia_") + now.toString("yyyyMMddhhmmsszzz");
00236 QString iconFilename = locateLocal("cache", iconName) + ".png";
00237
00238 QImage grabedImage = glWidget->grabFrameBuffer();
00239 int width=grabedImage.width(), height=grabedImage.height();
00240 if (width > height) {
00241 grabedImage.copy((width - height)/2, 0, height, height).smoothScale(64,64).save(iconFilename, "PNG");
00242 } else {
00243 grabedImage.copy(0, (height - width)/2, width, width).smoothScale(64,64).save(iconFilename, "PNG");
00244 }
00245
00246 return iconName;
00247 }
|
|
|
Reimplemented from KCelBookmarkOwner. Definition at line 229 of file kdeapp.cpp. References appCore. 00229 {
00230 return Url(appCore, type);
00231 }
|
|
|
Definition at line 1369 of file kdeapp.cpp. 01369 {
01370 KURL::List urls;
01371 event->accept(KURLDrag::canDecode(event) && KURLDrag::decode(event, urls) && urls.first().protocol() == "cel");
01372 }
|
|
|
Definition at line 1374 of file kdeapp.cpp. References CelestiaCore::addToHistory(), appCore, and CelestiaCore::goToUrl(). 01374 {
01375 KURL::List urls;
01376 if (KURLDrag::decode(event, urls) && urls.first().protocol() == "cel") {
01377 appCore->addToHistory();
01378 appCore->goToUrl(urls.first().url().latin1());
01379 }
01380 }
|
|
|
Definition at line 85 of file kdeapp.h. Referenced by KdeWatcher::notifyChange(). 00085 { return actionCollection(); }
|
|
|
Definition at line 880 of file kdeapp.cpp. References ExtensionSupported(), and GL_MAX_TEXTURE_UNITS_ARB. Referenced by slotOpenGLInfo(). 00880 {
00881 // Code grabbed from gtkmain.cpp
00882 char* vendor = (char*) glGetString(GL_VENDOR);
00883 char* render = (char*) glGetString(GL_RENDERER);
00884 char* version = (char*) glGetString(GL_VERSION);
00885 char* ext = (char*) glGetString(GL_EXTENSIONS);
00886 QString s;
00887 s = "Vendor : ";
00888 if (vendor != NULL)
00889 s += vendor;
00890 s += "\n";
00891
00892 s += "Renderer : ";
00893 if (render != NULL)
00894 s += render;
00895 s += "\n";
00896
00897 s += "Version : ";
00898 if (version != NULL)
00899 s += version;
00900 s += "\n";
00901
00902 char buf[100];
00903 GLint simTextures = 1;
00904 if (ExtensionSupported("GL_ARB_multitexture"))
00905 glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &simTextures);
00906 sprintf(buf, "Max simultaneous textures: %d\n", simTextures);
00907 s += buf;
00908
00909 GLint maxTextureSize = 0;
00910 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);
00911 sprintf(buf, "Max texture size: %d\n\n", maxTextureSize);
00912 s += buf;
00913
00914 s += "Supported Extensions:\n ";
00915 if (ext != NULL)
00916 {
00917 QString extString(ext);
00918 unsigned int pos = extString.find(' ', 0);
00919 while (pos != (unsigned int)string::npos)
00920 {
00921 extString.replace(pos, 1, "\n ");
00922 pos = extString.find(' ', pos+5);
00923 }
00924 s += extString;
00925 }
00926
00927 return s;
00928 }
|
|
|
Definition at line 212 of file kdeapp.cpp. References CelestiaCore::addToHistory(), appCore, CelestiaCore::goToUrl(), and slotOpenFileURL(). Referenced by KdeUniqueCelestia::newInstance(). 00212 {
00213 if (url.protocol() == "cel") {
00214 appCore->addToHistory();
00215 appCore->goToUrl(url.prettyURL().latin1());
00216 }
00217 if (url.protocol() == "file") {
00218 appCore->addToHistory();
00219 slotOpenFileURL(url);
00220 }
00221 }
|
|
|
Definition at line 380 of file kdeapp.cpp. References appCore, backAction, bookmarkBar, bookmarkBarActionCollection, FilterOtherLocations, forwardAction, CelestiaCore::getActiveFrameVisible(), Simulation::getActiveObserver(), CelestiaCore::getFramesVisible(), Renderer::getLabelMode(), Observer::getLocationFilter(), Renderer::getOrbitMask(), CelestiaCore::getRenderer(), Renderer::getRenderFlags(), CelestiaCore::getSimulation(), Simulation::getSyncTime(), initBookmarkBar(), openRecent, CelestiaCore::setActiveFrameVisible(), CelestiaCore::setFramesVisible(), Observer::setLocationFilter(), Simulation::setSyncTime(), slotAccelerateTime(), slotAltAzMode(), slotBack(), slotBackAboutToShow(), slotBackActivated(), slotCelestialBrowser(), slotCenterCO(), slotClose(), slotConfigureToolbars(), slotCopyUrl(), slotCycleRenderPath(), slotCycleStarMode(), slotCycleView(), slotDeleteView(), slotDisplayLocalTime(), slotEclipseFinder(), slotFileOpen(), slotFileOpenRecent(), slotForward(), slotForwardAboutToShow(), slotForwardActivated(), slotFullScreen(), slotGoTo(), slotGoToLongLat(), slotGoToSurface(), slotGrabImage(), slotHome(), slotKeyBindings(), slotOpenFileURL(), slotOpenGLInfo(), slotPauseTime(), slotPreferences(), slotReverseTime(), slotSetRenderPathARBFPARBVP(), slotSetRenderPathBasic(), slotSetRenderPathDOT3ARBVP(), slotSetRenderPathGLSL(), slotSetRenderPathMultitexture(), slotSetRenderPathNV30(), slotSetRenderPathNvCombiner(), slotSetRenderPathNvCombinerARBVP(), slotSetRenderPathNvCombinerNvVP(), slotSetTime(), slotSetTimeNow(), slotShowAsteroidLabels(), slotShowAsteroidOrbits(), slotShowAtmospheres(), slotShowAutoMag(), slotShowBookmarkBar(), slotShowBoundaries(), slotShowCelestialSphere(), slotShowCityLocations(), slotShowCloudMaps(), slotShowCometLabels(), slotShowCometOrbits(), slotShowCometTails(), slotShowConstellationLabels(), slotShowCraterLocations(), slotShowDiagrams(), slotShowEclipseShadows(), slotShowGalaxies(), slotShowGalaxyLabels(), slotShowI18nConstellationLabels(), slotShowLandingSiteLocations(), slotShowLocationLabels(), slotShowMareLocations(), slotShowMarkers(), slotShowMonsLocations(), slotShowMoonLabels(), slotShowMoonOrbits(), slotShowNebulae(), slotShowNebulaLabels(), slotShowNightMaps(), slotShowObservatoryLocations(), slotShowOpenClusterLabels(), slotShowOpenClusters(), slotShowOrbits(), slotShowOtherLocations(), slotShowPartialTrajectories(), slotShowPlanetLabels(), slotShowPlanetOrbits(), slotShowPlanets(), slotShowRingShadows(), slotShowSmoothLines(), slotShowSpacecraftLabels(), slotShowSpacecraftOrbits(), slotShowStarLabels(), slotShowStars(), slotShowTerraLocations(), slotShowVallisLocations(), slotSingleView(), slotSlowDownTime(), slotSplitH(), slotSplitV(), slotToggleActiveFrameVisible(), slotToggleFramesVisible(), slotToggleMenubar(), slotToggleSyncTime(), slotToggleToolbar(), slotWireframeMode(), slotZoomIn(), slotZoomOut(), toggleMenubar, and toggleToolbar. Referenced by KdeApp(). 00381 {
00382 KStdAction::open(this, SLOT(slotFileOpen()), actionCollection());
00383 openRecent = KStdAction::openRecent(this, SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
00384 openRecent->loadEntries(KGlobal::config());
00385 connect(openRecent, SIGNAL(urlSelected(const KURL&)), SLOT(slotOpenFileURL(const KURL&)));
00386
00387 KStdAction::quit(this, SLOT(slotClose()), actionCollection());
00388 KStdAction::configureToolbars( this, SLOT( slotConfigureToolbars() ), actionCollection() );
00389
00390 new KAction(i18n("Go to &URL..."), 0, ALT + Key_G, this, SLOT(slotGoTo()), actionCollection(), "go_to");
00391 new KAction(i18n("Go to &Long/Lat..."), 0, ALT + Key_L, this, SLOT(slotGoToLongLat()), actionCollection(), "go_to_long_lat");
00392
00393 backAction = new KToolBarPopupAction( i18n("&Back"), "back",
00394 KStdAccel::key(KStdAccel::Back), this, SLOT( slotBack() ),
00395 actionCollection(), KStdAction::stdName( KStdAction::Back ) );
00396 forwardAction = new KToolBarPopupAction( i18n("&Forward"), "forward",
00397 KStdAccel::key(KStdAccel::Forward), this, SLOT( slotForward() ),
00398 actionCollection(), KStdAction::stdName( KStdAction::Forward ) );
00399 connect( backAction->popupMenu(), SIGNAL( aboutToShow() ), SLOT( slotBackAboutToShow() ) );
00400 connect( backAction->popupMenu(), SIGNAL( activated( int ) ), SLOT( slotBackActivated( int ) ) );
00401 connect( forwardAction->popupMenu(), SIGNAL( aboutToShow() ), SLOT( slotForwardAboutToShow() ) );
00402 connect( forwardAction->popupMenu(), SIGNAL( activated( int ) ), SLOT( slotForwardActivated( int ) ) );
00403 new KAction(i18n("Home"), "gohome", CTRL + Key_Home, this, SLOT(slotHome()), actionCollection(), "home");
00404 action("go_forward")->setEnabled(false);
00405 action("go_back")->setEnabled(false);
00406
00407 KStdAction::zoomIn(this, SLOT(slotZoomIn()), actionCollection());
00408 KStdAction::zoomOut(this, SLOT(slotZoomOut()), actionCollection());
00409
00410 KActionMenu *bookmarks = new KActionMenu( i18n("Bookmarks"), "bookmark", actionCollection(), "bookmarks" );
00411 new KCelBookmarkMenu( KCelBookmarkManager::self(), this,
00412 bookmarks->popupMenu(), actionCollection(), true, true );
00413
00414
00415 KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
00416 KStdAction::configureToolbars(this, SLOT(slotConfigureToolbars()), actionCollection());
00417 KStdAction::keyBindings(this, SLOT(slotKeyBindings()), actionCollection());
00418
00419 KShortcut fullscreen_shortcut(CTRL + Key_F);
00420 fullscreen_shortcut.append(KKeySequence(QKeySequence(ALT + Key_Return)));
00421 //fullscreen_shortcut.append(KShortcut(ALT + Key_Return));
00422 new KAction(i18n("Full Screen"), "window_fullscreen", fullscreen_shortcut, this, SLOT(slotFullScreen()), actionCollection(), "fullScreen");
00423 KShortcut copy_url_shortcut(CTRL + Key_C);
00424 copy_url_shortcut.append(KKeySequence(QKeySequence(CTRL + Key_Insert)));
00425 //copy_url_shortcut.append(KShortcut(CTRL + Key_Insert));
00426 new KAction(i18n("Copy URL"), "edit_copy", copy_url_shortcut, this, SLOT(slotCopyUrl()), actionCollection(), "copyUrl");
00427
00428
00429 new KAction(i18n("Set Time..."), "kalarm", ALT + Key_T, this, SLOT(slotSetTime()), actionCollection(), "setTime");
00430 new KAction(i18n("Set Time to Now"), "player_eject", Key_Exclam, this, SLOT(slotSetTimeNow()), actionCollection(), "setTimeNow");
00431 new KAction(i18n("Accelerate Time"), "1uparrow", Key_L, this, SLOT(slotAccelerateTime()), actionCollection(), "accelerateTime");
00432 new KAction(i18n("Decelerate Time"), "1downarrow", Key_K, this, SLOT(slotSlowDownTime()), actionCollection(), "slowDownTime");
00433 new KAction(i18n("Pause Time"), "player_pause", Key_Space, this, SLOT(slotPauseTime()), actionCollection(), "pauseTime");
00434 new KAction(i18n("Reverse Time"), "reload", Key_J, this, SLOT(slotReverseTime()), actionCollection(), "reverseTime");
00435
00436 new KAction(i18n("Split View Vertically"), "view_top_bottom", CTRL + Key_R, this, SLOT(slotSplitH()), actionCollection(), "splitH");
00437 new KAction(i18n("Split View Horizontally"), "view_left_right", CTRL + Key_U, this, SLOT(slotSplitV()), actionCollection(), "splitV");
00438 new KAction(i18n("Cycle View"), "rotate_cw", Key_Tab, this, SLOT(slotCycleView()), actionCollection(), "cycleView");
00439 new KAction(i18n("Single View"), "view_remove", CTRL + Key_D, this, SLOT(slotSingleView()), actionCollection(), "singleView");
00440 new KAction(i18n("Delete View"), "view_remove", Key_Delete, this, SLOT(slotDeleteView()), actionCollection(), "deleteView");
00441 KToggleAction* framesVisible = new KToggleAction(i18n("Frames Visible"), 0, 0, this, SLOT(slotToggleFramesVisible()), actionCollection(), "framesVisible");
00442 KGlobal::config()->setGroup("Preferences");
00443 if (KGlobal::config()->hasKey("FramesVisible"))
00444 {
00445 bool visible = KGlobal::config()->readBoolEntry("FramesVisible");
00446 framesVisible->setChecked(visible);
00447 appCore->setFramesVisible(visible);
00448 }
00449 else
00450 {
00451 framesVisible->setChecked(appCore->getFramesVisible());
00452 }
00453
00454 KToggleAction* activeFrameVisible = new KToggleAction(i18n("Active Frame Visible"), 0, 0, this, SLOT(slotToggleActiveFrameVisible()), actionCollection(), "activeFrameVisible");
00455 if (KGlobal::config()->hasKey("ActiveFrameVisible"))
00456 {
00457 bool visible = KGlobal::config()->readBoolEntry("ActiveFrameVisible");
00458 activeFrameVisible->setChecked(visible);
00459 appCore->setActiveFrameVisible(visible);
00460 }
00461 else
00462 {
00463 activeFrameVisible->setChecked(appCore->getActiveFrameVisible());
00464 }
00465
00466 KToggleAction* timeSync = new KToggleAction(i18n("Synchronize Time"), 0, 0, this, SLOT(slotToggleSyncTime()), actionCollection(), "syncTime");
00467 if (KGlobal::config()->hasKey("SyncTime"))
00468 {
00469 bool sync = KGlobal::config()->readBoolEntry("SyncTime");
00470 timeSync->setChecked(sync);
00471 appCore->getSimulation()->setSyncTime(sync);
00472 }
00473 else
00474 {
00475 timeSync->setChecked(appCore->getSimulation()->getSyncTime());
00476 }
00477
00478 new KAction(i18n("Alt-Azimuth Mode"), 0, ALT + Key_F, this, SLOT(slotAltAzMode()), actionCollection(), "altAzMode");
00479 new KAction(i18n("Go To Surface"), 0, CTRL + Key_G, this, SLOT(slotGoToSurface()), actionCollection(), "goToSurface");
00480
00481 new KAction(i18n("Celestial Browser"), 0, ALT + Key_C, this, SLOT(slotCelestialBrowser()), actionCollection(), "celestialBrowser");
00482 new KAction(i18n("Eclipse Finder"), 0, ALT + Key_E, this, SLOT(slotEclipseFinder()), actionCollection(), "eclipseFinder");
00483
00484 int rFlags, lMode, oMask;
00485 uint32 lFilter;
00486 bool isLocal = true;
00487 if (KGlobal::config()->hasKey("RendererFlags"))
00488 rFlags = KGlobal::config()->readNumEntry("RendererFlags");
00489 else rFlags = appCore->getRenderer()->getRenderFlags();
00490
00491 if (KGlobal::config()->hasKey("LabelMode"))
00492 lMode = KGlobal::config()->readNumEntry("LabelMode");
00493 else lMode = appCore->getRenderer()->getLabelMode();
00494
00495 if (KGlobal::config()->hasKey("LocationFilter"))
00496 lFilter = KGlobal::config()->readUnsignedNumEntry("LocationFilter");
00497 else lFilter = appCore->getSimulation()->getActiveObserver()->getLocationFilter();
00498 appCore->getSimulation()->getActiveObserver()->setLocationFilter(lFilter);
00499
00500 oMask = appCore->getRenderer()->getOrbitMask();
00501
00502 if (KGlobal::config()->hasKey("TimeZoneBias"))
00503 isLocal = (KGlobal::config()->readNumEntry("TimeZoneBias") != 0);
00504
00506 // Render Flags
00507 KToggleAction* showStars = new KToggleAction(i18n("Show Stars"), 0, this, SLOT(slotShowStars()), actionCollection(), "showStars");
00508 showStars->setChecked(rFlags & Renderer::ShowStars);
00509
00510 KToggleAction* showPlanets = new KToggleAction(i18n("Show Planets"), 0, this, SLOT(slotShowPlanets()), actionCollection(), "showPlanets");
00511 showPlanets->setChecked(rFlags & Renderer::ShowPlanets);
00512
00513 KToggleAction* showGalaxies = new KToggleAction(i18n("Show Galaxies"), Key_U, this, SLOT(slotShowGalaxies()), actionCollection(), "showGalaxies");
00514 showGalaxies->setChecked(rFlags & Renderer::ShowGalaxies);
00515
00516 KToggleAction* showPartialTrajectories = new KToggleAction(i18n("Show Partial Trajectories"), 0, this, SLOT(slotShowPartialTrajectories()), actionCollection(), "showPartialTrajectories");
00517 showPartialTrajectories->setChecked(rFlags & Renderer::ShowPartialTrajectories);
00518
00519 KToggleAction* showNebulae = new KToggleAction(i18n("Show Nebulae"), Key_AsciiCircum, this, SLOT(slotShowNebulae()), actionCollection(), "showNebulae");
00520 showNebulae->setChecked(rFlags & Renderer::ShowNebulae);
00521
00522 KToggleAction* showOpenClusters = new KToggleAction(i18n("Show Open Clusters"), 0, this, SLOT(slotShowOpenClusters()), actionCollection(), "showOpenClusters");
00523 showOpenClusters->setChecked(rFlags & Renderer::ShowOpenClusters);
00524
00525 KToggleAction* showDiagrams = new KToggleAction(i18n("Show Constellations"), Key_Slash, this, SLOT(slotShowDiagrams()), actionCollection(), "showDiagrams");
00526 showDiagrams->setChecked(rFlags & Renderer::ShowDiagrams);
00527
00528 KToggleAction* showCloudMaps = new KToggleAction(i18n("Show CloudMaps"), Key_I, this, SLOT(slotShowCloudMaps()), actionCollection(), "showCloudMaps");
00529 showCloudMaps->setChecked(rFlags & Renderer::ShowCloudMaps);
00530
00531 KToggleAction* showOrbits = new KToggleAction(i18n("Show Orbits"), Key_O, this, SLOT(slotShowOrbits()), actionCollection(), "showOrbits");
00532 showOrbits->setChecked(rFlags & Renderer::ShowOrbits);
00533
00534 KToggleAction* showAsteroidOrbits = new KToggleAction(i18n("Show Asteroid Orbits"), 0, this, SLOT(slotShowAsteroidOrbits()), actionCollection(), "showAsteroidOrbits");
00535 showAsteroidOrbits->setChecked(oMask & Body::Asteroid);
00536
00537 KToggleAction* showCometOrbits = new KToggleAction(i18n("Show Comet Orbits"), 0, this, SLOT(slotShowCometOrbits()), actionCollection(), "showCometOrbits");
00538 showCometOrbits->setChecked(oMask & Body::Comet);
00539
00540 KToggleAction* showMoonOrbits = new KToggleAction(i18n("Show Moon Orbits"), 0, this, SLOT(slotShowMoonOrbits()), actionCollection(), "showMoonOrbits");
00541 showMoonOrbits->setChecked(oMask & Body::Moon);
00542
00543 KToggleAction* showPlanetOrbits = new KToggleAction(i18n("Show Planet Orbits"), 0, this, SLOT(slotShowPlanetOrbits()), actionCollection(), "showPlanetOrbits");
00544 showPlanetOrbits->setChecked(oMask & Body::Planet);
00545
00546 KToggleAction* showSpacecraftOrbits = new KToggleAction(i18n("Show Spacecraft Orbits"), 0, this, SLOT(slotShowSpacecraftOrbits()), actionCollection(), "showSpacecraftOrbits");
00547 showSpacecraftOrbits->setChecked(oMask & Body::Spacecraft);
00548
00549 KToggleAction* showCelestialSphere = new KToggleAction(i18n("Show Celestial Grid"), Key_Semicolon, this, SLOT(slotShowCelestialSphere()), actionCollection(), "showCelestialSphere");
00550 showCelestialSphere->setChecked(rFlags & Renderer::ShowCelestialSphere);
00551
00552 KToggleAction* showNightMaps = new KToggleAction(i18n("Show Night Side Lights"), CTRL + Key_L, this, SLOT(slotShowNightMaps()), actionCollection(), "showNightMaps");
00553 showNightMaps->setChecked(rFlags & Renderer::ShowNightMaps);
00554
00555 KToggleAction* showMarkers = new KToggleAction(i18n("Show Markers"), CTRL + Key_K, this, SLOT(slotShowMarkers()), actionCollection(), "showMarkers");
00556 showMarkers->setChecked(rFlags & Renderer::ShowMarkers);
00557
00558 KToggleAction* showAtmospheres = new KToggleAction(i18n("Show Atmospheres"), CTRL + Key_A, this, SLOT(slotShowAtmospheres()), actionCollection(), "showAtmospheres");
00559 showAtmospheres->setChecked(rFlags & Renderer::ShowAtmospheres);
00560
00561 KToggleAction* showSmoothLines = new KToggleAction(i18n("Show Smooth Orbit Lines"), CTRL + Key_X, this, SLOT(slotShowSmoothLines()), actionCollection(), "showSmoothLines");
00562 showSmoothLines->setChecked(rFlags & Renderer::ShowSmoothLines);
00563
00564 KToggleAction* showEclipseShadows = new KToggleAction(i18n("Show Eclipse Shadows"), CTRL + Key_E, this, SLOT(slotShowEclipseShadows()), actionCollection(), "showEclipseShadows");
00565 showEclipseShadows->setChecked(rFlags & Renderer::ShowEclipseShadows);
00566
00567 new KAction(i18n("Cycle Star Mode"), CTRL + Key_S, this, SLOT(slotCycleStarMode()), actionCollection(), "cycleStarMode");
00568
00569 KToggleAction* showRingShadows = new KToggleAction(i18n("Show Ring Shadows"), 0, this, SLOT(slotShowRingShadows()), actionCollection(), "showRingShadows");
00570 showRingShadows->setChecked(rFlags & Renderer::ShowRingShadows);
00571
00572 KToggleAction* showBoundaries = new KToggleAction(i18n("Show Boundaries"), CTRL + Key_B, this, SLOT(slotShowBoundaries()), actionCollection(), "showBoundaries");
00573 showBoundaries->setChecked(rFlags & Renderer::ShowBoundaries);
00574
00575 new KToggleAction(i18n("Auto Magnitudes"), CTRL + Key_Y, this, SLOT(slotShowAutoMag()), actionCollection(), "showAutoMag");
00576 showBoundaries->setChecked(rFlags & Renderer::ShowAutoMag);
00577
00578 KToggleAction* showCometTails = new KToggleAction(i18n("Show Comet Tails"), CTRL + Key_T, this, SLOT(slotShowCometTails()), actionCollection(), "showCometTails");
00579 showCometTails->setChecked(rFlags & Renderer::ShowCometTails);
00580
00581 KToggleAction* showStarLabels = new KToggleAction(i18n("Show Star Labels"), Key_B, this, SLOT(slotShowStarLabels()), actionCollection(), "showStarLabels");
00582 showStarLabels->setChecked(lMode & Renderer::StarLabels);
00583
00585 // Label Mode
00586 KToggleAction* showPlanetLabels = new KToggleAction(i18n("Show Planet Labels"), Key_P, this, SLOT(slotShowPlanetLabels()), actionCollection(), "showPlanetLabels");
00587 showPlanetLabels->setChecked(lMode & Renderer::PlanetLabels);
00588
00589 KToggleAction* showMoonLabels = new KToggleAction(i18n("Show Moon Labels"), Key_M, this, SLOT(slotShowMoonLabels()), actionCollection(), "showMoonLabels");
00590 showMoonLabels->setChecked(lMode & Renderer::MoonLabels);
00591
00592 KToggleAction* showCometLabels = new KToggleAction(i18n("Show Comet Labels"), SHIFT + Key_W, this, SLOT(slotShowCometLabels()), actionCollection(), "showCometLabels");
00593 showMoonLabels->setChecked(lMode & Renderer::CometLabels);
00594
00595 KToggleAction* showConstellationLabels = new KToggleAction(i18n("Show Constellation Labels"), Key_Equal, this, SLOT(slotShowConstellationLabels()), actionCollection(), "showConstellationLabels");
00596 showConstellationLabels->setChecked(lMode & Renderer::ConstellationLabels);
00597
00598 KToggleAction* showI18nConstellationLabels = new KToggleAction(i18n("Constellation Labels in Latin"), 0, this, SLOT(slotShowI18nConstellationLabels()), actionCollection(), "showI18nConstellationLabels");
00599 showI18nConstellationLabels->setChecked(!(lMode & Renderer::I18nConstellationLabels));
00600
00601 KToggleAction* showGalaxyLabels = new KToggleAction(i18n("Show Galaxy Labels"), Key_E, this, SLOT(slotShowGalaxyLabels()), actionCollection(), "showGalaxyLabels");
00602 showGalaxyLabels->setChecked(lMode & Renderer::GalaxyLabels);
00603
00604 KToggleAction* showNebulaLabels = new KToggleAction(i18n("Show Nebula Labels"), 0, this, SLOT(slotShowNebulaLabels()), actionCollection(), "showNebulaLabels");
00605 showNebulaLabels->setChecked(lMode & Renderer::NebulaLabels);
00606
00607 KToggleAction* showOpenClusterLabels = new KToggleAction(i18n("Show Open Cluster Labels"), 0, this, SLOT(slotShowOpenClusterLabels()), actionCollection(), "showOpenClusterLabels");
00608 showOpenClusterLabels->setChecked(lMode & Renderer::OpenClusterLabels);
00609
00610 KToggleAction* showAsteroidLabels = new KToggleAction(i18n("Show Asteroid Labels"), Key_W, this, SLOT(slotShowAsteroidLabels()), actionCollection(), "showAsteroidLabels");
00611 showAsteroidLabels->setChecked(lMode & Renderer::AsteroidLabels);
00612
00613 KToggleAction* showSpacecraftLabels = new KToggleAction(i18n("Show Spacecraft Labels"), Key_N, this, SLOT(slotShowSpacecraftLabels()), actionCollection(), "showSpacecraftLabels");
00614 showSpacecraftLabels->setChecked(lMode & Renderer::SpacecraftLabels);
00615
00616 KToggleAction* showLocationLabels = new KToggleAction(i18n("Show Location Labels"), Key_Ampersand, this, SLOT(slotShowLocationLabels()), actionCollection(), "showLocationLabels");
00617 showLocationLabels->setChecked(lMode & Renderer::LocationLabels);
00618
00619 KToggleAction* displayLocalTime = new KToggleAction(i18n("Display Local Time"), ALT + Key_U, this, SLOT(slotDisplayLocalTime()), actionCollection(), "displayLocalTime");
00620 displayLocalTime->setChecked(isLocal);
00621
00623 // Location Filters
00624 KToggleAction* showCityLocations = new KToggleAction(i18n("Show City Locations"), 0, this, SLOT(slotShowCityLocations()), actionCollection(), "showCityLocations");
00625 showCityLocations->setChecked(lFilter & Location::City);
00626
00627 KToggleAction* showObservatoryLocations = new KToggleAction(i18n("Show Observatory Locations"), 0, this, SLOT(slotShowObservatoryLocations()), actionCollection(), "showObservatoryLocations");
00628 showObservatoryLocations->setChecked(lFilter & Location::Observatory);
00629
00630 KToggleAction* showLandingSiteLocations = new KToggleAction(i18n("Show Landing Sites Locations"), 0, this, SLOT(slotShowLandingSiteLocations()), actionCollection(), "showLandingSiteLocations");
00631 showLandingSiteLocations->setChecked(lFilter & Location::LandingSite);
00632
00633 KToggleAction* showCraterLocations = new KToggleAction(i18n("Show Crater Locations"), 0, this, SLOT(slotShowCraterLocations()), actionCollection(), "showCraterLocations");
00634 showCraterLocations->setChecked(lFilter & Location::Crater);
00635
00636 KToggleAction* showMonsLocations = new KToggleAction(i18n("Show Mons Locations"), 0, this, SLOT(slotShowMonsLocations()), actionCollection(), "showMonsLocations");
00637 showMonsLocations->setChecked(lFilter & Location::Mons);
00638
00639 KToggleAction* showTerraLocations = new KToggleAction(i18n("Show Terra Locations"), 0, this, SLOT(slotShowTerraLocations()), actionCollection(), "showTerraLocations");
00640 showTerraLocations->setChecked(lFilter & Location::Terra);
00641
00642 KToggleAction* showVallisLocations = new KToggleAction(i18n("Show Vallis Locations"), 0, this, SLOT(slotShowVallisLocations()), actionCollection(), "showVallisLocations");
00643 showVallisLocations->setChecked(lFilter & Location::Vallis);
00644
00645 KToggleAction* showMareLocations = new KToggleAction(i18n("Show Mare Locations"), 0, this, SLOT(slotShowMareLocations()), actionCollection(), "showMareLocations");
00646 showMareLocations->setChecked(lFilter & Location::Mare);
00647
00648 KToggleAction* showOtherLocations = new KToggleAction(i18n("Show Other Locations"), 0, this, SLOT(slotShowOtherLocations()), actionCollection(), "showOtherLocations");
00649 showOtherLocations->setChecked(lFilter & FilterOtherLocations);
00651
00652 new KToggleAction(i18n("Wireframe Mode"), CTRL + Key_W, this, SLOT(slotWireframeMode()), actionCollection(), "wireframeMode");
00653
00654 new KAction(i18n("Center on Orbit"), SHIFT + Key_C, this, SLOT(slotCenterCO()), actionCollection(), "centerCO");
00655
00656
00657 KToggleAction *renderPath = 0;
00658 renderPath = new KToggleAction(i18n("Basic"), 0, this, SLOT(slotSetRenderPathBasic()), actionCollection(), "renderPathBasic");
00659 renderPath->setExclusiveGroup("renderPath");
00660 renderPath = new KToggleAction(i18n("Multitexture"), 0, this, SLOT(slotSetRenderPathMultitexture()), actionCollection(), "renderPathMultitexture");
00661 renderPath->setExclusiveGroup("renderPath");
00662 renderPath = new KToggleAction(i18n("NvCombiners"), 0, this, SLOT(slotSetRenderPathNvCombiner()), actionCollection(), "renderPathNvCombiner");
00663 renderPath->setExclusiveGroup("renderPath");
00664 renderPath = new KToggleAction(i18n("DOT3 ARBVP"), 0, this, SLOT(slotSetRenderPathDOT3ARBVP()), actionCollection(), "renderPathDOT3ARBVP");
00665 renderPath->setExclusiveGroup("renderPath");
00666 renderPath = new KToggleAction(i18n("NvCombiner NvVP"), 0, this, SLOT(slotSetRenderPathNvCombinerNvVP()), actionCollection(), "renderPathNvCombinerNvVP");
00667 renderPath->setExclusiveGroup("renderPath");
00668 renderPath = new KToggleAction(i18n("NvCombiner ARBVP"), 0, this, SLOT(slotSetRenderPathNvCombinerARBVP()), actionCollection(), "renderPathNvCombinerARBVP");
00669 renderPath->setExclusiveGroup("renderPath");
00670 renderPath = new KToggleAction(i18n("ARBFP ARBVP"), 0, this, SLOT(slotSetRenderPathARBFPARBVP()), actionCollection(), "renderPathARBFPARBVP");
00671 renderPath->setExclusiveGroup("renderPath");
00672 renderPath = new KToggleAction(i18n("NV30"), 0, this, SLOT(slotSetRenderPathNV30()), actionCollection(), "renderPathNV30");
00673 renderPath->setExclusiveGroup("renderPath");
00674 renderPath = new KToggleAction(i18n("OpenGL 2.0"), 0, this, SLOT(slotSetRenderPathGLSL()), actionCollection(), "renderPathGLSL");
00675 renderPath->setExclusiveGroup("renderPath");
00676 new KAction(i18n("Cycle OpenGL Render Path"), "reload", CTRL + Key_V, this, SLOT(slotCycleRenderPath()), actionCollection(), "cycleRenderPath");
00677
00678 new KAction(i18n("Grab Image"), "filesave", Key_F10, this, SLOT(slotGrabImage()), actionCollection(), "grabImage");
00679
00680 new KAction(i18n("OpenGL info"), 0, this, SLOT(slotOpenGLInfo()),
00681 actionCollection(), "opengl_info");
00682
00683 toggleMenubar=KStdAction::showMenubar(this, SLOT(slotToggleMenubar()), actionCollection());
00684 toggleToolbar=KStdAction::showToolbar(this, SLOT(slotToggleToolbar()), actionCollection());
00685
00686 new KToggleAction(i18n("Show Bookmark Toolbar"), 0, this,
00687 SLOT(slotShowBookmarkBar()), actionCollection(), "showBookmarkBar");
00688
00689 createGUI();
00690
00691 bookmarkBarActionCollection = new KActionCollection( this );
00692 bookmarkBarActionCollection->setHighlightingEnabled( true );
00693
00694 bookmarkBar = 0;
00695 initBookmarkBar();
00696 }
|
|
|
Definition at line 698 of file kdeapp.cpp. References bookmarkBar, and bookmarkBarActionCollection. Referenced by initActions(), and slotConfigureToolbars(). 00698 {
00699 KToolBar *bar = new KToolBar(this, QMainWindow::Top, true, "bookmarkBar");
00700
00701 if (bookmarkBar) delete bookmarkBar;
00702 bookmarkBar = new KBookmarkBar( KCelBookmarkManager::self(), this, bar, bookmarkBarActionCollection, 0, "bookmarkBar");
00703 if (bar->count() == 0) bar->hide();
00704
00705 applyMainWindowSettings( KGlobal::config(), "MainWindow" );
00706
00707 if (bar->isHidden()) ((KToggleAction*)actionCollection()->action("showBookmarkBar"))->setChecked(false);
00708 else ((KToggleAction*)actionCollection()->action("showBookmarkBar"))->setChecked(true);
00709 }
|
|
|
Definition at line 223 of file kdeapp.cpp. References CelestiaCore::addToHistory(), appCore, and CelestiaCore::goToUrl(). 00223 {
00224 KURL url(_url);
00225 appCore->addToHistory();
00226 appCore->goToUrl(url.prettyURL().latin1());
00227 }
|
|
||||||||||||||||
|
Definition at line 1434 of file kdeapp.cpp. References app, appCore, and glWidget. Referenced by KdeApp(). 01434 {
01435 SelectionPopup popup(app, app->appCore, sel);
01436 popup.init();
01437 int id = popup.exec(app->glWidget->mapToGlobal(QPoint(int(x),int(y))));
01438 popup.process(id);
01439 }
|
|
|
Definition at line 738 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), and Renderer::getRenderFlags(). 00738 {
00739 KConfig* conf = kapp->config();
00740 saveMainWindowSettings(conf, "MainWindow");
00741 conf->setGroup("MainWindow");
00742 saveWindowSize(conf);
00743 conf->setGroup("Preferences");
00744 conf->writeEntry("RendererFlags", appCore->getRenderer()->getRenderFlags());
00745 conf->setGroup(0);
00746 return true;
00747 }
|
|
|
Definition at line 712 of file kdeapp.cpp. References appCore, CelestiaCore::getActiveFrameVisible(), Simulation::getActiveObserver(), Renderer::getAmbientLightLevel(), CelestiaCore::getDistanceToScreen(), Simulation::getFaintestVisible(), CelestiaCore::getFramesVisible(), Renderer::getGLContext(), CelestiaCore::getHudDetail(), Renderer::getLabelMode(), Observer::getLocationFilter(), Renderer::getMinimumFeatureSize(), Renderer::getOrbitMask(), CelestiaCore::getRenderer(), Renderer::getRenderFlags(), GLContext::getRenderPath(), CelestiaCore::getSimulation(), Simulation::getSyncTime(), CelestiaCore::getTimeZoneBias(), and openRecent. 00712 {
00713 KConfig* conf = kapp->config();
00714 saveMainWindowSettings(conf, "MainWindow");
00715 conf->setGroup("MainWindow");
00716 saveWindowSize(conf);
00717 conf->setGroup("Preferences");
00718 conf->writeEntry("RendererFlags", appCore->getRenderer()->getRenderFlags());
00719 conf->writeEntry("OrbitMask", appCore->getRenderer()->getOrbitMask());
00720 conf->writeEntry("LabelMode", appCore->getRenderer()->getLabelMode());
00721 conf->writeEntry("AmbientLightLevel", appCore->getRenderer()->getAmbientLightLevel());
00722 conf->writeEntry("FaintestVisible", appCore->getSimulation()->getFaintestVisible());
00723 conf->writeEntry("HudDetail", appCore->getHudDetail());
00724 conf->writeEntry("TimeZoneBias", appCore->getTimeZoneBias());
00725 conf->writeEntry("RenderPath", appCore->getRenderer()->getGLContext()->getRenderPath());
00726 conf->writeEntry("FramesVisible", appCore->getFramesVisible());
00727 conf->writeEntry("ActiveFrameVisible", appCore->getActiveFrameVisible());
00728 conf->writeEntry("SyncTime", appCore->getSimulation()->getSyncTime());
00729 conf->writeEntry("DistanceToScreen", appCore->getDistanceToScreen());
00730 conf->writeEntry("LocationFilter", appCore->getSimulation()->getActiveObserver()->getLocationFilter());
00731 conf->writeEntry("MinFeatureSize", appCore->getRenderer()->getMinimumFeatureSize());
00732 conf->setGroup(0);
00733 actionCollection()->writeShortcutSettings("Shortcuts", conf);
00734 openRecent->saveEntries(KGlobal::config());
00735 return true;
00736 }
|
|
|
Definition at line 373 of file kdeapp.cpp. Referenced by KdeWatcher::notifyChange(). 00373 {
00374 }
|
|
|
Definition at line 375 of file kdeapp.cpp. Referenced by KdeWatcher::notifyChange(). 00375 {
00376 }
|
|
|
Definition at line 284 of file kdeapp.cpp. References appCore, CelestiaCore::getHistory(), and CelestiaCore::getHistoryCurrent(). Referenced by KdeWatcher::notifyChange(). 00284 {
00285 std::vector<Url> history=appCore->getHistory();
00286 std::vector<Url>::size_type i=appCore->getHistoryCurrent();
00287
00288 if (i >= history.size()-1) {
00289 action("go_forward")->setEnabled(false);
00290 } else {
00291 action("go_forward")->setEnabled(true);
00292 }
00293 if (i == 0) {
00294 action("go_back")->setEnabled(false);
00295 } else {
00296 action("go_back")->setEnabled(true);
00297 }
00298 }
|
|
|
Definition at line 300 of file kdeapp.cpp. References Renderer::getGLContext(), Renderer::getLabelMode(), Renderer::getOrbitMask(), Renderer::getRenderFlags(), GLContext::getRenderPath(), and renderer. Referenced by KdeWatcher::notifyChange(), and slotPreferences(). 00300 {
00301 int rFlags = renderer->getRenderFlags();
00302 int orbitMask = renderer->getOrbitMask();
00303 ((KToggleAction*)action("showStars"))->setChecked(rFlags & Renderer::ShowStars);
00304 ((KToggleAction*)action("showPlanets"))->setChecked(rFlags & Renderer::ShowPlanets);
00305 ((KToggleAction*)action("showGalaxies"))->setChecked(rFlags & Renderer::ShowGalaxies);
00306 ((KToggleAction*)action("showPartialTrajectories"))->setChecked(rFlags & Renderer::ShowPartialTrajectories);
00307 ((KToggleAction*)action("showNebulae"))->setChecked(rFlags & Renderer::ShowNebulae);
00308 ((KToggleAction*)action("showOpenClusters"))->setChecked(rFlags & Renderer::ShowOpenClusters);
00309 ((KToggleAction*)action("showDiagrams"))->setChecked(rFlags & Renderer::ShowDiagrams);
00310 ((KToggleAction*)action("showCloudMaps"))->setChecked(rFlags & Renderer::ShowCloudMaps);
00311 ((KToggleAction*)action("showOrbits"))->setChecked(rFlags & Renderer::ShowOrbits);
00312 ((KToggleAction*)action("showAsteroidOrbits"))->setChecked(orbitMask & Body::Asteroid);
00313 ((KToggleAction*)action("showCometOrbits"))->setChecked(orbitMask & Body::Comet);
00314 ((KToggleAction*)action("showMoonOrbits"))->setChecked(orbitMask & Body::Moon);
00315 ((KToggleAction*)action("showPlanetOrbits"))->setChecked(orbitMask & Body::Planet);
00316 ((KToggleAction*)action("showSpacecraftOrbits"))->setChecked(orbitMask & Body::Spacecraft);
00317 ((KToggleAction*)action("showCelestialSphere"))->setChecked(rFlags & Renderer::ShowCelestialSphere);
00318 ((KToggleAction*)action("showNightMaps"))->setChecked(rFlags & Renderer::ShowNightMaps);
00319 ((KToggleAction*)action("showMarkers"))->setChecked(rFlags & Renderer::ShowMarkers);
00320 ((KToggleAction*)action("showAtmospheres"))->setChecked(rFlags & Renderer::ShowAtmospheres);
00321 ((KToggleAction*)action("showSmoothLines"))->setChecked(rFlags & Renderer::ShowSmoothLines);
00322 ((KToggleAction*)action("showEclipseShadows"))->setChecked(rFlags & Renderer::ShowEclipseShadows);
00323 ((KToggleAction*)action("showRingShadows"))->setChecked(rFlags & Renderer::ShowRingShadows);
00324 ((KToggleAction*)action("showBoundaries"))->setChecked(rFlags & Renderer::ShowBoundaries);
00325 ((KToggleAction*)action("showAutoMag"))->setChecked(rFlags & Renderer::ShowAutoMag);
00326 ((KToggleAction*)action("showCometTails"))->setChecked(rFlags & Renderer::ShowCometTails);
00327
00328 int lMode = renderer->getLabelMode();
00329 ((KToggleAction*)action("showStarLabels"))->setChecked(lMode & Renderer::StarLabels);
00330 ((KToggleAction*)action("showPlanetLabels"))->setChecked(lMode & Renderer::PlanetLabels);
00331 ((KToggleAction*)action("showMoonLabels"))->setChecked(lMode & Renderer::MoonLabels);
00332 ((KToggleAction*)action("showCometLabels"))->setChecked(lMode & Renderer::CometLabels);
00333 ((KToggleAction*)action("showConstellationLabels"))->setChecked(lMode & Renderer::ConstellationLabels);
00334 ((KToggleAction*)action("showI18nConstellationLabels"))->setChecked(!(lMode & Renderer::I18nConstellationLabels));
00335 ((KToggleAction*)action("showGalaxyLabels"))->setChecked(lMode & Renderer::GalaxyLabels);
00336 ((KToggleAction*)action("showNebulaLabels"))->setChecked(lMode & Renderer::NebulaLabels);
00337 ((KToggleAction*)action("showOpenClusterLabels"))->setChecked(lMode & Renderer::OpenClusterLabels);
00338 ((KToggleAction*)action("showAsteroidLabels"))->setChecked(lMode & Renderer::AsteroidLabels);
00339 ((KToggleAction*)action("showSpacecraftLabels"))->setChecked(lMode & Renderer::SpacecraftLabels);
00340 ((KToggleAction*)action("showLocationLabels"))->setChecked(lMode & Renderer::LocationLabels);
00341
00342 switch (renderer->getGLContext()->getRenderPath()) {
00343 case GLContext::GLPath_Basic:
00344 ((KToggleAction*)action("renderPathBasic"))->setChecked(true);
00345 break;
00346 case GLContext::GLPath_Multitexture:
00347 ((KToggleAction*)action("renderPathMultitexture"))->setChecked(true);
00348 break;
00349 case GLContext::GLPath_NvCombiner:
00350 ((KToggleAction*)action("renderPathNvCombiner"))->setChecked(true);
00351 break;
00352 case GLContext::GLPath_DOT3_ARBVP:
00353 ((KToggleAction*)action("renderPathDOT3ARBVP"))->setChecked(true);
00354 break;
00355 case GLContext::GLPath_NvCombiner_NvVP:
00356 ((KToggleAction*)action("renderPathNvCombinerNvVP"))->setChecked(true);
00357 break;
00358 case GLContext::GLPath_NvCombiner_ARBVP:
00359 ((KToggleAction*)action("renderPathNvCombinerARBVP"))->setChecked(true);
00360 break;
00361 case GLContext::GLPath_ARBFP_ARBVP:
00362 ((KToggleAction*)action("renderPathARBFPARBVP"))->setChecked(true);
00363 break;
00364 case GLContext::GLPath_NV30:
00365 ((KToggleAction*)action("renderPathNV30"))->setChecked(true);
00366 break;
00367 case GLContext::GLPath_GLSL:
00368 ((KToggleAction*)action("renderPathGLSL"))->setChecked(true);
00369 break;
00370 }
00371 }
|
|
|
Definition at line 377 of file kdeapp.cpp. Referenced by KdeWatcher::notifyChange(). 00377 {
00378 }
|
|
|
Definition at line 203 of file kdeapp.cpp. References appCore, and CelestiaCore::setStartURL(). Referenced by KdeUniqueCelestia::KdeUniqueCelestia(). 00203 {
00204 if (url.protocol() == "cel") {
00205 appCore->setStartURL(url.url().latin1());
00206 }
00207 if (url.protocol() == "file") {
00208 appCore->setStartURL(url.path().latin1());
00209 }
00210 }
|
|
|
Definition at line 964 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00964 {
00965 appCore->charEntered('l');
00966 }
|
|
|
Definition at line 1235 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01235 {
01236 appCore->charEntered('\006');
01237 }
|
|
|
Definition at line 1251 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), and Renderer::setAmbientLightLevel(). Referenced by KdePreferencesDialog::slotAmbientLightLevel(). 01251 {
01252 appCore->getRenderer()->setAmbientLightLevel(l);
01253 }
|
|
|
Definition at line 1340 of file kdeapp.cpp. References appCore, and CelestiaCore::back(). Referenced by initActions().
|
|
|
Definition at line 1382 of file kdeapp.cpp. References appCore, backAction, CelestiaCore::getHistory(), and CelestiaCore::getHistoryCurrent(). Referenced by initActions(). 01382 {
01383 int i;
01384 KPopupMenu* menu = backAction->popupMenu();
01385 std::vector<Url>::size_type current = appCore->getHistoryCurrent();
01386 int pos;
01387 std::vector<Url> history = appCore->getHistory();
01388
01389 menu->clear();
01390 for (i=0, pos = current - 1 ; pos >= 0 && i < 15 ; pos--, i++) {
01391 menu->insertItem(QString(history[pos].getName().c_str()), pos);
01392 }
01393 }
|
|
|
Definition at line 1395 of file kdeapp.cpp. References appCore, and CelestiaCore::setHistoryCurrent(). Referenced by initActions(). 01395 {
01396 appCore->setHistoryCurrent(i);
01397 }
|
|
|
Definition at line 1416 of file kdeapp.cpp. References appCore. Referenced by initActions(). 01416 {
01417 static CelestialBrowser *cb = new CelestialBrowser(this, appCore);
01418
01419 cb->show();
01420 cb->showNormal();
01421 cb->setActiveWindow();
01422 cb->raise();
01423 }
|
|
|
Definition at line 1279 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01279 {
01280 appCore->charEntered('C');
01281 }
|
|
|
Definition at line 772 of file kdeapp.cpp. Referenced by initActions(). 00772 {
00773 close();
00774 }
|
|
|
Definition at line 806 of file kdeapp.cpp. References initBookmarkBar(), and slotNewToolbarConfig(). Referenced by initActions(). 00807 {
00808 saveMainWindowSettings( KGlobal::config(), "MainWindow" );
00809 KEditToolbar dlg(actionCollection());
00810 connect( &dlg, SIGNAL(newToolbarConfig()), this, SLOT(slotNewToolbarConfig()));
00811 if (dlg.exec())
00812 {
00813 createGUI();
00814 initBookmarkBar();
00815 }
00816 }
|
|
|
Definition at line 1348 of file kdeapp.cpp. References appCore, and Url::getAsString(). Referenced by initActions(). 01348 {
01349 Url url(appCore);
01350 static QClipboard *cb = QApplication::clipboard();
01351 cb->setText(url.getAsString().c_str());
01352 }
|
|
|
Definition at line 1322 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01322 {
01323 appCore->charEntered('\026');
01324 }
|
|
|
Definition at line 1081 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01081 {
01082 appCore->charEntered('\023');
01083 }
|
|
|
Definition at line 1231 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01231 {
01232 appCore->charEntered('\011');
01233 }
|
|
|
Definition at line 1247 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01247 {
01248 appCore->charEntered(127);
01249 }
|
|
|
Definition at line 1263 of file kdeapp.cpp. References appCore, CelestiaCore::getTimeZoneBias(), CelestiaCore::setTimeZoneBias(), and CelestiaCore::setTimeZoneName(). Referenced by initActions(). 01263 {
01264 if (appCore->getTimeZoneBias()) {
01265 appCore->setTimeZoneBias(0);
01266 appCore->setTimeZoneName(i18n("UTC").latin1());
01267 } else {
01268 appCore->setTimeZoneBias(-timezone+3600*daylight);
01269 appCore->setTimeZoneName(tzname[daylight?0:1]);
01270 }
01271 }
|
|
|
Definition at line 1425 of file kdeapp.cpp. References appCore. Referenced by initActions(). 01425 {
01426 static EclipseFinderDlg *ef = new EclipseFinderDlg(this, appCore);
01427
01428 ef->show();
01429 ef->showNormal();
01430 ef->setActiveWindow();
01431 ef->raise();
01432 }
|
|
|
Definition at line 1255 of file kdeapp.cpp. References appCore, CelestiaCore::getSimulation(), and Simulation::setFaintestVisible(). Referenced by KdePreferencesDialog::slotFaintestVisible(). 01255 {
01256 appCore->getSimulation()->setFaintestVisible(m);
01257 }
|
|
|
Definition at line 833 of file kdeapp.cpp. References slotOpenFileURL(). Referenced by initActions(). 00834 {
00835 #ifdef CELX
00836 QString fileOpen = KFileDialog::getOpenFileName(0, "*.cel *.celx");
00837 #else
00838 QString fileOpen = KFileDialog::getOpenFileName(0, "*.cel");
00839 #endif
00840 if (fileOpen == "") return;
00841
00842 slotOpenFileURL(KURL(fileOpen));
00843 }
|
|
|
Definition at line 955 of file kdeapp.cpp. Referenced by initActions(). 00956 {
00957
00958 }
|
|
|
Definition at line 1344 of file kdeapp.cpp. References appCore, and CelestiaCore::forward(). Referenced by initActions().
|
|
|
Definition at line 1399 of file kdeapp.cpp. References appCore, forwardAction, CelestiaCore::getHistory(), and CelestiaCore::getHistoryCurrent(). Referenced by initActions(). 01399 {
01400 int i;
01401 KPopupMenu* menu = forwardAction->popupMenu();
01402 std::vector<Url>::size_type current = appCore->getHistoryCurrent();
01403 std::vector<Url>::size_type pos;
01404 std::vector<Url> history = appCore->getHistory();
01405
01406 menu->clear();
01407 for (i=0, pos = current + 1 ; pos < history.size() && i < 15 ; pos++, i++) {
01408 menu->insertItem(QString(history[pos].getName().c_str()), pos);
01409 }
01410 }
|
|
|
Definition at line 1412 of file kdeapp.cpp. References appCore, and CelestiaCore::setHistoryCurrent(). Referenced by initActions(). 01412 {
01413 appCore->setHistoryCurrent(i);
01414 }
|
|
|
Definition at line 754 of file kdeapp.cpp. Referenced by initActions(), and KdeApp(). 00754 {
00755 static bool isFullScreen=false;
00756
00757 if (isFullScreen) {
00758 showNormal();
00759 action("fullScreen")->setIcon("window_fullscreen");
00760 } else {
00761 showFullScreen();
00762 action("fullScreen")->setIcon("window_nofullscreen");
00763 }
00764 isFullScreen = !isFullScreen;
00765 }
|
|
|
Definition at line 1354 of file kdeapp.cpp. References CelestiaCore::addToHistory(), appCore, and CelestiaCore::goToUrl(). Referenced by initActions(). 01354 {
01355 KLineEditDlg dlg(i18n("Enter URL"), "", this);
01356
01357 if (dlg.exec()) {
01358 appCore->addToHistory();
01359 appCore->goToUrl(dlg.text().latin1());
01360 }
01361 }
|
|
|
Definition at line 1363 of file kdeapp.cpp. References appCore. Referenced by initActions(). 01363 {
01364 LongLatDialog dlg(this, appCore);
01365
01366 dlg.exec();
01367 }
|
|
|
Definition at line 1239 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01239 {
01240 appCore->charEntered('\007');
01241 }
|
|
|
Definition at line 1326 of file kdeapp.cpp. References glWidget. Referenced by initActions(). 01326 {
01327 QString saveAsName = KFileDialog::getSaveFileName(0, "*.png");
01328 if (saveAsName != "") {
01329 QImage grabedImage = glWidget->grabFrameBuffer();
01330 grabedImage.save(saveAsName, "PNG");
01331 }
01332 }
|
|
|
Definition at line 767 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00767 {
00768 appCore->charEntered('h');
00769 appCore->charEntered('g');
00770 }
|
|
|
Definition at line 1259 of file kdeapp.cpp. References appCore, and CelestiaCore::setHudDetail(). 01259 {
01260 appCore->setHudDetail(l);
01261 }
|
|
|
Definition at line 824 of file kdeapp.cpp. Referenced by initActions(). 00825 {
00826 KKeyDialog dlg(false, this);
00827 dlg.insert(actionCollection());
00828 if (dlg.exec()) {
00829 dlg.commitChanges();
00830 }
00831 }
|
|
|
Definition at line 1219 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), and Renderer::setMinimumFeatureSize(). Referenced by KdePreferencesDialog::slotMinFeatureSize(). 01219 {
01220 appCore->getRenderer()->setMinimumFeatureSize((float)size);
01221 }
|
|
|
Definition at line 818 of file kdeapp.cpp. Referenced by slotConfigureToolbars(). 00819 {
00820 // ...if you use any action list, use plugActionList on each here...
00821 applyMainWindowSettings( KGlobal::config(), "MainWindow" );
00822 }
|
|
|
Definition at line 750 of file kdeapp.cpp. 00750 {
00751 // dev only
00752 }
|
|
|
Definition at line 845 of file kdeapp.cpp. References appCore, CelestiaCore::cancelScript(), CommandParser::getErrors(), openRecent, CommandParser::parse(), and CelestiaCore::runScript(). Referenced by goToURL(), initActions(), and slotFileOpen(). 00845 {
00846 QString file = url.directory(false) + url.fileName();
00847
00848 #ifdef CELX
00849 if (file.right(5).compare(QString(".celx")) == 0) {
00850 openRecent->addURL(url);
00851 appCore->cancelScript();
00852 appCore->runScript(file.latin1());
00853 return;
00854 }
00855 #endif
00856
00857 ifstream scriptfile(file.latin1());
00858 if (!scriptfile.good()) {
00859 KMessageBox::error(this, "Error opening script file " + file);
00860 return;
00861 } else {
00862 CommandParser parser(scriptfile);
00863 CommandSequence* script = parser.parse();
00864 if (script == NULL) {
00865 const vector<string>* errors = parser.getErrors();
00866 const char* errorMsg = "";
00867 if (errors->size() > 0)
00868 errorMsg = (*errors)[0].c_str();
00869 KMessageBox::error(this, "Errors in script file " + file + "\n" + errorMsg);
00870 return;
00871 } else {
00872 openRecent->addURL(url);
00873 appCore->cancelScript();
00874 appCore->runScript(script);
00875 }
00876 }
00877 }
|
|
|
Definition at line 930 of file kdeapp.cpp. References getOpenGLInfo(), and CelestiaCore::resize(). Referenced by initActions(). 00930 {
00931 KDialogBase dlg(this, "openglinfo", true, i18n("OpenGL Info"), KDialogBase::Ok);
00932 QTextEdit edit(&dlg);
00933 edit.append(getOpenGLInfo());
00934 edit.setFocusPolicy(QWidget::NoFocus);
00935 dlg.setMainWidget(&edit);
00936 dlg.resize(400,430);
00937 dlg.exec();
00938 }
|
|
|
Definition at line 968 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00968 {
00969 appCore->charEntered(' ');
00970 }
|
|
|
Definition at line 940 of file kdeapp.cpp. References appCore, and resyncMenus(). Referenced by initActions(). 00940 {
00941 KdePreferencesDialog dlg(this, appCore);
00942
00943 dlg.exec();
00944 resyncMenus();
00945 }
|
|
|
Definition at line 960 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00960 {
00961 appCore->charEntered('j');
00962 }
|
|
|
Definition at line 1309 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01309 {
01310 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_ARBFP_ARBVP)
01311 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_ARBFP_ARBVP);
01312 }
|
|
|
Definition at line 1283 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01283 {
01284 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_Basic)
01285 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_Basic);
01286 }
|
|
|
Definition at line 1297 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01297 {
01298 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_DOT3_ARBVP)
01299 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_DOT3_ARBVP);
01300 }
|
|
|
Definition at line 1317 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01317 {
01318 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_GLSL)
01319 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_GLSL);
01320 }
|
|
|
Definition at line 1288 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01288 {
01289 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_Multitexture)
01290 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_Multitexture);
01291 }
|
|
|
Definition at line 1313 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01313 {
01314 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_NV30)
01315 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_NV30);
01316 }
|
|
|
Definition at line 1293 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01293 {
01294 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_NvCombiner)
01295 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_NvCombiner);
01296 }
|
|
|
Definition at line 1305 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01305 {
01306 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_NvCombiner_ARBVP)
01307 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_NvCombiner_ARBVP);
01308 }
|
|
|
Definition at line 1301 of file kdeapp.cpp. References appCore, Renderer::getGLContext(), CelestiaCore::getRenderer(), GLContext::getRenderPath(), and GLContext::setRenderPath(). Referenced by initActions(). 01301 {
01302 if (appCore->getRenderer()->getGLContext()->getRenderPath() != GLContext::GLPath_NvCombiner_NvVP)
01303 appCore->getRenderer()->getGLContext()->setRenderPath(GLContext::GLPath_NvCombiner_NvVP);
01304 }
|
|
|
Definition at line 947 of file kdeapp.cpp. References appCore. Referenced by initActions(). 00947 {
00948 KdePreferencesDialog dlg(this, appCore);
00949
00950 dlg.showPage(2);
00951 dlg.exec();
00952 }
|
|
|
Definition at line 976 of file kdeapp.cpp. References appCore, CelestiaCore::getSimulation(), Simulation::setTime(), and Simulation::update(). Referenced by initActions(). 00976 {
00977 time_t curtime=time(NULL);
00978 appCore->getSimulation()->setTime((double) curtime / 86400.0 + (double) astro::Date(1970, 1, 1));
00979 appCore->getSimulation()->update(0.0);
00980 }
|
|
|
Definition at line 1150 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01150 {
01151 appCore->getRenderer()->setLabelMode(
01152 appCore->getRenderer()->getLabelMode() ^ Renderer::AsteroidLabels);
01153 }
|
|
|
Definition at line 1027 of file kdeapp.cpp. References appCore, Renderer::getOrbitMask(), CelestiaCore::getRenderer(), and Renderer::setOrbitMask(). Referenced by initActions(). 01027 {
01028 appCore->getRenderer()->setOrbitMask(
01029 appCore->getRenderer()->getOrbitMask() ^ Body::Asteroid);
01030 }
|
|
|
Definition at line 1066 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01066 {
01067 appCore->getRenderer()->setRenderFlags(
01068 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowAtmospheres);
01069 }
|
|
|
Definition at line 1095 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01095 {
01096 appCore->getRenderer()->setRenderFlags(
01097 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowAutoMag);
01098 }
|
|
|
Definition at line 1334 of file kdeapp.cpp. Referenced by initActions(). 01334 {
01335 KToolBar * bar = static_cast<KToolBar *>( child( "bookmarkBar", "KToolBar" ) );
01336 if (bar->isVisible()) bar->hide();
01337 else bar->show();
01338 }
|
|
|
Definition at line 1090 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01090 {
01091 appCore->getRenderer()->setRenderFlags(
01092 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowBoundaries);
01093 }
|
|
|
Definition at line 1052 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01052 {
01053 appCore->getRenderer()->setRenderFlags(
01054 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowCelestialSphere);
01055 }
|
|
|
Definition at line 1165 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01165 {
01166 Observer* obs = appCore->getSimulation()->getActiveObserver();
01167 int locationFilter = obs->getLocationFilter();
01168 obs->setLocationFilter(locationFilter ^ Location::City);
01169 }
|
|
|
Definition at line 1017 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01017 {
01018 appCore->getRenderer()->setRenderFlags(
01019 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowCloudMaps);
01020 }
|
|
|
Definition at line 1120 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01120 {
01121 appCore->getRenderer()->setLabelMode(
01122 appCore->getRenderer()->getLabelMode() ^ Renderer::CometLabels);
01123 }
|
|
|
Definition at line 1032 of file kdeapp.cpp. References appCore, Renderer::getOrbitMask(), CelestiaCore::getRenderer(), and Renderer::setOrbitMask(). Referenced by initActions(). 01032 {
01033 appCore->getRenderer()->setOrbitMask(
01034 appCore->getRenderer()->getOrbitMask() ^ Body::Comet);
01035 }
|
|
|
Definition at line 1100 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01100 {
01101 appCore->getRenderer()->setRenderFlags(
01102 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowCometTails);
01103 }
|
|
|
Definition at line 1125 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01125 {
01126 appCore->getRenderer()->setLabelMode(
01127 appCore->getRenderer()->getLabelMode() ^ Renderer::ConstellationLabels);
01128 }
|
|
|
Definition at line 1183 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01183 {
01184 Observer* obs = appCore->getSimulation()->getActiveObserver();
01185 int locationFilter = obs->getLocationFilter();
01186 obs->setLocationFilter(locationFilter ^ Location::Crater);
01187 }
|
|
|
Definition at line 1012 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01012 {
01013 appCore->getRenderer()->setRenderFlags(
01014 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowDiagrams);
01015 }
|
|
|
Definition at line 1076 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01076 {
01077 appCore->getRenderer()->setRenderFlags(
01078 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowEclipseShadows);
01079 }
|
|
|
Definition at line 992 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 00992 {
00993 appCore->getRenderer()->setRenderFlags(
00994 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowGalaxies);
00995 }
|
|
|
Definition at line 1135 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01135 {
01136 appCore->getRenderer()->setLabelMode(
01137 appCore->getRenderer()->getLabelMode() ^ Renderer::GalaxyLabels);
01138 }
|
|
|
Definition at line 1130 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01130 {
01131 appCore->getRenderer()->setLabelMode(
01132 appCore->getRenderer()->getLabelMode() ^ Renderer::I18nConstellationLabels);
01133 }
|
|
|
Definition at line 1177 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01177 {
01178 Observer* obs = appCore->getSimulation()->getActiveObserver();
01179 int locationFilter = obs->getLocationFilter();
01180 obs->setLocationFilter(locationFilter ^ Location::LandingSite);
01181 }
|
|
|
Definition at line 1160 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01160 {
01161 appCore->getRenderer()->setLabelMode(
01162 appCore->getRenderer()->getLabelMode() ^ Renderer::LocationLabels);
01163 }
|
|
|
Definition at line 1207 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01207 {
01208 Observer* obs = appCore->getSimulation()->getActiveObserver();
01209 int locationFilter = obs->getLocationFilter();
01210 obs->setLocationFilter(locationFilter ^ Location::Mare);
01211 }
|
|
|
Definition at line 1062 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01062 {
01063 appCore->charEntered('\013');
01064 }
|
|
|
Definition at line 1189 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01189 {
01190 Observer* obs = appCore->getSimulation()->getActiveObserver();
01191 int locationFilter = obs->getLocationFilter();
01192 obs->setLocationFilter(locationFilter ^ Location::Mons);
01193 }
|
|
|
Definition at line 1115 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01115 {
01116 appCore->getRenderer()->setLabelMode(
01117 appCore->getRenderer()->getLabelMode() ^ Renderer::MoonLabels);
01118 }
|
|
|
Definition at line 1037 of file kdeapp.cpp. References appCore, Renderer::getOrbitMask(), CelestiaCore::getRenderer(), and Renderer::setOrbitMask(). Referenced by initActions(). 01037 {
01038 appCore->getRenderer()->setOrbitMask(
01039 appCore->getRenderer()->getOrbitMask() ^ Body::Moon);
01040 }
|
|
|
Definition at line 1002 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01002 {
01003 appCore->getRenderer()->setRenderFlags(
01004 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowNebulae);
01005 }
|
|
|
Definition at line 1140 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01140 {
01141 appCore->getRenderer()->setLabelMode(
01142 appCore->getRenderer()->getLabelMode() ^ Renderer::NebulaLabels);
01143 }
|
|
|
Definition at line 1057 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01057 {
01058 appCore->getRenderer()->setRenderFlags(
01059 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowNightMaps);
01060 }
|
|
|
Definition at line 1171 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01171 {
01172 Observer* obs = appCore->getSimulation()->getActiveObserver();
01173 int locationFilter = obs->getLocationFilter();
01174 obs->setLocationFilter(locationFilter ^ Location::Observatory);
01175 }
|
|
|
Definition at line 1145 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01145 {
01146 appCore->getRenderer()->setLabelMode(
01147 appCore->getRenderer()->getLabelMode() ^ Renderer::OpenClusterLabels);
01148 }
|
|
|
Definition at line 1007 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01007 {
01008 appCore->getRenderer()->setRenderFlags(
01009 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowOpenClusters);
01010 }
|
|
|
Definition at line 1022 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01022 {
01023 appCore->getRenderer()->setRenderFlags(
01024 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowOrbits);
01025 }
|
|
|
Definition at line 1213 of file kdeapp.cpp. References appCore, FilterOtherLocations, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01213 {
01214 Observer* obs = appCore->getSimulation()->getActiveObserver();
01215 int locationFilter = obs->getLocationFilter();
01216 obs->setLocationFilter(locationFilter ^ FilterOtherLocations);
01217 }
|
|
|
Definition at line 997 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 00997 {
00998 appCore->getRenderer()->setRenderFlags(
00999 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowPartialTrajectories);
01000 }
|
|
|
Definition at line 1110 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01110 {
01111 appCore->getRenderer()->setLabelMode(
01112 appCore->getRenderer()->getLabelMode() ^ Renderer::PlanetLabels);
01113 }
|
|
|
Definition at line 1042 of file kdeapp.cpp. References appCore, Renderer::getOrbitMask(), CelestiaCore::getRenderer(), and Renderer::setOrbitMask(). Referenced by initActions(). 01042 {
01043 appCore->getRenderer()->setOrbitMask(
01044 appCore->getRenderer()->getOrbitMask() ^ Body::Planet);
01045 }
|
|
|
Definition at line 987 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 00987 {
00988 appCore->getRenderer()->setRenderFlags(
00989 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowPlanets);
00990 }
|
|
|
Definition at line 1085 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01085 {
01086 appCore->getRenderer()->setRenderFlags(
01087 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowRingShadows);
01088 }
|
|
|
Definition at line 1071 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 01071 {
01072 appCore->getRenderer()->setRenderFlags(
01073 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowSmoothLines);
01074 }
|
|
|
Definition at line 1155 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01155 {
01156 appCore->getRenderer()->setLabelMode(
01157 appCore->getRenderer()->getLabelMode() ^ Renderer::SpacecraftLabels);
01158 }
|
|
|
Definition at line 1047 of file kdeapp.cpp. References appCore, Renderer::getOrbitMask(), CelestiaCore::getRenderer(), and Renderer::setOrbitMask(). Referenced by initActions(). 01047 {
01048 appCore->getRenderer()->setOrbitMask(
01049 appCore->getRenderer()->getOrbitMask() ^ Body::Spacecraft);
01050 }
|
|
|
Definition at line 1105 of file kdeapp.cpp. References appCore, Renderer::getLabelMode(), CelestiaCore::getRenderer(), and Renderer::setLabelMode(). Referenced by initActions(). 01105 {
01106 appCore->getRenderer()->setLabelMode(
01107 appCore->getRenderer()->getLabelMode() ^ Renderer::StarLabels);
01108 }
|
|
|
Definition at line 982 of file kdeapp.cpp. References appCore, CelestiaCore::getRenderer(), Renderer::getRenderFlags(), and Renderer::setRenderFlags(). Referenced by initActions(). 00982 {
00983 appCore->getRenderer()->setRenderFlags(
00984 appCore->getRenderer()->getRenderFlags() ^ Renderer::ShowStars);
00985 }
|
|
|
Definition at line 1195 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01195 {
01196 Observer* obs = appCore->getSimulation()->getActiveObserver();
01197 int locationFilter = obs->getLocationFilter();
01198 obs->setLocationFilter(locationFilter ^ Location::Terra);
01199 }
|
|
|
Definition at line 1201 of file kdeapp.cpp. References appCore, Simulation::getActiveObserver(), Observer::getLocationFilter(), CelestiaCore::getSimulation(), and Observer::setLocationFilter(). Referenced by initActions(). 01201 {
01202 Observer* obs = appCore->getSimulation()->getActiveObserver();
01203 int locationFilter = obs->getLocationFilter();
01204 obs->setLocationFilter(locationFilter ^ Location::Vallis);
01205 }
|
|
|
Definition at line 1243 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01243 {
01244 appCore->charEntered('\004');
01245 }
|
|
|
Definition at line 972 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00972 {
00973 appCore->charEntered('k');
00974 }
|
|
|
Definition at line 1223 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01223 {
01224 appCore->charEntered('\022');
01225 }
|
|
|
Definition at line 1227 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 01227 {
01228 appCore->charEntered('\025');
01229 }
|
|
|
Definition at line 798 of file kdeapp.cpp. References appCore, CelestiaCore::getActiveFrameVisible(), and CelestiaCore::setActiveFrameVisible(). Referenced by initActions(). 00798 {
00799 appCore->setActiveFrameVisible(!appCore->getActiveFrameVisible());
00800 }
|
|
|
Definition at line 794 of file kdeapp.cpp. References appCore, CelestiaCore::getFramesVisible(), and CelestiaCore::setFramesVisible(). Referenced by initActions(). 00794 {
00795 appCore->setFramesVisible(!appCore->getFramesVisible());
00796 }
|
|
|
Definition at line 789 of file kdeapp.cpp. References menuBar. Referenced by initActions(). 00789 {
00790 if (menuBar()->isVisible()) menuBar()->hide();
00791 else menuBar()->show();
00792 }
|
|
|
Definition at line 802 of file kdeapp.cpp. References appCore, CelestiaCore::getSimulation(), Simulation::getSyncTime(), and Simulation::setSyncTime(). Referenced by initActions(). 00802 {
00803 appCore->getSimulation()->setSyncTime(!appCore->getSimulation()->getSyncTime());
00804 }
|
|
|
Definition at line 784 of file kdeapp.cpp. Referenced by initActions(). 00784 {
00785 if (toolBar()->isVisible()) toolBar()->hide();
00786 else toolBar()->show();
00787 }
|
|
|
Definition at line 1273 of file kdeapp.cpp. References renderer, and Renderer::setRenderMode(). Referenced by initActions(). 01273 {
01274 static bool mode = false;
01275 mode = !mode;
01276 renderer->setRenderMode(mode ? GL_LINE : GL_FILL);
01277 }
|
|
|
Definition at line 776 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00776 {
00777 appCore->charEntered(',');
00778 }
|
|
|
Definition at line 780 of file kdeapp.cpp. References appCore, and CelestiaCore::charEntered(). Referenced by initActions(). 00780 {
00781 appCore->charEntered('.');
00782 }
|
|
||||||||||||
|
|
|
|
Definition at line 87 of file kdeapp.cpp. Referenced by KdeApp(), and popupMenu(). |
|
|
|
Definition at line 235 of file kdeapp.h. Referenced by initActions(), and slotBackAboutToShow(). |
|
|
Definition at line 219 of file kdeapp.h. Referenced by initActions(), and initBookmarkBar(). |
|
|
Definition at line 238 of file kdeapp.h. Referenced by initActions(), and initBookmarkBar(). |
|
|
Definition at line 235 of file kdeapp.h. Referenced by initActions(), and slotForwardAboutToShow(). |
|
|
Definition at line 216 of file kdeapp.h. Referenced by celestia_tick(), currentIcon(), KdeApp(), popupMenu(), and slotGrabImage(). |
|
|
Definition at line 233 of file kdeapp.h. Referenced by KdeApp(). |
|
|
Definition at line 218 of file kdeapp.h. Referenced by initActions(), queryExit(), and slotOpenFileURL(). |
|
|
Definition at line 214 of file kdeapp.h. Referenced by KdeApp(), resyncMenus(), and slotWireframeMode(). |
|
|
Definition at line 215 of file kdeapp.h. Referenced by KdeApp(). |
|
|
Definition at line 224 of file kdeapp.h. Referenced by initActions(), and KdeApp(). |
|
|
Definition at line 225 of file kdeapp.h. Referenced by initActions(), and KdeApp(). |
1.4.1