|
From: <dhu...@us...> - 2006-11-27 21:14:46
|
Revision: 6
http://svn.sourceforge.net/qcell/?rev=6&view=rev
Author: dhubleizh
Date: 2006-11-27 13:14:42 -0800 (Mon, 27 Nov 2006)
Log Message:
-----------
- visgui files
Added Paths:
-----------
trunk/qcell/visgui/AboutDialog.ui
trunk/qcell/visgui/MainWindow.cpp
trunk/qcell/visgui/MainWindow.h
trunk/qcell/visgui/MainWindow.ui
trunk/qcell/visgui/main.cpp
trunk/qcell/visgui/visgui.pro
trunk/qcell/visgui/visgui_pl.qm
trunk/qcell/visgui/visgui_pl.ts
Added: trunk/qcell/visgui/AboutDialog.ui
===================================================================
--- trunk/qcell/visgui/AboutDialog.ui (rev 0)
+++ trunk/qcell/visgui/AboutDialog.ui 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,82 @@
+<ui version="4.0" >
+ <class>AboutDialog</class>
+ <widget class="QDialog" name="AboutDialog" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>About QCell</string>
+ </property>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QGraphicsView" name="graphicsView" >
+ <property name="enabled" >
+ <bool>true</bool>
+ </property>
+ <property name="acceptDrops" >
+ <bool>false</bool>
+ </property>
+ <property name="autoFillBackground" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>91</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="OKButton" >
+ <property name="text" >
+ <string>&OK</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
Added: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp (rev 0)
+++ trunk/qcell/visgui/MainWindow.cpp 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,29 @@
+/**@file MainWindow.c
+ * @author czarny
+ * @version 0.1
+ * @date
+ * Created: ?ro 22 lis 2006 14:18:06 CET \n
+ * Last Update: ?ro 22 lis 2006 14:18:06 CET
+ */
+
+#include "MainWindow.h"
+
+MainWindow::MainWindow(QWidget* parent)
+{
+ setupUi(this);
+}
+
+void MainWindow::on_action_About_activated()
+{
+ QDialog* dialog = new QDialog(this);
+ Ui::AboutDialog* ad = new Ui::AboutDialog();
+ ad->setupUi(dialog);
+ connect(ad->OKButton, SIGNAL(clicked()), dialog, SLOT(accept()));
+ dialog->show();
+}
+
+void MainWindow::on_action_Quit_activated()
+{
+ // TODO: Some saving checking
+ QCoreApplication::exit();
+}
Added: trunk/qcell/visgui/MainWindow.h
===================================================================
--- trunk/qcell/visgui/MainWindow.h (rev 0)
+++ trunk/qcell/visgui/MainWindow.h 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,30 @@
+/**@file MainWindow.h
+ * @author czarny
+ * @version gg
+ * @date
+ * Created: ?ro 22 lis 2006 14:14:17 CET \n
+ * Last Update: ?ro 22 lis 2006 14:14:17 CET
+ */
+
+#ifndef __MAINWINDOW_H__
+#define __MAINWINDOW_H__
+
+#include "ui_MainWindow.h"
+#include "ui_AboutDialog.h"
+
+#include <iostream>
+using namespace std;
+
+class MainWindow : public QMainWindow, private Ui::MainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow(QWidget* parent = 0);
+
+private slots:
+ void on_action_About_activated();
+ void on_action_Quit_activated();
+};
+
+#endif
Added: trunk/qcell/visgui/MainWindow.ui
===================================================================
--- trunk/qcell/visgui/MainWindow.ui (rev 0)
+++ trunk/qcell/visgui/MainWindow.ui 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,145 @@
+<ui version="4.0" >
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>557</width>
+ <height>541</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>QCell</string>
+ </property>
+ <property name="windowIcon" >
+ <iconset/>
+ </property>
+ <widget class="QWidget" name="centralwidget" >
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QWidget" native="1" name="MainGLWidget" />
+ </item>
+ </layout>
+ </widget>
+ <widget class="QMenuBar" name="mainMenubar" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>557</width>
+ <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_File" >
+ <property name="title" >
+ <string>&File</string>
+ </property>
+ <widget class="QMenu" name="menu_Open" >
+ <property name="statusTip" >
+ <string>Opens experiment data.</string>
+ </property>
+ <property name="title" >
+ <string>&Open</string>
+ </property>
+ <addaction name="action_Neighbourhood" />
+ <addaction name="action_Function" />
+ <addaction name="action_World" />
+ </widget>
+ <addaction name="menu_Open" />
+ <addaction name="action_Open_experiment" />
+ <addaction name="action_Continiue_experiment" />
+ <addaction name="separator" />
+ <addaction name="action_Quit" />
+ </widget>
+ <addaction name="menu_File" />
+ <addaction name="menu_Help" />
+ </widget>
+ <widget class="QStatusBar" name="statusbar" />
+ <widget class="QToolBar" name="mainToolBar" >
+ <property name="toolTip" >
+ <string>This menu allows searching through help topics and reading about the application.</string>
+ </property>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <attribute name="toolBarArea" >
+ <number>4</number>
+ </attribute>
+ </widget>
+ <action name="action_Quit" >
+ <property name="text" >
+ <string>&Quit</string>
+ </property>
+ <property name="toolTip" >
+ <string comment="Quits the application" >This menu item quits the application.</string>
+ </property>
+ <property name="statusTip" >
+ <string>Quits the application.</string>
+ </property>
+ </action>
+ <action name="action_Neighbourhood" >
+ <property name="text" >
+ <string>&Neighbourhood</string>
+ </property>
+ <property name="statusTip" >
+ <string>Opens neighbourhood.</string>
+ </property>
+ </action>
+ <action name="action_Function" >
+ <property name="text" >
+ <string>&Function</string>
+ </property>
+ <property name="statusTip" >
+ <string>Opens function.</string>
+ </property>
+ </action>
+ <action name="action_World" >
+ <property name="text" >
+ <string>&World</string>
+ </property>
+ <property name="statusTip" >
+ <string>Opens world configuration.</string>
+ </property>
+ </action>
+ <action name="action_Open_experiment" >
+ <property name="text" >
+ <string>Open &experiment</string>
+ </property>
+ <property name="statusTip" >
+ <string>Opens a predefined experiment.</string>
+ </property>
+ </action>
+ <action name="action_Continiue_experiment" >
+ <property name="text" >
+ <string>&Continiue experiment</string>
+ </property>
+ <property name="statusTip" >
+ <string>Loads an earlier saved experiment.</string>
+ </property>
+ </action>
+ <action name="action_About" >
+ <property name="text" >
+ <string>&About</string>
+ </property>
+ <property name="statusTip" >
+ <string>Shows info about the program.</string>
+ </property>
+ </action>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
Added: trunk/qcell/visgui/main.cpp
===================================================================
--- trunk/qcell/visgui/main.cpp (rev 0)
+++ trunk/qcell/visgui/main.cpp 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,23 @@
+#include <iostream>
+
+#include <QtGui>
+#include "MainWindow.h"
+
+using namespace std;
+
+int main(int argc, char* argv[])
+{
+ QApplication app(argc, argv);
+
+ QString locale = QLocale::system().name();
+
+ QTranslator translator;
+ translator.load(QString("visgui_") + locale);
+ app.installTranslator(&translator);
+
+ MainWindow mw;
+ mw.show();
+
+ return app.exec();
+}
+
Added: trunk/qcell/visgui/visgui.pro
===================================================================
--- trunk/qcell/visgui/visgui.pro (rev 0)
+++ trunk/qcell/visgui/visgui.pro 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,13 @@
+TEMPLATE = app
+DESTDIR = ../bin
+CONFIG += qt thread warn_on debug
+
+FORMS = MainWindow.ui \
+ AboutDialog.ui
+
+HEADERS = MainWindow.h
+SOURCES = main.cpp \
+ MainWindow.cpp
+
+TRANSLATIONS = visgui_pl.ts
+
Added: trunk/qcell/visgui/visgui_pl.qm
===================================================================
(Binary files differ)
Property changes on: trunk/qcell/visgui/visgui_pl.qm
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/qcell/visgui/visgui_pl.ts
===================================================================
--- trunk/qcell/visgui/visgui_pl.ts (rev 0)
+++ trunk/qcell/visgui/visgui_pl.ts 2006-11-27 21:14:42 UTC (rev 6)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="1.1" language="pl">
+<context>
+ <name>AboutDialog</name>
+ <message>
+ <location filename="AboutDialog.ui" line="13"/>
+ <source>About QCell</source>
+ <translation>O Qcell</translation>
+ </message>
+ <message>
+ <location filename="AboutDialog.ui" line="72"/>
+ <source>&OK</source>
+ <translation>&OK</translation>
+ </message>
+</context>
+<context>
+ <name>MainWindow</name>
+ <message>
+ <location filename="MainWindow.ui" line="13"/>
+ <source>QCell</source>
+ <translation>QCell</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="42"/>
+ <source>&Help</source>
+ <translation>P&omoc</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="49"/>
+ <source>&File</source>
+ <translation>&Plik</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="53"/>
+ <source>Opens experiment data.</source>
+ <translation>Otwiera dane eksperymentu.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="56"/>
+ <source>&Open</source>
+ <translation>&Otwórz</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="74"/>
+ <source>This menu allows searching through help topics and reading about the application.</source>
+ <translation>To menu pozwala przeszukiwać tematy pomocy i poczytać o aplikacji.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="85"/>
+ <source>&Quit</source>
+ <translation>&Wyjście</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="88"/>
+ <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="91"/>
+ <source>Quits the application.</source>
+ <translation>Wychodzi z aplikacji.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="96"/>
+ <source>&Neighbourhood</source>
+ <translation>&Sąsiedztwo</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="99"/>
+ <source>Opens neighbourhood.</source>
+ <translation>Otwiera plik sąsiedztwa.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="104"/>
+ <source>&Function</source>
+ <translation>&Funkcja</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="107"/>
+ <source>Opens function.</source>
+ <translation>Otwiera plik funkcji.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="112"/>
+ <source>&World</source>
+ <translation>Ś&wiat</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="115"/>
+ <source>Opens world configuration.</source>
+ <translation>Otwiera konfigurację świata.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="120"/>
+ <source>Open &experiment</source>
+ <translation>Otwórz &eksperyment</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="123"/>
+ <source>Opens a predefined experiment.</source>
+ <translation>Otwiera zdefiniowany wcześniej eksperyment.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="128"/>
+ <source>&Continiue experiment</source>
+ <translation>&Kontynuuj eksperyment</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="131"/>
+ <source>Loads an earlier saved experiment.</source>
+ <translation>Ładuje wcześniej zachowany eksperyment.</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="136"/>
+ <source>&About</source>
+ <translation>&O programie</translation>
+ </message>
+ <message>
+ <location filename="MainWindow.ui" line="139"/>
+ <source>Shows info about the program.</source>
+ <translation>Pokazuje informacje o programie.</translation>
+ </message>
+</context>
+</TS>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|