|
From: <dhu...@us...> - 2007-01-10 14:45:28
|
Revision: 138
http://svn.sourceforge.net/qcell/?rev=138&view=rev
Author: dhubleizh
Date: 2007-01-10 06:45:17 -0800 (Wed, 10 Jan 2007)
Log Message:
-----------
- label added before interation LCD counter
- satus bar tooltips added for both LCD and label
- translated new LCD related strings
Modified Paths:
--------------
trunk/qcell/visgui/MainWindow.cpp
trunk/qcell/visgui/MainWindow.ui
trunk/qcell/visgui/visgui_pl.qm
trunk/qcell/visgui/visgui_pl.ts
Modified: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp 2007-01-10 14:20:03 UTC (rev 137)
+++ trunk/qcell/visgui/MainWindow.cpp 2007-01-10 14:45:17 UTC (rev 138)
@@ -9,6 +9,7 @@
#include "MainWindow.h"
MainWindow::MainWindow(QWidget* parent)
+ :QMainWindow(parent)
{
// GUI setup - earlies possible to show the user, that we're in buisness
setupUi(this);
@@ -17,9 +18,14 @@
centralWidget()->layout()->addWidget(sw);
// Adding iteration counter
- statusBar()->addPermanentWidget(new QLabel(tr("Iteration")));
+ // Creating LCD counter
iterationLCD = new QLCDNumber();
iterationLCD->setSegmentStyle(QLCDNumber::Flat);
+ iterationLCD->setStatusTip(tr("Shows the current iteration number."));
+ QLabel* tmp_label = new QLabel(tr("Iteration"));
+ tmp_label->setBuddy(iterationLCD);
+ tmp_label->setStatusTip(iterationLCD->statusTip());
+ statusBar()->addPermanentWidget(tmp_label);
statusBar()->addPermanentWidget(iterationLCD);
// Plugin parsing
@@ -422,9 +428,9 @@
void MainWindow::loadingSuccess(QString filetype)
{
- statusBar()->showMessage(tr(QString("%1 file loaded sucesfully!")
+ statusBar()->showMessage(tr("%1 file loaded sucesfully!")
.arg(filetype)
- .toAscii())
+ .toAscii()
);
}
Modified: trunk/qcell/visgui/MainWindow.ui
===================================================================
--- trunk/qcell/visgui/MainWindow.ui 2007-01-10 14:20:03 UTC (rev 137)
+++ trunk/qcell/visgui/MainWindow.ui 2007-01-10 14:45:17 UTC (rev 138)
@@ -34,13 +34,6 @@
<height>30</height>
</rect>
</property>
- <widget class="QMenu" name="menu_Help" >
- <property name="title" >
- <string>&Help</string>
- </property>
- <addaction name="separator" />
- <addaction name="action_About" />
- </widget>
<widget class="QMenu" name="menu_Experiment" >
<property name="enabled" >
<bool>false</bool>
@@ -88,6 +81,13 @@
<addaction name="separator" />
<addaction name="action_Quit" />
</widget>
+ <widget class="QMenu" name="menu_Help" >
+ <property name="title" >
+ <string>&Help</string>
+ </property>
+ <addaction name="separator" />
+ <addaction name="action_About" />
+ </widget>
<addaction name="menu_File" />
<addaction name="menu_Experiment" />
<addaction name="menu_Help" />
Modified: trunk/qcell/visgui/visgui_pl.qm
===================================================================
(Binary files differ)
Modified: trunk/qcell/visgui/visgui_pl.ts
===================================================================
--- trunk/qcell/visgui/visgui_pl.ts 2007-01-10 14:20:03 UTC (rev 137)
+++ trunk/qcell/visgui/visgui_pl.ts 2007-01-10 14:45:17 UTC (rev 138)
@@ -26,12 +26,12 @@
<context>
<name>AboutDialog</name>
<message>
- <location filename="AboutDialog.ui" line="13"/>
+ <location filename="AboutDialog.ui" line="16"/>
<source>About QCell</source>
<translation>O Qcell</translation>
</message>
<message>
- <location filename="AboutDialog.ui" line="72"/>
+ <location filename="AboutDialog.ui" line="90"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
@@ -85,22 +85,22 @@
<translation>QCell</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="95"/>
+ <location filename="MainWindow.ui" line="86"/>
<source>&Help</source>
<translation>P&omoc</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="102"/>
+ <location filename="MainWindow.ui" line="53"/>
<source>&File</source>
<translation>&Plik</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="106"/>
+ <location filename="MainWindow.ui" line="57"/>
<source>Opens experiment data.</source>
<translation>Otwiera dane eksperymentu.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="109"/>
+ <location filename="MainWindow.ui" line="60"/>
<source>&Open</source>
<translation>&Otwórz</translation>
</message>
@@ -110,83 +110,83 @@
<translation type="obsolete">To menu pozwala przeszukiwać tematy pomocy i poczytać o aplikacji.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="152"/>
+ <location filename="MainWindow.ui" line="112"/>
<source>&Quit</source>
<translation>&Wyjście</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="155"/>
+ <location filename="MainWindow.ui" line="115"/>
<source>This menu item quits the application.</source>
<comment>Quits the application</comment>
<translation>Ten przycisk menu powoduje wyjście z aplikacji.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="158"/>
+ <location filename="MainWindow.ui" line="118"/>
<source>Quits the application.</source>
<translation>Wychodzi z aplikacji.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="271"/>
+ <location filename="MainWindow.ui" line="255"/>
<source>&Neighbourhood</source>
<translation>&Sąsiedztwo</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="166"/>
+ <location filename="MainWindow.ui" line="126"/>
<source>Opens neighbourhood.</source>
<translation>Otwiera plik sąsiedztwa.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="276"/>
+ <location filename="MainWindow.ui" line="263"/>
<source>&Function</source>
<translation>&Funkcja</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="174"/>
+ <location filename="MainWindow.ui" line="134"/>
<source>Opens function.</source>
<translation>Otwiera plik funkcji.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="266"/>
+ <location filename="MainWindow.ui" line="247"/>
<source>&World</source>
<translation>Ś&wiat</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="182"/>
+ <location filename="MainWindow.ui" line="142"/>
<source>Opens world configuration.</source>
<translation>Otwiera konfigurację świata.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="187"/>
+ <location filename="MainWindow.ui" line="150"/>
<source>Open &experiment</source>
<translation>Otwórz &eksperyment</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="190"/>
+ <location filename="MainWindow.ui" line="153"/>
<source>Opens a predefined experiment.</source>
<translation>Otwiera zdefiniowany wcześniej eksperyment.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="195"/>
+ <location filename="MainWindow.ui" line="158"/>
<source>&Continiue experiment</source>
<translation>&Kontynuuj eksperyment</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="198"/>
+ <location filename="MainWindow.ui" line="161"/>
<source>Loads an earlier saved experiment.</source>
<translation>Ładuje wcześniej zachowany eksperyment.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="203"/>
+ <location filename="MainWindow.ui" line="166"/>
<source>&About</source>
<translation>&O programie</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="206"/>
+ <location filename="MainWindow.ui" line="169"/>
<source>Shows info about the program.</source>
<translation>Pokazuje informacje o programie.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="104"/>
+ <location filename="MainWindow.cpp" line="115"/>
<source>Open Neighbourhood</source>
<translation>Otwórz Sąsiedztwo</translation>
</message>
@@ -196,97 +196,97 @@
<translation type="obsolete"> pliki</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="566"/>
+ <location filename="MainWindow.cpp" line="643"/>
<source>files</source>
<translation>pliki</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="542"/>
+ <location filename="MainWindow.cpp" line="619"/>
<source>Plugins warning</source>
<translation>Ostrzeżenie wtyczek</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="96"/>
+ <location filename="MainWindow.cpp" line="107"/>
<source>There are no plugins loaded to handle Neighbourhood parsing.</source>
<translation>Nie ma załadowanej żadnej wtyczki do obsługi parsowania plików Sąsiedztwa.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="139"/>
+ <location filename="MainWindow.cpp" line="150"/>
<source>There are no plugins loaded to handle Function parsing.</source>
<translation>Nie ma załadowanej żadnej wtyczki do obsługi parsowania Funkcji.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="147"/>
+ <location filename="MainWindow.cpp" line="158"/>
<source>Open Function</source>
<translation>Otwórz Funkcję</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="183"/>
+ <location filename="MainWindow.cpp" line="194"/>
<source>There are no plugins loaded to handle World parsing.</source>
<translation>Nie ma załadowanej żadnej wtyczki do parsowania Świata.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="191"/>
+ <location filename="MainWindow.cpp" line="202"/>
<source>Open World</source>
<translation>Otwórz Świat</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="230"/>
+ <location filename="MainWindow.cpp" line="241"/>
<source>Error opening file %1.</source>
<translation>Błąd podczas otwierania pliku %1.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="346"/>
+ <location filename="MainWindow.cpp" line="400"/>
<source>The file extensions %1 isn't supported.</source>
<translation>Rozszerzenie pliku %1 nie jest wspierane.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="357"/>
+ <location filename="MainWindow.cpp" line="411"/>
<source>Unsupported file type to parse.</source>
<translation>Niewspierany typ pliku do przeczytania.</translation>
</message>
<message>
<location filename="MainWindow.ui" line="79"/>
<source>&Edit</source>
- <translation>&Edycja</translation>
+ <translation type="obsolete">&Edycja</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="84"/>
+ <location filename="MainWindow.ui" line="42"/>
<source>&Experiment</source>
<translation>&Eksperyment</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="211"/>
+ <location filename="MainWindow.ui" line="177"/>
<source>&Start</source>
<translation>&Start</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="217"/>
+ <location filename="MainWindow.ui" line="183"/>
<source>Starts the experiment.</source>
<translation>Startuje eksperyment.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="222"/>
+ <location filename="MainWindow.ui" line="191"/>
<source>S&top</source>
<translation>S&top</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="228"/>
+ <location filename="MainWindow.ui" line="197"/>
<source>Stops the experiment.</source>
<translation>Zatrzymuje eksperyment.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="233"/>
+ <location filename="MainWindow.ui" line="205"/>
<source>&Restart</source>
<translation>Ponowne u&ruchominie</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="239"/>
+ <location filename="MainWindow.ui" line="211"/>
<source>Restarts the experiment.</source>
<translation>Uruchamia eksperyment od nowa.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="244"/>
+ <location filename="MainWindow.ui" line="219"/>
<source>&Forward</source>
<translation>Do &przodu</translation>
</message>
@@ -296,60 +296,75 @@
<translation type="obsolete">Iteruje jeden krok.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="250"/>
+ <location filename="MainWindow.ui" line="225"/>
<source>Iterates one setp forward.</source>
<translation>Iteruje jeden krok do przodu.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="255"/>
+ <location filename="MainWindow.ui" line="233"/>
<source>&Back</source>
<translation>Do &tyłu</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="261"/>
+ <location filename="MainWindow.ui" line="239"/>
<source>Iterates one setp back.</source>
<translation>Iteruje jeden krok wstecz.</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="50"/>
+ <location filename="MainWindow.cpp" line="24"/>
<source>Iteration</source>
<translation>Iteracja</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="394"/>
+ <location filename="MainWindow.cpp" line="471"/>
<source>You cannot step back beyond the beginning of the experiment!</source>
<translation>Nie możesz cofnąc się poza początek eksperymentu!</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="307"/>
+ <location filename="MainWindow.cpp" line="361"/>
<source>Error opnening file %1.</source>
<translation>Błąd podczas próby otwarcia pliku %1.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="496"/>
+ <location filename="MainWindow.cpp" line="573"/>
<source>There are no plugins loaded to handle World saving.</source>
<translation>Nie ma załadowanej żadnej wtyczki do obsługi zapisywania plików świata.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="504"/>
+ <location filename="MainWindow.cpp" line="581"/>
<source>Save World</source>
<translation>Zapisz Świat</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="544"/>
+ <location filename="MainWindow.cpp" line="621"/>
<source>There are no plugins loaded to handle Neighbourhood saving.</source>
<translation>Nie ma załadowanych żadnych wtyczek do obsługi zapisywania Sąsiedztwa.</translation>
</message>
<message>
- <location filename="MainWindow.cpp" line="552"/>
+ <location filename="MainWindow.cpp" line="629"/>
<source>Save Neighbourhood</source>
<translation>Zapisz Sąsiedztwo</translation>
</message>
<message>
- <location filename="MainWindow.ui" line="117"/>
+ <location filename="MainWindow.ui" line="71"/>
<source>&Save experiment</source>
<translation>&Zapisz eksperyment</translation>
</message>
+ <message>
+ <location filename="MainWindow.cpp" line="291"/>
+ <source>Internal error: unable to parse %1 file</source>
+ <translation>Wewnętrzny błąd: nie mogę zrozumiec pliku %1</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.cpp" line="431"/>
+ <source>%1 file loaded sucesfully!</source>
+ <translation>Plik %1 załadowany poprawnie!</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.cpp" line="23"/>
+ <source>Shows the current iteration number.</source>
+ <translation type="unfinished">Pokazuje aktualny numer iteracji.</translation>
+ </message>
</context>
<context>
<name>QApplication</name>
@@ -382,27 +397,27 @@
<translation>%1</translation>
</message>
<message>
- <location filename="../basesources/simulationwindow.cpp" line="437"/>
+ <location filename="../basesources/simulationwindow.cpp" line="443"/>
<source>Value</source>
<translation>Wartość</translation>
</message>
<message>
- <location filename="../basesources/simulationwindow.cpp" line="438"/>
+ <location filename="../basesources/simulationwindow.cpp" line="444"/>
<source>Symbol</source>
<translation>Symbol</translation>
</message>
<message>
- <location filename="../basesources/simulationwindow.cpp" line="439"/>
+ <location filename="../basesources/simulationwindow.cpp" line="445"/>
<source>Color</source>
<translation>Kolor</translation>
</message>
<message>
- <location filename="../basesources/simulationwindow.cpp" line="440"/>
+ <location filename="../basesources/simulationwindow.cpp" line="446"/>
<source>Model</source>
<translation>Model</translation>
</message>
<message>
- <location filename="../basesources/simulationwindow.cpp" line="441"/>
+ <location filename="../basesources/simulationwindow.cpp" line="447"/>
<source>Hide Flag</source>
<translation>Flaga Ukrycia</translation>
</message>
@@ -410,77 +425,77 @@
<context>
<name>simulationWindowClass</name>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="13"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="21"/>
<source>simulationWindow</source>
<translation>oknoSymulacji</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="35"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="43"/>
<source>3D View</source>
<translation>Widok 3D</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="47"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="63"/>
<source>Perspective</source>
<translation>Perspektywa</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="63"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="73"/>
<source>Ortho2D</source>
<translation>Orto2D</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="69"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="96"/>
<source>2D Text View</source>
<translation>Widok Tekstowy 2D</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="94"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="143"/>
<source>Z Plane</source>
<translation>Płaszczyzna Z</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="175"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="207"/>
<source>Values</source>
<translation>Wartości</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="162"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="217"/>
<source>Symbols</source>
<translation>Symbole</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="191"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="200"/>
<source>Enable Colors</source>
<translation>Uruchom Kolory</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="145"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="175"/>
<source>2D Graphics View</source>
<translation>Graficzny Widok 2D</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="150"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="180"/>
<source>1D Text View</source>
<translation>Widok Tekstowy 1D</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="204"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="224"/>
<source>Clear Memory</source>
<translation>Wyczyśc Pamięć</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="210"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="247"/>
<source>Symbols Configuration</source>
<translation>Konfiguracja Symboli</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="222"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="274"/>
<source>Remove Symbol</source>
<translation>Usuń Symbol</translation>
</message>
<message>
- <location filename="../baseheaders/simulationwindow.ui" line="235"/>
+ <location filename="../baseheaders/simulationwindow.ui" line="267"/>
<source>Add Symbol</source>
<translation>Dodaj Symbol</translation>
</message>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|