Browse Source

wxGUI: remove redundancy from icon files

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42606 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
e07098f492

+ 3 - 23
gui/wxpython/gui_modules/wxnviz.py

@@ -160,12 +160,9 @@ class Nviz(object):
         Nviz_set_bgcolor(self.data, Nviz_color_from_str("white")) # TODO
         self.SetBgColor("white")
         
-        # initialize view
-        Nviz_init_view()
-        
-        # set default lighting model
-        self.SetLightsDefault()
-        
+        # initialize view, lights
+        Nviz_init_view(self.data)
+                
         # clear window
         GS_clear(self.data.bgcolor)
         
@@ -178,23 +175,6 @@ class Nviz(object):
         """
         self.data.bgcolor = Nviz_color_from_str(color_str)
         
-    def SetLightsDefault(self):
-        """!Set default lighting model
-        """
-        # first
-        Nviz_set_light_position(self.data, 1, 0.68, -0.68, 0.80, 0.0)
-        Nviz_set_light_bright(self.data,   1, 0.8)
-        Nviz_set_light_color(self.data,    1, 1.0, 1.0, 1.0)
-        Nviz_set_light_ambient(self.data,  1, 0.2, 0.2, 0.2)
-        
-        # second
-        Nviz_set_light_position(self.data, 2, 0.0, 0.0, 1.0, 0.0)
-        Nviz_set_light_bright(self.data,   2, 0.5)
-        Nviz_set_light_color(self.data,    2, 1.0, 1.0, 1.0)
-        Nviz_set_light_ambient(self.data,  2, 0.3, 0.3, 0.3)
-        
-        Debug.msg(3, "Nviz::SetLightsDefault()")
-        
     def SetLight(self, x, y, z, color, bright, ambient, w = 0, lid = 1):
         """!Change lighting settings
         @param x,y,z position

+ 0 - 1
gui/wxpython/icons/grass2_icons.py

@@ -89,7 +89,6 @@ IconsGrass2 = {
     # profile analysis
     "transect"     : 'layer-raster-profile.png',
     "profiledraw"  : 'show.png',
-    "datasave"     : 'save.png',
     # georectify
     "grGcpSet"     : 'gcp-create.png',
     'grGcpClear'   : 'gcp-remove.png',

+ 0 - 1
gui/wxpython/icons/grass_icons.py

@@ -89,7 +89,6 @@ IconsGrass = {
     # profile 
     "profile"    : 'gui-profile.gif',
     "transect"   : 'gui-profiledefine.gif',
-    "datasave"   : 'file-save.gif',
     "profiledraw" : 'gui-display.gif',
     "profileopt" : 'gui-profileopt.gif',
     # georectify

+ 1 - 1
gui/wxpython/icons/icon.py

@@ -300,7 +300,7 @@ Icons = {
                              label=_("Draw/re-draw profile")),
     "profileopt" : MetaIcon (img=Icons["settings"],
                              label=_("Profile options")),
-    "datasave"   : MetaIcon (img=Icons["datasave"],
+    "datasave"   : MetaIcon (img=Icons["fileSave"],
                              label=_("Save profile data to csv file")),
     "histogram"  : MetaIcon (img=Icons["histogram"],
                              label=_("Create histogram of image or raster file")),

+ 0 - 1
gui/wxpython/icons/silk_icons.py

@@ -93,7 +93,6 @@ IconsSilk = {
     "transect"   : 'image_edit.png',
     "profiledraw"  : 'arrow_refresh.png',
     "profileopt"   : 'color_swatch.png',
-    "datasave"     : 'page_save.png',
     # georectify
     "grGcpSet"     : 'bullet_add.png',
     'grGcpClear'   : 'cross.png',