54 |
panelBox = wxBoxSizer(wxVERTICAL) |
panelBox = wxBoxSizer(wxVERTICAL) |
55 |
|
|
56 |
self.toolBar = wxToolBar(self, -1) |
self.toolBar = wxToolBar(self, -1) |
57 |
|
self.toolBar.SetToolBitmapSize(wxSize(24, 24)) |
58 |
|
|
59 |
bmp = resource.GetBitmapResource(RAISE_BMP, wxBITMAP_TYPE_XPM) |
bmp = resource.GetBitmapResource(RAISE_BMP, wxBITMAP_TYPE_XPM) |
60 |
self.toolBar.AddTool(ID_LEGEND_RAISE, bmp, |
self.toolBar.AddTool(ID_LEGEND_RAISE, bmp, |
77 |
shortHelpString=_("Edit Layer Properties")) |
shortHelpString=_("Edit Layer Properties")) |
78 |
|
|
79 |
self.toolBar.Realize() |
self.toolBar.Realize() |
80 |
panelBox.Add(self.toolBar, 0, wxALL, 0) |
panelBox.Add(self.toolBar, 0, wxGROW, 0) |
81 |
|
|
82 |
EVT_TOOL(self, ID_LEGEND_RAISE, self._OnMoveUp) |
EVT_TOOL(self, ID_LEGEND_RAISE, self._OnMoveUp) |
83 |
EVT_TOOL(self, ID_LEGEND_LOWER, self._OnMoveDown) |
EVT_TOOL(self, ID_LEGEND_LOWER, self._OnMoveDown) |
87 |
|
|
88 |
self.tree = LegendTree(self, ID_LEGEND_TREE, map, mainWindow) |
self.tree = LegendTree(self, ID_LEGEND_TREE, map, mainWindow) |
89 |
|
|
90 |
panelBox.Add(self.tree, 1, wxGROW, 4) |
panelBox.Add(self.tree, 1, wxGROW, 0) |
|
|
|
|
panelBox.Fit(self) |
|
91 |
|
|
92 |
self.SetAutoLayout(True) |
self.SetAutoLayout(True) |
93 |
self.SetSizer(panelBox) |
self.SetSizer(panelBox) |
94 |
panelBox.SetSizeHints(self) |
panelBox.SetSizeHints(self) |
95 |
|
|
96 |
|
|
97 |
self.panelBox = panelBox |
self.panelBox = panelBox |
98 |
|
|
99 |
self.__EnableButtons(False) |
self.__EnableButtons(False) |
100 |
|
|
101 |
|
self.Create() |
102 |
|
|
103 |
EVT_CLOSE(self, self._OnClose) |
EVT_CLOSE(self, self._OnClose) |
104 |
|
|
105 |
|
|