LogBookDialog.hpp   SessionsDialog.hpp 
/* /*
* Copyright (C) 2009 Timothy Reaves * Copyright (C) 2010 Timothy Reaves
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* 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 _LOGBOOKDIALOG_HPP_ #ifndef _SESSIONSDIALOG_HPP_
#define _LOGBOOKDIALOG_HPP_ #define _SESSIONSDIALOG_HPP_
#include <QObject> #include <QObject>
#include <QMap> #include <QMap>
#include "StelDialogLogBook.hpp" #include "StelDialogLogBook.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
class Ui_LogBookDialogForm; class Ui_SessionsDialog;
class FieldConcatModel; class FieldConcatModel;
class QDateTime; class QDateTime;
class QModelIndex; class QModelIndex;
class QSqlRecord; class QSqlRecord;
class QSqlRelationalTableModel; class QSqlRelationalTableModel;
class QSqlTableModel; class QSqlTableModel;
class LogBookDialog : public StelDialogLogBook { class SessionsDialog : public StelDialogLogBook {
Q_OBJECT Q_OBJECT
public: public:
LogBookDialog(QMap<QString, QSqlTableModel *> theTableModels); SessionsDialog(QMap<QString, QSqlTableModel *> theTableModels);
virtual ~LogBookDialog(); virtual ~SessionsDialog();
void languageChanged(); void languageChanged();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
void updateStyle();
protected slots: protected slots:
void closeWindow();
// session slots // session slots
void beginDateTimeChanged(const QDateTime &datetime);
void commentsTextChanged(); void commentsTextChanged();
void deleteSelectedSession(); void deleteSelectedSession();
void endDateTimeChanged(const QDateTime &datetime);
void insertNewSession(); void insertNewSession();
void sessionBeginDateTimeChanged(const QDateTime &datetime); void observationWindowClosed(StelDialogLogBook* theDialog);
void sessionEndDateTimeChanged(const QDateTime &datetime); void observerChanged(const QString &newValue);
void sessionObserverChanged(const QString &newValue); void openObservations();
void sessionSelected(const QModelIndex &index); void sessionSelected(const QModelIndex &index);
void siteChanged(const QString &newValue); void siteChanged(const QString &newValue);
void weatherTextChanged(); void weatherTextChanged();
// observation slots
void accessoriesTextChanged();
void barlowChanged(const QString &newValue);
void deleteSelectedObservation();
void filterChanged(const QString &newValue);
void imagerChanged(const QString &newValue);
void insertNewObservation();
void limitingMagnitudeChanged(const QString &newValue);
void notesTextChanged();
void observationBeginDateTimeChanged(const QDateTime &datetime);
void observationEndDateTimeChanged(const QDateTime &datetime);
void observationObserverChanged(const QString &newValue);
void observationSelected(const QModelIndex &index);
void ocularChanged(const QString &newValue);
void opticChanged(const QString &newValue);
void seeingChanged(const QString &newValue);
void targetChanged(const QString &newValue);
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
QSqlRecord currentObservationRecord();
QSqlRecord currentSessionRecord(); QSqlRecord currentSessionRecord();
void populateFormWithObservationIndex(const QModelIndex &index);
void populateFormWithSessionIndex(const QModelIndex &index); void populateFormWithSessionIndex(const QModelIndex &index);
void setupConnections(); void setupConnections();
void setupModels(); void setupModels();
void teardownConnections(); void teardownConnections();
private: private:
int lastObservationRowNumberSelected; QMap<QString, FieldConcatModel *> fieldModels;
int lastSessionRowNumberSelected; int
QMap<QString, QSqlTableModel *> tableModels; lastSessionRowNumberSelected;
QMap<QString, FieldConcatModel *> fieldModels; QSqlRelationalTableModel* sessionsModel;
QSqlRelationalTableModel *observationsModel; QMap<QString, QSqlTableModel *> tableModels;
FieldConcatModel *observationsListModel; Ui_SessionsDialog* ui;
Ui_LogBookDialogForm* ui;
}; };
#endif // _LOGBOOKDIALOG_HPP_ #endif // _SESSIONSDIALOG_HPP_
 End of changes. 16 change blocks. 
40 lines changed or deleted 19 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/