2 # -*- coding: utf-8 -*-
4 # ------------------------------------------------------------
7 # something about OpenSecurity
9 # Autor: Oliver Maurhart, <oliver.maurhart@ait.ac.at>
11 # Copyright (C) 2014 AIT Austrian Institute of Technology
12 # AIT Austrian Institute of Technology GmbH
13 # Donau-City-Strasse 1 | 1220 Vienna | Austria
14 # http://www.ait.ac.at
16 # This program is free software; you can redistribute it and/or
17 # modify it under the terms of the GNU General Public License
18 # as published by the Free Software Foundation version 2.
20 # This program is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU General Public License for more details.
25 # You should have received a copy of the GNU General Public License
26 # along with this program; if not, write to the Free Software
27 # Foundation, Inc., 51 Franklin Street, Fifth Floor,
28 # Boston, MA 02110-1301, USA.
29 # ------------------------------------------------------------
32 # ------------------------------------------------------------
37 from PyQt4 import QtCore
38 from PyQt4 import QtGui
40 from ui_AboutDialog import Ui_AboutDialog
43 # mhm, bit of a hack to get the ../__init__.py loaded
45 f = os.path.normpath(os.path.join(os.path.split(__file__)[0], '..', '__init__.py'))
47 opensecurity = imp.load_source('opensecurity', f)
48 __version__ = opensecurity.__version__
51 # failed to get the ../__init__.py loaded :(
55 # ------------------------------------------------------------
64 <style type="text/css">
65 .header { margin-bottom: 50px; }
66 .logo { vertical-align: middle; margin-bottom: 24px; }
67 .logo { vertical-align: middle; margin-bottom: 24px; }
68 .footer { margin-top: 100px; }
73 <body bgcolor="#FFFFFF">
78 <a href="http://www.opensecurity.at"><img src=":/opensecurity/gfx/opensecurity_logo.jpg"/></a><br/><br/>
82 <div class="about_text" align="left">
83 OpenSecurity is an Austrian national project funded by the FFG KIRAS program.<br/>
85 The goal of the project is to help to prevent the loss and (un)intentional misuse of sensitive, <br/>
86 citizen-related data held by public bodies through the application of "security by isolation" approaches. <br/>
88 The OpenSecurity consortium consists of small businesses (X-Net Services GmbH, IKARUS Security Software GmbH), <br/>
89 research institutions (AIT Austrian Institute of Technology GmbH, Linzer Institut für qualitative Analysen), <br/>
90 and public stakeholders (Bundesministerium für Landesverteidigung und Sport, IKT Linz Infrastruktur GmbH). <br/>
94 <a href="http://www.ait.ac.at"><img src=":/opensecurity/gfx/ait_logo_no_claim.png"/></a>
95 <a href="http://www.x-net.at"><img src=":/opensecurity/gfx/x-net_logo.jpg"/></a>
96 <a href="http://www.ikarussecurity.com"><img src=":/opensecurity/gfx/ikarus_logo.jpg"/></a>
100 <a href="http://www.liqua.net"><img src=":/opensecurity/gfx/liqua_logo.jpg"/></a>
101 <a href="http://www.linz.at"><img src=":/opensecurity/gfx/linz_logo.jpg"/></a>
102 <a href="http://www.bmvit.gv.at"><img src=":/opensecurity/gfx/bmvit_logo.jpg"/></a>
106 <a href="http://www.ffg.at"><img src=":/opensecurity/gfx/ffg_logo.jpg"/></a>
107 <a href="http://www.kiras.at"><img src=":/opensecurity/gfx/kiras_logo.jpg"/></a>
110 <div class="footer" align="left">
111 Copyright (C) 2013, 2014 AIT Austrian Institute of Technology<br/>
112 AIT Austrian Institute of Technology GmbH<br/>
113 Donau-City-Strasse 1 | 1220 Vienna | Austria<br/>
114 <a href="http://www.ait.ac.at">http://www.ait.ac.at</a>
123 # ------------------------------------------------------------
127 class AboutDialog(QtGui.QDialog):
129 """A dialog which shows some information about the OpenSecurity project"""
133 QtGui.QDialog.__init__(self)
135 # setup the user interface
136 self.ui = Ui_AboutDialog()
137 self.ui.setupUi(self)
139 # fix the scroll area content
140 self.ui.lblAbout = QtGui.QLabel(ABOUT_TEXT)
141 self.ui.lblAbout.setContentsMargins(16, 16, 16, 16)
142 self.ui.lblAbout.setStyleSheet(self.ui.scrAboutContent.styleSheet())
143 self.ui.scrAbout.setWidget(self.ui.lblAbout)
146 self.ui.btnOk.clicked.connect(self.accept)
147 self.ui.lblAbout.setText(ABOUT_TEXT % __version__)
150 if __name__ == "__main__":
151 a = QtGui.QApplication(sys.argv)