~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to src/gui/HelpDialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2009-03-13 20:07:22 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090313200722-l66s4zy2s3e8up0s
Tags: 0.10.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
void HelpDialog::createDialogContent()
95
95
{
96
 
                ui->setupUi(dialog);
97
 
                ui->helpTabWidget->setCurrentIndex(0);
98
 
                connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()));
99
 
                
100
 
                updateText();
 
96
        ui->setupUi(dialog);
 
97
        ui->helpTabWidget->setCurrentIndex(0);
 
98
        connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()));
 
99
        
 
100
        updateText();
 
101
        
 
102
        ui->logPathLabel->setText(QString("%1/log.txt:").arg(StelApp::getInstance().getFileMgr().getUserDir()));
 
103
        connect(ui->helpTabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateLog(int)));
 
104
        connect(ui->refreshButton, SIGNAL(clicked()), this, SLOT(refreshLog()));
 
105
}
 
106
 
 
107
void HelpDialog::updateLog(int)
 
108
{
 
109
        if(ui->helpTabWidget->currentWidget() == ui->logTab)
 
110
                refreshLog();
 
111
}
 
112
 
 
113
void HelpDialog::refreshLog()
 
114
{
 
115
        ui->logBrowser->setPlainText(StelApp::getInstance().getLog());
101
116
}
102
117
 
103
118
void HelpDialog::setKey(QString group, QString oldKey, QString newKey, QString description)
253
268
        // populate About tab
254
269
        newHtml = "<h1>" + StelApp::getInstance().getApplicationName() + "</h1>";
255
270
        // Note: this legal notice is not suitable for traslation
256
 
        newHtml += "<h3>Copyright &copy; 2000-2008 Stellarium Developers</h3>";
 
271
        newHtml += "<h3>Copyright &copy; 2000-2009 Stellarium Developers</h3>";
257
272
        newHtml += "<p>This program is free software; you can redistribute it and/or ";
258
273
        newHtml += "modify it under the terms of the GNU General Public License ";
259
274
        newHtml += "as published by the Free Software Foundation; either version 2 ";
271
286
        newHtml += "<p><a href=\"http://www.fsf.org\">www.fsf.org</a></p>";
272
287
        newHtml += "<h3>" + Qt::escape(q_("Developers")) + "</h3><ul>";
273
288
        newHtml += "<li>" + Qt::escape(q_("Project coordinator & lead developer: %1").arg(QString("Fabien Ch%1reau").arg(QChar(0x00E9)))) + "</li>";
274
 
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Rob Spearman"))) + "</li>";
 
289
        newHtml += "<li>" + Qt::escape(q_("Doc author/developer: %1").arg(QString("Matthew Gates"))) + "</li>";
275
290
        newHtml += "<li>" + Qt::escape(q_("Graphic/other designer: %1").arg(QString("Johan Meuris"))) + "</li>";
276
291
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Johannes Gajdosik"))) + "</li>";
277
 
        newHtml += "<li>" + Qt::escape(q_("Doc author/developer: %1").arg(QString("Matthew Gates"))) + "</li>";
 
292
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Rob Spearman"))) + "</li>";
278
293
        newHtml += "<li>" + Qt::escape(q_("OSX Developer: %1").arg(QString("Nigel Kerr"))) + "</li>";
279
 
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Andr%1s Mohari").arg(QChar(0x00E1)))) + "</li><ul><p>";
 
294
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Andr%1s Mohari").arg(QChar(0x00E1)))) + "</li>";
 
295
        newHtml += "<li>" + Qt::escape(q_("Developer: %1").arg(QString("Mike Storm"))) + "</li><ul><p>";
280
296
        ui->aboutBrowser->clear();
281
297
        ui->aboutBrowser->document()->setDefaultStyleSheet(QString(StelApp::getInstance().getCurrentStelStyle()->htmlStyleSheet));
282
298
        ui->aboutBrowser->insertHtml(newHtml);