Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed May 10, 2012
0 parents commit 435426a
Show file tree
Hide file tree
Showing 58 changed files with 6,197 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitignore
@@ -0,0 +1,32 @@
*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

.DS_Store
*.log
*.aux
*.pdf
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
@@ -0,0 +1,2 @@
TikZ-Editor
===========
18 changes: 18 additions & 0 deletions controllers/__init__.py
@@ -0,0 +1,18 @@
# Copyright 2012 (C) Mickael Menu <mickael.menu@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

from factory import ControllerFactory

__all__ = ['ControllerFactory']
37 changes: 37 additions & 0 deletions controllers/about.py
@@ -0,0 +1,37 @@
# Copyright 2012 (C) Mickael Menu <mickael.menu@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

from PyQt4.QtCore import *
import resources

from tools import File

class AboutController(QObject):
"""
Controller for the "About" dialog.
"""
def __init__(self):
super(AboutController, self).__init__()
self.view = None
self.app_controller = None

def initController(self):
self.view.setImage(":/icon_about.png")
self.view.setInfoHTML(File.readContentFromFilePath(":/about.html"))

@pyqtSlot()
def showAbout(self):
self.view.show()
self.view.raise_()

0 comments on commit 435426a

Please sign in to comment.