LogBook.cpp   LogBook.cpp 
skipping to change at line 110 skipping to change at line 110
LogBook::~LogBook() LogBook::~LogBook()
{ {
} }
/* ********************************************************************* */ /* ********************************************************************* */
#if 0 #if 0
#pragma mark - #pragma mark -
#pragma mark StelModule Methods #pragma mark StelModule Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
bool LogBook::configureGui(bool show) bool LogBook::configureGui(bool)
{ {
// if (show) {
// StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance()
.getGui());
// }
return true; return true;
} }
double LogBook::getCallOrder(StelModuleActionName actionName) const double LogBook::getCallOrder(StelModuleActionName actionName) const
{ {
if (actionName==StelModule::ActionDraw) { if (actionName==StelModule::ActionDraw) {
return StelApp::getInstance().getModuleMgr().getModule("Nebu laMgr")->getCallOrder(actionName)+10.; return StelApp::getInstance().getModuleMgr().getModule("Nebu laMgr")->getCallOrder(actionName)+10.;
} }
return 0; return 0;
} }
skipping to change at line 143 skipping to change at line 139
targetsDialog = new TargetsDialog(tableModels); targetsDialog = new TargetsDialog(tableModels);
flagShowLogBook = false; flagShowLogBook = false;
initializeActions(); initializeActions();
} }
void LogBook::draw(StelCore* core) void LogBook::draw(StelCore* core)
{ {
StelPainter painter(core->getProjection2d()); StelPainter painter(core->getProjection2d());
} }
void LogBook::setStelStyle(const StelStyle& style) void LogBook::setStelStyle(const QString& )
{ {
/*
if(dialog) {
dialog->setStyleSheet(telescopeManager->getModuleStyleSheet(style.c
onfSectionName));
}
*/
//Change the styles of all children, too
// ocularDialog->setStelStyle(style);
} }
/* ********************************************************************* */ /* ********************************************************************* */
#if 0 #if 0
#pragma mark - #pragma mark -
#pragma mark Slots Methods #pragma mark Slots Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
void LogBook::enableLogBook(bool b) void LogBook::enableLogBook(bool b)
{ {
skipping to change at line 211 skipping to change at line 199
gui->getGuiActions("actionShow_LogBook")->setChecked(flagShowLogBook ); gui->getGuiActions("actionShow_LogBook")->setChecked(flagShowLogBook );
gui->addGuiActions("actionShow_LogBookConfigDialog", N_("Show data c onfig dialog"), "ALT+L", group, true); gui->addGuiActions("actionShow_LogBookConfigDialog", N_("Show data c onfig dialog"), "ALT+L", group, true);
gui->addGuiActions("actionShow_TargetsDialog", N_("Show Targets conf ig dialog"), "ALT+T", group, true); gui->addGuiActions("actionShow_TargetsDialog", N_("Show Targets conf ig dialog"), "ALT+T", group, true);
connect(gui->getGuiActions("actionShow_LogBook"), SIGNAL(toggled(boo l)), this, SLOT(enableLogBook(bool))); connect(gui->getGuiActions("actionShow_LogBook"), SIGNAL(toggled(boo l)), this, SLOT(enableLogBook(bool)));
connect(gui->getGuiActions("actionShow_LogBookConfigDialog"), SIGNAL (toggled(bool)), this, SLOT(setConfigDialogVisible(bool))); connect(gui->getGuiActions("actionShow_LogBookConfigDialog"), SIGNAL (toggled(bool)), this, SLOT(setConfigDialogVisible(bool)));
connect(gui->getGuiActions("actionShow_TargetsDialog"), SIGNAL(toggl ed(bool)), this, SLOT(setTargetsDialogVisible(bool))); connect(gui->getGuiActions("actionShow_TargetsDialog"), SIGNAL(toggl ed(bool)), this, SLOT(setTargetsDialogVisible(bool)));
// Make a toolbar button // Make a toolbar button
try { try {
pxmapGlow = new QPixmap(":/graphicGui/gui/glow32x32.png"); pxmapGlow = new QPixmap(":/graphicGui/glow32x32.png");
pxmapOnIcon = new QPixmap(":/logbook/bt_Logbook_on.png"); pxmapOnIcon = new QPixmap(":/logbook/bt_Logbook_on.png");
pxmapOffIcon = new QPixmap(":/logbook/bt_Logbook_off.png"); pxmapOffIcon = new QPixmap(":/logbook/bt_Logbook_off.png");
toolbarButton = new StelButton(NULL, toolbarButton = new StelButton(NULL,
* pxmapOffIcon, * pxmapOffIcon,
* pxmapOnIcon, * pxmapOnIcon,
* pxmapGlow, * pxmapGlow,
g ui->getGuiActions("actionShow_LogBook")); g ui->getGuiActions("actionShow_LogBook"));
gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup"); gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup");
} catch (std::runtime_error& e) { } catch (std::runtime_error& e) {
skipping to change at line 317 skipping to change at line 305
tableModels[TARGETS]->select(); tableModels[TARGETS]->select();
tableModels[TARGET_TYPES] = new QSqlTableModel(this, db); tableModels[TARGET_TYPES] = new QSqlTableModel(this, db);
tableModels[TARGET_TYPES]->setTable(TARGET_TYPES); tableModels[TARGET_TYPES]->setTable(TARGET_TYPES);
tableModels[TARGET_TYPES]->setObjectName("Target Types Table Model"); tableModels[TARGET_TYPES]->setObjectName("Target Types Table Model");
tableModels[TARGET_TYPES]->setEditStrategy(QSqlTableModel::O nFieldChange); tableModels[TARGET_TYPES]->setEditStrategy(QSqlTableModel::O nFieldChange);
tableModels[TARGET_TYPES]->select(); tableModels[TARGET_TYPES]->select();
result = true; result = true;
} else { } else {
qDebug() << "Oculars could not open its databse; disableing module."; qDebug() << "Oculars could not open its database; disabling module.";
result = false; result = false;
} }
return result; return result;
} }
bool LogBook::createDatabaseStructures() bool LogBook::createDatabaseStructures()
{ {
bool result = true; bool result = true;
QSqlDatabase db = QSqlDatabase::database("LogBook"); QSqlDatabase db = QSqlDatabase::database("LogBook");
 End of changes. 6 change blocks. 
18 lines changed or deleted 4 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/