commit 4937dbfde4b4e79f67da994492da7247bb2ea4fe Author: Pavol Rusnak Date: Wed Mar 23 03:45:12 2011 +0100 init diff --git a/software/Makefile b/software/Makefile new file mode 100644 index 0000000..010df67 --- /dev/null +++ b/software/Makefile @@ -0,0 +1,10 @@ +all: edubrm mainUi.py resources.py + +mainUi.py: main.ui + pyuic4 main.ui -o mainUi.py + +resources.py: + pyrcc4 resources.qrc -o resources_rc.py + +clean: + rm -f *.pyc modules/*.pyc mainUi.py resources_rc.py diff --git a/software/README b/software/README new file mode 100644 index 0000000..de1a63a --- /dev/null +++ b/software/README @@ -0,0 +1,9 @@ +EduBRM by Hackerspace brmlab +============================ + +http://brmlab.cz/ + +Authors: +-------- +Tomislav "sargon" Arnaudov +Pavol "stick" Rusnak diff --git a/software/about.png b/software/about.png new file mode 100644 index 0000000..8851b99 Binary files /dev/null and b/software/about.png differ diff --git a/software/edubrm b/software/edubrm new file mode 100755 index 0000000..2734773 --- /dev/null +++ b/software/edubrm @@ -0,0 +1,10 @@ +#!/usr/bin/python + +import sys +from PyQt4.QtGui import QApplication +from main import Main + +app = QApplication(sys.argv) +window = Main() +window.show() +sys.exit(app.exec_()) diff --git a/software/exit.png b/software/exit.png new file mode 100644 index 0000000..0010931 Binary files /dev/null and b/software/exit.png differ diff --git a/software/icon.png b/software/icon.png new file mode 100644 index 0000000..a6ad3a9 Binary files /dev/null and b/software/icon.png differ diff --git a/software/main.py b/software/main.py new file mode 100644 index 0000000..ff36e4f --- /dev/null +++ b/software/main.py @@ -0,0 +1,23 @@ +#!/usr/bin/python + +from PyQt4.QtCore import pyqtSlot +from PyQt4.QtGui import QMainWindow +from PyQt4.QtGui import QMessageBox +from PyQt4.QtGui import QPixmap +from mainUi import Ui_MainWindow + +class Main(QMainWindow): + def __init__(self): + QMainWindow.__init__(self) + self.ui = Ui_MainWindow() + self.ui.setupUi(self) + + @pyqtSlot() + def on_actionExit_triggered(self): + self.close() + + @pyqtSlot() + def on_actionAbout_triggered(self): + box = QMessageBox(QMessageBox.NoIcon, "About EduBRM", "EduBRM by Hackerspace brmlab\n\nhttp://brmlab.cz/\n\nSee README for more information.", QMessageBox.Ok) + box.setIconPixmap(QPixmap( ":/icons/icon.png")) + box.exec_() diff --git a/software/main.ui b/software/main.ui new file mode 100644 index 0000000..701b9bb --- /dev/null +++ b/software/main.ui @@ -0,0 +1,83 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + EduBRM + + + + :/icons/icon.png:/icons/icon.png + + + + + + 10 + 10 + 501 + 201 + + + + + + + + + + + 0 + 0 + 800 + 22 + + + + + &File + + + + + + &Help + + + + + + + + + + + :/icons/about.png:/icons/about.png + + + &About ... + + + + + + :/icons/exit.png:/icons/exit.png + + + E&xit + + + + + + + + diff --git a/software/modules/ModuleA.py b/software/modules/ModuleA.py new file mode 100644 index 0000000..8367a46 --- /dev/null +++ b/software/modules/ModuleA.py @@ -0,0 +1,8 @@ +from module import Module + +class ModuleA(Module): + + group = "Acko" + title = "Acko" + board = 1 + desc = "Toto je Acko" diff --git a/software/modules/ModuleB.py b/software/modules/ModuleB.py new file mode 100644 index 0000000..452491c --- /dev/null +++ b/software/modules/ModuleB.py @@ -0,0 +1,8 @@ +from module import Module + +class ModuleB(Module): + + group = "Bcko" + title = "Bcko" + board = 1 + desc = "Toto je Bcko" diff --git a/software/modules/__init__.py b/software/modules/__init__.py new file mode 100644 index 0000000..637b9f4 --- /dev/null +++ b/software/modules/__init__.py @@ -0,0 +1,5 @@ +from ModuleA import ModuleA +from ModuleB import ModuleB + +def list(): + return [ModuleA(),ModuleB()] diff --git a/software/modules/module.py b/software/modules/module.py new file mode 100644 index 0000000..8744a13 --- /dev/null +++ b/software/modules/module.py @@ -0,0 +1,6 @@ +class Module(): + + group = "" + title = "" + board = 1 + desc = "" diff --git a/software/resources.qrc b/software/resources.qrc new file mode 100644 index 0000000..df30a20 --- /dev/null +++ b/software/resources.qrc @@ -0,0 +1,7 @@ + + + exit.png + about.png + icon.png + +