LandscapeMgr.hpp   LandscapeMgr.hpp 
skipping to change at line 74 skipping to change at line 74
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the LandscapeManager class. //! Initialize the LandscapeManager class.
//! Operations performed: //! Operations performed:
//! - Load the default landscape as specified in the application con figuration //! - Load the default landscape as specified in the application con figuration
//! - Set up landscape-releated display flags from ini parser object //! - Set up landscape-releated display flags from ini parser object
virtual void init(); virtual void init();
//! Draw the landscape graphics, cardinal points and atmosphere. //! Draw the landscape graphics, cardinal points and atmosphere.
virtual void draw(StelCore* core); virtual void draw(StelCore* core, class StelRenderer* renderer);
//! Update time-dependent state. //! Update time-dependent state.
//! Includes: //! Includes:
//! - Landscape, atmosphere and cardinal point on/off fading. //! - Landscape, atmosphere and cardinal point on/off fading.
//! - Atmophere colour calulation based on location, position of sun //! - Atmophere colour calulation based on location, position of sun
//! and moon. //! and moon.
//! - updates adaptation lumenescence lased on visible bright object s. //! - updates adaptation lumenescence lased on visible bright object s.
virtual void update(double deltaTime); virtual void update(double deltaTime);
//! Get the order in which this module will draw it's objects relati ve to other modules. //! Get the order in which this module will draw it's objects relati ve to other modules.
skipping to change at line 228 skipping to change at line 228
//! landscape after installation. //! landscape after installation.
//! @param forAllUsers If true, this function will try to install th e //! @param forAllUsers If true, this function will try to install th e
//! landscape in a way that meakes it is available to all users of t his //! landscape in a way that meakes it is available to all users of t his
//! computer. May require running Stellarium as an administrator (ro ot) //! computer. May require running Stellarium as an administrator (ro ot)
//! on some Windows or *nix systems. (NOT IMPLEMENTED!) //! on some Windows or *nix systems. (NOT IMPLEMENTED!)
//! @returns the installed landscape's identifier, or //! @returns the installed landscape's identifier, or
//! an empty string on failure. //! an empty string on failure.
//! @todo Find a better way to pass error messages. //! @todo Find a better way to pass error messages.
QString installLandscapeFromArchive(QString pathToSourceArchive, boo l display = false, bool forAllUsers = false); QString installLandscapeFromArchive(QString pathToSourceArchive, boo l display = false, bool forAllUsers = false);
//! Install a landscape from a directory. // //! Install a landscape from a directory.
//! Expected directory structure: the name of the directory that con // //! Expected directory structure: the name of the directory that
tains contains
//! a landscape.ini file is assumed to be the landscape ID and shoul // //! a landscape.ini file is assumed to be the landscape ID and sh
d be ould be
//! unique. // //! unique.
//! This directory and all files in it will be installed, but its // //! This directory and all files in it will be installed, but its
//! subdirectories will be skipped along with any other files or // //! subdirectories will be skipped along with any other files or
//! directories in the archive. // //! directories in the archive.
//! @param pathToSourceLandscapeIni path to a landscape.ini file. It // //! @param pathToSourceLandscapeIni path to a landscape.ini file.
s parent Its parent
//! directory is assumed to be the landscape source directory. // //! directory is assumed to be the landscape source directory.
//! @param display If true, the landscape will be set to be the curr // //! @param display If true, the landscape will be set to be the c
ent urrent
//! landscape after installation. // //! landscape after installation.
//! @param forAllUsers If true, this function will try to install th // //! @param forAllUsers If true, this function will try to install
e the
//! landscape in a way that meakes it is available to all users of t // //! landscape in a way that meakes it is available to all users o
his f this
//! computer. May require running Stellarium as an administrator (ro // //! computer. May require running Stellarium as an administrator
ot) (root)
//! on some Windows or *nix systems. (NOT IMPLEMENTED!) // //! on some Windows or *nix systems. (NOT IMPLEMENTED!)
//! @returns the installed landscape's identifier (the folder name), // //! @returns the installed landscape's identifier (the folder nam
or e), or
//! an empty string on failure. // //! an empty string on failure.
//QString installLandscapeFromDirectory(QString pathToSourceLandscap // QString installLandscapeFromDirectory(QString pathToSourceLandsca
eIni, bool display = false, bool forAllUsers = false); peIni, bool display = false, bool forAllUsers = false);
//! This function removes a landscape from the user data directory. //! This function removes a landscape from the user data directory.
//! It tries to recursively delete all files in the landscape direct ory //! It tries to recursively delete all files in the landscape direct ory
//! and then remove it from the list of available landscapes. //! and then remove it from the list of available landscapes.
//! If the function encounters any file that can't be deleted //! If the function encounters any file that can't be deleted
//! it aborts the operation (previously deleted files are not restor ed). //! it aborts the operation (previously deleted files are not restor ed).
//! Landscapes that were packaged with Stellarium can't be removed, //! Landscapes that were packaged with Stellarium can't be removed,
//! thanks to the #packagedtLandscapeIDs list. //! thanks to the #packagedLandscapeIDs list.
//! @param landscapeID an installed landscape's identifier (the fold er name) //! @param landscapeID an installed landscape's identifier (the fold er name)
//! @todo Find a better way to pass error messages. //! @todo Find a better way to pass error messages.
bool removeLandscape(QString landscapeID); bool removeLandscape(QString landscapeID);
//! This function reads a landscape's name from its configuration fi le. //! This function reads a landscape's name from its configuration fi le.
//! @param landscapeID an installed landscape's identifier (the fold er name) //! @param landscapeID an installed landscape's identifier (the fold er name)
//! @returns an empty string if there is no such landscape or some o ther //! @returns an empty string if there is no such landscape or some o ther
//! error occurs //! error occurs
QString loadLandscapeName(QString landscapeID); QString loadLandscapeName(QString landscapeID);
 End of changes. 3 change blocks. 
29 lines changed or deleted 29 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/