summaryrefslogtreecommitdiff
path: root/src/configuration/Appconfig.py
blob: b9b619b1a5f20e5d93392aa679082e20c24e1c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#===============================================================================
#
#          FILE: Appconfig.py
# 
#         USAGE: --- 
# 
#   DESCRIPTION: This define all configuration used in Application. 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Fahim Khan, fahim.elex@gmail.com
#  ORGANIZATION: ecSim 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
        """
        def __init__(self):
            super(Appconfig, self).__init__()
            #Application Details
            self._APPLICATION = 'ecSim'
            self._VERSION = 'v1.1'
            self._AUTHOR = 'Fahim'
        
            #Application setting
            self.app_xpos = 100
            self.app_ypos = 100
            self.app_width = 600
            self.app_heigth = 400
            
            #Workspace detail
            self.workspace_text = '''ecSim stores your project in a folder called a workspace. You can choose a different workspace folder to use for this session.'''
            #Home directory
            self.home = os.path.expanduser("~")+"/ecSim-Workspace"
            self.default_workspace = {"workspace":self.home}