2020
2121from sextante .about .AboutDialog import AboutDialog
2222
23+ import resources_rc
24+
2325cmd_folder = os .path .split (inspect .getfile ( inspect .currentframe () ))[0 ]
2426if cmd_folder not in sys .path :
2527 sys .path .insert (0 , cmd_folder )
@@ -40,50 +42,43 @@ def initGui(self):
4042 self .menu = QMenu (self .iface .mainWindow ())
4143 self .menu .setTitle (QCoreApplication .translate ("SEXTANTE" , "Analysis" ))
4244
43- icon = QIcon (os .path .dirname (__file__ ) + "/images/toolbox.png" )
44- self .toolboxAction = QAction (icon , \
45+ self .toolboxAction = QAction (QIcon (":/sextante/images/toolbox.png" ),
4546 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE Toolbox" ),
4647 self .iface .mainWindow ())
4748 QObject .connect (self .toolboxAction , SIGNAL ("triggered()" ), self .openToolbox )
4849 self .menu .addAction (self .toolboxAction )
4950
50- icon = QIcon (os .path .dirname (__file__ ) + "/images/model.png" )
51- self .modelerAction = QAction (icon , \
51+ self .modelerAction = QAction (QIcon (":/sextante/images/model.png" ),
5252 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE Modeler" ),
5353 self .iface .mainWindow ())
5454 QObject .connect (self .modelerAction , SIGNAL ("triggered()" ), self .openModeler )
5555 self .menu .addAction (self .modelerAction )
5656
57- icon = QIcon (os .path .dirname (__file__ ) + "/images/history.gif" )
58- self .historyAction = QAction (icon , \
57+ self .historyAction = QAction (QIcon (":/sextante/images/history.gif" ),
5958 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE History and log" ),
6059 self .iface .mainWindow ())
6160 QObject .connect (self .historyAction , SIGNAL ("triggered()" ), self .openHistory )
6261 self .menu .addAction (self .historyAction )
6362
64- icon = QIcon (os .path .dirname (__file__ ) + "/images/config.png" )
65- self .configAction = QAction (icon , \
63+ self .configAction = QAction (QIcon (":/sextante/images/config.png" ),
6664 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE options and configuration" ),
6765 self .iface .mainWindow ())
6866 QObject .connect (self .configAction , SIGNAL ("triggered()" ), self .openConfig )
6967 self .menu .addAction (self .configAction )
7068
71- icon = QIcon (os .path .dirname (__file__ ) + "/images/results.png" )
72- self .resultsAction = QAction (icon , \
69+ self .resultsAction = QAction (QIcon (":/sextante/images/results.png" ),
7370 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE results viewer" ),
7471 self .iface .mainWindow ())
7572 QObject .connect (self .resultsAction , SIGNAL ("triggered()" ), self .openResults )
7673 self .menu .addAction (self .resultsAction )
7774
78- icon = QIcon (os .path .dirname (__file__ ) + "/images/help.png" )
79- self .helpAction = QAction (icon , \
75+ self .helpAction = QAction (QIcon (":/sextante/images/help.png" ),
8076 QCoreApplication .translate ("SEXTANTE" , "&SEXTANTE help" ),
8177 self .iface .mainWindow ())
8278 QObject .connect (self .helpAction , SIGNAL ("triggered()" ), self .openHelp )
8379 self .menu .addAction (self .helpAction )
8480
85- icon = QIcon (os .path .dirname (__file__ ) + "/images/info.png" )
86- self .aboutAction = QAction (icon , \
81+ self .aboutAction = QAction (QIcon (":/sextante/images/info.png" ),
8782 QCoreApplication .translate ("SEXTANTE" , "&About SEXTANTE" ),
8883 self .iface .mainWindow ())
8984 QObject .connect (self .aboutAction , SIGNAL ("triggered()" ), self .openAbout )
0 commit comments