LogBook.hpp   LogBook.hpp 
skipping to change at line 26 skipping to change at line 26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef LOGBOOK_HPP_ #ifndef LOGBOOK_HPP_
#define LOGBOOK_HPP_ #define LOGBOOK_HPP_
#include "StelModule.hpp" #include "StelModule.hpp"
#include <QMap> #include <QMap>
class LogBookConfigDialog; class LogBookConfigDialog;
class LogBookDialog; class ObservationsDialog;
class SessionsDialog;
class TargetsDialog; class TargetsDialog;
class QKeyEvent; class QKeyEvent;
class QMouseEvent; class QMouseEvent;
class QPixmap; class QPixmap;
class QSqlDatabase; class QSqlDatabase;
class QSqlTableModel; class QSqlTableModel;
class QSqlQuery; class QSqlQuery;
class StelButton; class StelButton;
class StelStyle;
//! This is an example of a plug-in which can be dynamically loaded into st ellarium //! This is an example of a plug-in which can be dynamically loaded into st ellarium
class LogBook : public StelModule class LogBook : public StelModule
{ {
Q_OBJECT Q_OBJECT
public: public:
LogBook(); LogBook();
virtual ~LogBook(); virtual ~LogBook();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual bool configureGui(bool show=true); virtual bool configureGui(bool show=true);
virtual void draw(StelCore* core); virtual void draw(StelCore* core);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//! Returns the module-specific style sheet.
//! The main StelStyle instance should be passed.
const StelStyle getModuleStyleSheet(const StelStyle& style);
virtual void init(); virtual void init();
virtual void setStelStyle(const QString& section); virtual void setStelStyle(const QString& section);
virtual void update(double) {;} virtual void update(double) {;}
public slots: public slots:
//! This method is called with we detect that our hot key is pressed . It handles //! This method is called with we detect that our hot key is pressed . It handles
//! determining if we should do anything - based on a selected objec t - and painting //! determining if we should do anything - based on a selected objec t - and painting
//! labes to the screen. //! labes to the screen.
void enableLogBook(bool b); void enableLogBook(bool b);
void setConfigDialogVisible(bool b); void setConfigDialogVisible(bool b);
skipping to change at line 80 skipping to change at line 85
//! executes a single SQL statement. //! executes a single SQL statement.
//! @param the SQL string. //! @param the SQL string.
//! @return true if there was no error, false if there was an error. //! @return true if there was no error, false if there was an error.
bool executeSql(QString &sql); bool executeSql(QString &sql);
void initializeActions(); void initializeActions();
//! Insures that the database tables exist. It not, calls createDat abaseStructures() to create them. //! Insures that the database tables exist. It not, calls createDat abaseStructures() to create them.
bool initializeDatabase(); bool initializeDatabase();
//Styles
QByteArray normalStyleSheet;
QByteArray nightStyleSheet;
//! reads a file line by line, and calls executeSql() with each line . Blank lines or SQL comments are ignored. //! reads a file line by line, and calls executeSql() with each line . Blank lines or SQL comments are ignored.
//! @param the file name that contains the SQL. //! @param the file name that contains the SQL.
//! @return true if there was no error, false if there was an error. //! @return true if there was no error, false if there was an error.
bool processSqlFile(QString &fileName); bool processSqlFile(QString &fileName);
LogBookConfigDialog *configDialog; LogBookConfigDialog *configDialog;
LogBookDialog *mainDialog; SessionsDialog *sessionsDialog;
TargetsDialog *targetsDialog; TargetsDialog *targetsDialog;
//! flag used to track if we are in log book mode. //! flag used to track if we are in log book mode.
bool flagShowLogBook; bool flagShowLogBook;
QMap<QString, QSqlTableModel *> tableModels; QMap<QString, QSqlTableModel *> tableModels;
// for toolbar button // for toolbar button
QPixmap* pxmapGlow; QPixmap* pxmapGlow;
QPixmap* pxmapOnIcon; QPixmap* pxmapOnIcon;
QPixmap* pxmapOffIcon; QPixmap* pxmapOffIcon;
 End of changes. 5 change blocks. 
2 lines changed or deleted 11 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/