From ed8eee97618542efea1b3fa439f2b10b6c5bd07d Mon Sep 17 00:00:00 2001 From: fahim Date: Fri, 13 Mar 2015 11:47:05 +0530 Subject: Subject: Move Repository to FOSSEE Description: Move Repository to FOSSEE --- src/configuration/Appconfig.py | 61 ++++++++++++++++++++++++++++++++++++++++ src/configuration/Appconfig.pyc | Bin 0 -> 1303 bytes src/configuration/__init__.py | 0 src/configuration/__init__.pyc | Bin 0 -> 144 bytes 4 files changed, 61 insertions(+) create mode 100644 src/configuration/Appconfig.py create mode 100644 src/configuration/Appconfig.pyc create mode 100644 src/configuration/__init__.py create mode 100644 src/configuration/__init__.pyc (limited to 'src/configuration') diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py new file mode 100644 index 00000000..c0ea1037 --- /dev/null +++ b/src/configuration/Appconfig.py @@ -0,0 +1,61 @@ +#=============================================================================== +# +# FILE: Appconfig.py +# +# USAGE: --- +# +# DESCRIPTION: This define all configuration used in Application. +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: Fahim Khan, fahim.elex@gmail.com +# ORGANIZATION: eSim team at FOSSEE, IIT Bombay. +# CREATED: Wednesday 04 February 2015 +# REVISION: --- +#=============================================================================== + + +from PyQt4 import QtGui +import os + + + +class Appconfig(QtGui.QWidget): + """ + All configuration goes here + """ + #Home directory + home = os.path.join(os.path.expanduser("~"),"eSim-Workspace") + default_workspace = {"workspace":home} + #Current Project detail + current_project = {"ProjectName":None} + #Workspace detail + workspace_text = '''ecSim stores your project in a folder called a workspace. You can choose a different workspace folder to use for this session.''' + + def __init__(self): + super(Appconfig, self).__init__() + #Application Details + self._APPLICATION = 'eSim' + self._VERSION = 'v1.1' + self._AUTHOR = 'Fahim' + + #Application geometry setting + self._app_xpos = 100 + self._app_ypos = 100 + self._app_width = 600 + self._app_heigth = 400 + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/configuration/Appconfig.pyc b/src/configuration/Appconfig.pyc new file mode 100644 index 00000000..f8804014 Binary files /dev/null and b/src/configuration/Appconfig.pyc differ diff --git a/src/configuration/__init__.py b/src/configuration/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/configuration/__init__.pyc b/src/configuration/__init__.pyc new file mode 100644 index 00000000..e99acbcf Binary files /dev/null and b/src/configuration/__init__.pyc differ -- cgit