Skip to content

Commit

Permalink
Pack of changes:
Browse files Browse the repository at this point in the history
- Added fresh translations
- Added "clear" button for search of artificial satellites in the
selected group
- Updated behaviour of "clear" button for Search and AstroCalc/WUT tools
  • Loading branch information
alex-w committed Jul 14, 2018
1 parent 72468c1 commit a2b2019
Show file tree
Hide file tree
Showing 130 changed files with 54,423 additions and 52,601 deletions.
10 changes: 9 additions & 1 deletion plugins/Satellites/src/gui/SatellitesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ void SatellitesDialog::createDialogContent()
filterModel->setSourceModel(GETSTELMODULE(Satellites)->getSatellitesListModel());
filterModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
ui->satellitesList->setModel(filterModel);
connect(ui->lineEditSearch, SIGNAL(textEdited(QString)),
connect(ui->lineEditSearch, SIGNAL(textChanged(QString)),
filterModel, SLOT(setFilterWildcard(QString)));

QAction *clearAction = ui->lineEditSearch->addAction(QIcon(":/graphicGui/backspace-white.png"), QLineEdit::ActionPosition::TrailingPosition);
connect(clearAction, SIGNAL(triggered()), this, SLOT(searchSatellitesClear()));

QItemSelectionModel* selectionModel = ui->satellitesList->selectionModel();
connect(selectionModel,
Expand Down Expand Up @@ -245,6 +248,11 @@ void SatellitesDialog::setFlagRealisticMode(bool state)
GETSTELMODULE(Satellites)->setFlagRelisticMode(!state);
}

void SatellitesDialog::searchSatellitesClear()
{
ui->lineEditSearch->clear();
}

void SatellitesDialog::savePredictedIridiumFlares()
{
QString filter = q_("CSV (Comma delimited)");
Expand Down
2 changes: 2 additions & 0 deletions plugins/Satellites/src/gui/SatellitesDialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ private slots:

void setFlagRealisticMode(bool state);

void searchSatellitesClear();

private:
//! @todo find out if this is really necessary... --BM
void enableSatelliteDataForm(bool enabled);
Expand Down
10 changes: 7 additions & 3 deletions plugins/Satellites/src/gui/satellitesDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>530</width>
<height>417</height>
<width>579</width>
<height>481</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -564,7 +564,11 @@
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditSearch"/>
<widget class="QLineEdit" name="lineEditSearch">
<property name="placeholderText">
<string>Search in list...</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="satellitesList">
Expand Down
21 changes: 11 additions & 10 deletions po/stellarium-metainfo/el.po
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Translators:
# cardinot <[email protected]>, 2017
# Antony Kirkinis <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2018-01-01 17:09+0700\n"
"POT-Creation-Date: 2018-05-27 15:56+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: cardinot <mcardinot@gmail.com>, 2017\n"
"Last-Translator: Antony Kirkinis <akirkinis@gmail.com>, 2018\n"
"Language-Team: Greek (https://www.transifex.com/stellarium/teams/80998/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -14,17 +15,17 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. (itstool) path: component/name
#: stellarium.appdata.xml:6
#: stellarium.appdata.xml:7
msgid "Stellarium"
msgstr "Stellarium"

#. (itstool) path: component/summary
#: stellarium.appdata.xml:7
#: stellarium.appdata.xml:8
msgid "Desktop Planetarium"
msgstr "Επιτραπέζιο πλανητάριο"

#. (itstool) path: description/p
#: stellarium.appdata.xml:9
#: stellarium.appdata.xml:10
msgid ""
"Stellarium renders 3D photo-realistic skies in real time with OpenGL. It "
"displays stars, constellations, planets and nebulae, and has many other "
Expand All @@ -37,7 +38,7 @@ msgstr ""
" τοπία, ομίχλη, εξομοίωση φωτορύπανσης και ενσωματωμένη μηχανή σεναρίων."

#. (itstool) path: description/p
#: stellarium.appdata.xml:10
#: stellarium.appdata.xml:11
msgid ""
"Stellarium comes with a star catalogue of about 600 thousand stars and it is"
" possible to download extra catalogues with up to 210 million stars."
Expand All @@ -46,7 +47,7 @@ msgstr ""
"δυνατότητα μεταφόρτωσης καταλόγων με μέχρι 210 εκατομμύρια άστρα"

#. (itstool) path: description/p
#: stellarium.appdata.xml:11
#: stellarium.appdata.xml:12
msgid ""
"Stellarium has multiple sky cultures - see the constellations from the "
"traditions of Polynesian, Inuit, Navajo, Korean, Lakota, Egyptian and "
Expand All @@ -58,7 +59,7 @@ msgstr ""
"πολιτισμών."

#. (itstool) path: description/p
#: stellarium.appdata.xml:12
#: stellarium.appdata.xml:13
msgid ""
"It is also possible to visit other planets in the solar system - see what "
"the sky looked like to the Apollo astronauts, or what the rings of Saturn "
Expand All @@ -69,6 +70,6 @@ msgstr ""
"οι δακτύλιοι του Κρόνου από τον δορυφόρο του Τιτάνα."

#. (itstool) path: component/developer_name
#: stellarium.appdata.xml:28
#: stellarium.appdata.xml:46
msgid "Stellarium team"
msgstr ""
msgstr "Η ομάδα του Stellarium"
14 changes: 7 additions & 7 deletions po/stellarium-planetary-features/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-15 14:01+0700\n"
"POT-Creation-Date: 2018-06-24 18:21+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Zdeněk Moravec <[email protected]>, 2017\n"
"Language-Team: Czech (https://www.transifex.com/stellarium/teams/80998/cs/)\n"
Expand Down Expand Up @@ -19592,32 +19592,32 @@ msgstr "Olympia Planum"
#: data/nomenclature.fab:6383
msgctxt "crater"
msgid "McCauley"
msgstr ""
msgstr "McCauley"

#. TRANSLATORS: Town in Republic of Korea.
#: data/nomenclature.fab:6385
msgctxt "crater"
msgid "Jori"
msgstr ""
msgstr "Jori"

#. TRANSLATORS: Raymond Milner; American geologist and photogrammetrist
#. (1931-2013).
#: data/nomenclature.fab:6387
msgctxt "crater"
msgid "Batson"
msgstr ""
msgstr "Batson"

#. TRANSLATORS: Town in Burkina Faso.
#: data/nomenclature.fab:6389
msgctxt "crater"
msgid "Nako"
msgstr ""
msgstr "Nako"

#. TRANSLATORS: Town in Syria.
#: data/nomenclature.fab:6391
msgctxt "crater"
msgid "Salkhad"
msgstr ""
msgstr "Salkhad"

#. TRANSLATORS: Classical albedo feature name.
#: data/nomenclature.fab:6393
Expand All @@ -19635,7 +19635,7 @@ msgstr "Olympia Cavi"
#: data/nomenclature.fab:6397
msgctxt "chaos"
msgid "Aeolis Chaos"
msgstr ""
msgstr "Aeolis Chaos"

#. TRANSLATORS: Classical martian albedo feature, Coprates.
#: data/nomenclature.fab:6399
Expand Down
Loading

0 comments on commit a2b2019

Please sign in to comment.