diff python/ide.py @ 207:8b2f20aae086

cleaning of files
author Windel Bouwman
date Sat, 29 Jun 2013 10:05:42 +0200
parents ee0d30533dae
children 6259856841a0
line wrap: on
line diff
--- a/python/ide.py	Fri Jun 28 16:49:38 2013 +0200
+++ b/python/ide.py	Sat Jun 29 10:05:42 2013 +0200
@@ -16,8 +16,6 @@
 import testc3
 import c3
 
-lcfospng = base64.decodestring(b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A\n/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJEhMKBk7B678AAAA/SURBVFjD\n7dbBCQAgDATBi9h/y7EFA4Kf2QLCwH1S6XQu6sqoujublc8BAAAAAAAAAAB8B+zXT6YJAAAAAKYd\nWSgFQNUyijIAAAAASUVORK5CYII=\n')
-
 class BuildOutput(QTextEdit):
    """ Build output component """
    def __init__(self, parent=None):
@@ -33,7 +31,7 @@
       model = QStandardItemModel()
       self.setModel(model)
       self.clicked.connect(self.itemSelected)
-      self.errorIcon = QIcon('error.png')
+      self.errorIcon = QIcon('icons/error.png')
       self.model = QStandardItemModel()
       self.model.setHorizontalHeaderLabels(['Message', 'Row', 'Column'])
       self.setModel(self.model)
@@ -64,9 +62,7 @@
       self.treeview.setContextMenuPolicy(Qt.CustomContextMenu)
       l = QVBoxLayout(self)
       l.addWidget(self.treeview)
-      pm = QPixmap()
-      pm.loadFromData(lcfospng)
-      self.projectIcon = QIcon(pm)
+      self.projectIcon = QIcon('icons/logo.png')
       # Connect signals:
       self.treeview.activated.connect(self.activate)
       self.treeview.customContextMenuRequested.connect(self.contextMenu)
@@ -126,9 +122,7 @@
   def __init__(self, parent=None):
     super(Ide, self).__init__(parent)
     self.setWindowTitle('LCFOS IDE')
-    icon = QPixmap()
-    icon.loadFromData(lcfospng)
-    self.setWindowIcon(QIcon(icon))
+    self.setWindowIcon(QIcon('icons/logo.png'))
 
     # Create menus:
     mb = self.menuBar()
@@ -170,7 +164,7 @@
 
     # About dialog:
     self.aboutDialog = AboutDialog()
-    self.aboutDialog.setWindowIcon(QIcon(icon))
+    self.aboutDialog.setWindowIcon(QIcon('icons/logo.png'))
     # Create actions:
     def addMenuEntry(name, menu, callback, shortcut=None):
       a = QAction(name, self)
@@ -361,7 +355,6 @@
      self.buildFile()
 
      self.builderrors.setErrorList(self.diag.diags)
-     #self.astViewer.setAst(mods[0])
      for err in self.diag.diags:
         self.buildOutput.append(str(err))
      ce = self.activeMdiChild()