(self, parent)
| 266 | class ExportToEve(AuxiliaryFrame): |
| 267 | |
| 268 | def __init__(self, parent): |
| 269 | super().__init__( |
| 270 | parent, id=wx.ID_ANY, title=_t("Export fit to EVE"), pos=wx.DefaultPosition, |
| 271 | size=wx.Size(400, 175) if "wxGTK" in wx.PlatformInfo else wx.Size(350, 145), resizeable=True) |
| 272 | |
| 273 | self.mainFrame = parent |
| 274 | |
| 275 | mainSizer = wx.BoxSizer(wx.VERTICAL) |
| 276 | hSizer = wx.BoxSizer(wx.HORIZONTAL) |
| 277 | |
| 278 | self.charChoice = wx.Choice(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, []) |
| 279 | hSizer.Add(self.charChoice, 1, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) |
| 280 | self.updateCharList() |
| 281 | self.charChoice.SetSelection(0) |
| 282 | |
| 283 | self.exportBtn = wx.Button(self, wx.ID_ANY, _t("Export Fit"), wx.DefaultPosition, wx.DefaultSize, 5) |
| 284 | hSizer.Add(self.exportBtn, 0, wx.ALL, 5) |
| 285 | |
| 286 | mainSizer.Add(hSizer, 0, wx.EXPAND, 5) |
| 287 | |
| 288 | self.exportChargesCb = wx.CheckBox(self, wx.ID_ANY, _t('Export Loaded Charges'), wx.DefaultPosition, wx.DefaultSize, 0) |
| 289 | self.exportChargesCb.SetValue(EsiSettings.getInstance().get('exportCharges')) |
| 290 | self.exportChargesCb.Bind(wx.EVT_CHECKBOX, self.OnChargeExportChange) |
| 291 | mainSizer.Add(self.exportChargesCb, 0, 0, 5) |
| 292 | |
| 293 | self.exportImplantsCb = wx.CheckBox(self, wx.ID_ANY, _t('Export Implants'), wx.DefaultPosition, wx.DefaultSize, 0) |
| 294 | self.exportImplantsCb.SetValue(EsiSettings.getInstance().get('exportImplants')) |
| 295 | self.exportImplantsCb.Bind(wx.EVT_CHECKBOX, self.OnImplantsExportChange) |
| 296 | mainSizer.Add(self.exportImplantsCb, 0, 0, 5) |
| 297 | |
| 298 | self.exportBoostersCb = wx.CheckBox(self, wx.ID_ANY, _t('Export Boosters'), wx.DefaultPosition, wx.DefaultSize, 0) |
| 299 | self.exportBoostersCb.SetValue(EsiSettings.getInstance().get('exportBoosters')) |
| 300 | self.exportBoostersCb.Bind(wx.EVT_CHECKBOX, self.OnBoostersExportChange) |
| 301 | mainSizer.Add(self.exportBoostersCb, 0, 0, 5) |
| 302 | |
| 303 | self.exportBtn.Bind(wx.EVT_BUTTON, self.exportFitting) |
| 304 | |
| 305 | self.statusbar = wx.StatusBar(self) |
| 306 | self.statusbar.SetFieldsCount(2) |
| 307 | self.statusbar.SetStatusWidths([100, -1]) |
| 308 | |
| 309 | self.Bind(wx.EVT_CHAR_HOOK, self.kbEvent) |
| 310 | |
| 311 | self.SetSizer(mainSizer) |
| 312 | self.SetStatusBar(self.statusbar) |
| 313 | self.Layout() |
| 314 | self.SetMinSize(self.GetSize()) |
| 315 | |
| 316 | self.Center(wx.BOTH) |
| 317 | |
| 318 | def OnChargeExportChange(self, event): |
| 319 | EsiSettings.getInstance().set('exportCharges', self.exportChargesCb.GetValue()) |
nothing calls this directly
no test coverage detected