diff Generic/globalVars.py @ 23:65e7ae0d0e63

GTK2 to GTK3
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Thu, 02 May 2019 16:31:17 +0200
parents 7bd4ca56607d
children 2b393934f1db
line wrap: on
line diff
--- a/Generic/globalVars.py	Tue Sep 30 17:16:50 2014 +0200
+++ b/Generic/globalVars.py	Thu May 02 16:31:17 2019 +0200
@@ -3,7 +3,7 @@
 ## File globalVars.py
 ## This file is part of pyArq-Presupuestos.
 ##
-## Copyright (C) 2010-2014 Miguel Ángel Bárcena Rodríguez
+## Copyright (C) 2010-2019 Miguel Ángel Bárcena Rodríguez
 ##                         <miguelangel@obraencurso.es>
 ##
 ## pyArq-Presupuestos is free software: you can redistribute it and/or modify
@@ -20,20 +20,26 @@
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # module for global variables
+# not translatable strings here _("strig")
+
 import os
 import sys
 
-version = "pyArq Presupuestos v0.0.0"
-changeset = 22
+name = "pyArq Presupuestos"
+version = "v0.0.0"
+changeset = "c23"
 baseversion = 0
 
 # path: Paths where find the program files needed
 path = {
     "HOME" : "",
     "APPDATA" : "",
-    #"DURUS-DATABASE": "/pyArq-Presupuestos/durus/",
     "BUDGET": "/pyArq-Presupuestos/budget/",
     "ICON" : "/images/pyArq-Presupuestos.png",
+    "ICON16" : "/images/pyArq-Presupuestos-16.svg",
+    "ICON32" : "/images/pyArq-Presupuestos-32.svg",
+    "ICON64" : "/images/pyArq-Presupuestos-64.svg",
+    "ICON128" : "/images/pyArq-Presupuestos-128.svg",
     "CHAPTER-ICON" : "/images/chapter.png",
     "UNIT-ICON" : "/images/unit.png",
     "MATERIAL-ICON" : "/images/material.png",
@@ -43,10 +49,14 @@
     "CONNECTED-ICON": "/images/connected.png",
     "DISCONNECTED-ICON": "/images/disconnected.png",
     "CLOSE-ICON": "/images/close.png",
+    "HORIZONTAL": "/images/horizontal.svg",
+    "VERTICAL": "/images/vertical.svg",
     "DESCRIPTION-ICON": "/images/description.png",
     "SHEET-ICON": "/images/sheet.png",
     "DECOMPOSITION-ICON" : "/images/decomposition.png",
     "MEASURE-ICON" : "/images/measure.png",
+    "FILEVIEW-ICON" : "/images/fileview.png",
+    "COMPANY-ICON" : "/images/company.png",
     "ACUMULATEDLINE-ICON" : "/images/acumulatedline.png",
     "PARCIALLINE-ICON" : "/images/parcialline.png",
     "NORMALLINE-ICON" : "/images/normalline.png",
@@ -54,33 +64,37 @@
     "ARROW-ICON": "/images/arrow.png",
     "IMAGE-ICON": "/images/image.png",
     "DXF-ICON": "/images/dxf.png",
-    "THROBBER-ICON": "/images/throbber.png",
-    "THROBBER-GIF": "/images/throbber.gif",
+    "PDF-ICON": "/images/pdf.png",
     "BUDGET-ICON": "/images/budget.png",
     "PYARQ-ICON": "/images/pyArq.png",
     }
 
 color = {
-    "ACTIVE" : "#CDD7FF",           # blue
-    "INDEX-EVEN" : "#C4C4C4",       # dark grey
-    "INDEX-UNEVEN" : "#DDDDDD",     # grey
-    "EVEN" : "#E6E6E6",             # dark white
-    "UNEVEN": "#FFFFFF",            # white
-    "CHAPTER-EVEN": "#D8E6E6",      # dark cian
-    "CHAPTER-UNEVEN": "#F0FFFF",    # cian
-    "TEXT": "#000000",              # black
-    "CALCULATED-TEXT": "#FF00FF",   # 
-    "SUBTOTAL": "#FAC8C8",
-    "SUBTOTAL-PARCIAL": "#ADD8E6",
+    "ACTIVE" : "#CDD7FF",           # Lavender Blue       (205,215,255,1)
+    "INDEX-EVEN" : "#C4C4C4",       # Silver, dark grey   (196,196,196,1)
+    "INDEX-UNEVEN" : "#DDDDDD",     # Gainsboro, grey     (221,221,221,1)
+    "EVEN" : "#E6E6E6",             # Whisper, dark white (230,230,230,1)
+    "UNEVEN": "#FFFFFF",            # White               (255,255,255,1)
+    "CHAPTER-EVEN": "#D8E6E6",      # Zircon, dark cian   (216,230,230,1)
+    "CHAPTER-UNEVEN": "#F0FFFF",    # Azure, cian         (240,255,255,1)
+    "TEXT": "#000000",              # Black               (  0,  0,  0,1)
+    "CALCULATED-TEXT": "#FF00FF",   # Magenta             (255,  0,255,1)
+    "SUBTOTAL": "#FAC8C8",          # Coral Candy         (250,200,200,1)
+    "SUBTOTAL-PARCIAL": "#ADD8E6",  # Light Blue          (173,216,230,1)
     }
 
 desktop = {
-    "autodetect" : True,
-    "desktop" : "",
-    "browser" : "firefox",
-    "mailapp" : "evolution",
-    "imageapp" : "gthumb",
-    "cadapp" : "qcad",
+    "autodetect" : True,    # True: try to autodect desktop
+    "desktop" : "",         # "linux", "macosx" or "windows"
+    "browser" : "",         # "firefox"
+    "mailapp" : "",         # "evolution"
+    "imageapp" : "",        # "gthumb"
+    "wmfapp" : "",          # "inkscape"
+    "cadapp" : "",          # "librecad"
+    "videoapp" : "",        # "vlc"
+    "officeapp" : "",       # "libreoffice"
+    "txtapp" : "",          # "gedit"
+    "rtfapp" : "",          # "libreoffice"
     }
 
 def getAppPath(key):