Skip to content

Commit

Permalink
Remove functionality related to auto HTML export (pyfa-org#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Apr 2, 2017
1 parent f9ec79c commit 92722d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
24 changes: 4 additions & 20 deletions gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ class PFHTMLExportPref(PreferenceView):
title = "HTML Export"
desc = ("HTML Export (File > Export HTML) allows you to export your entire fitting "
"database into an HTML file at the specified location. This file can be "
"used in the in-game browser to easily open and import your fits, or used "
"in a regular web browser to open them at NULL-SEC.com or Osmium.")
desc2 = ("Enabling automatic exporting will update the HTML file after any change "
"to a fit is made. Under certain circumstance, this may cause performance issues.")
desc4 = ("Export Fittings in a minmal HTML Version, just containing the Fittingslinks "
"without any visual styling or javscript features")
"used to easily open your fits in a web-based fitting program")
desc4 = ("Export Fittings in a minimal HTML Version, just containing the fittings links "
"without any visual styling")

def populatePanel(self, panel):
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
Expand Down Expand Up @@ -55,21 +52,11 @@ def populatePanel(self, panel):
self.fileSelectButton.Bind(wx.EVT_BUTTON, self.selectHTMLExportFilePath)
mainSizer.Add(self.fileSelectButton, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)

self.stDesc2 = wx.StaticText(panel, wx.ID_ANY, self.desc2, wx.DefaultPosition, wx.DefaultSize, 0)
self.stDesc2.Wrap(dlgWidth - 50)
mainSizer.Add(self.stDesc2, 0, wx.ALL, 5)

self.exportEnabled = wx.CheckBox(panel, wx.ID_ANY, u"Enable automatic HTML export", wx.DefaultPosition,
wx.DefaultSize, 0)
self.exportEnabled.SetValue(self.HTMLExportSettings.getEnabled())
self.exportEnabled.Bind(wx.EVT_CHECKBOX, self.OnExportEnabledChange)
mainSizer.Add(self.exportEnabled, 0, wx.ALL | wx.EXPAND, 5)

self.stDesc4 = wx.StaticText(panel, wx.ID_ANY, self.desc4, wx.DefaultPosition, wx.DefaultSize, 0)
self.stDesc4.Wrap(dlgWidth - 50)
mainSizer.Add(self.stDesc4, 0, wx.ALL, 5)

self.exportMinimal = wx.CheckBox(panel, wx.ID_ANY, u"Enable minimal export Format", wx.DefaultPosition,
self.exportMinimal = wx.CheckBox(panel, wx.ID_ANY, u"Enable minimal format", wx.DefaultPosition,
wx.DefaultSize, 0)
self.exportMinimal.SetValue(self.HTMLExportSettings.getMinimalEnabled())
self.exportMinimal.Bind(wx.EVT_CHECKBOX, self.OnMinimalEnabledChange)
Expand All @@ -90,9 +77,6 @@ def selectHTMLExportFilePath(self, event):
self.dirtySettings = True
self.setPathLinkCtrlValues(self.HTMLExportSettings.getPath())

def OnExportEnabledChange(self, event):
self.HTMLExportSettings.setEnabled(self.exportEnabled.GetValue())

def OnMinimalEnabledChange(self, event):
self.HTMLExportSettings.setMinimalEnabled(self.exportMinimal.GetValue())

Expand Down
3 changes: 0 additions & 3 deletions gui/builtinViews/fittingView.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from gui.builtinViewColumns.state import State
from gui.bitmapLoader import BitmapLoader
import gui.builtinViews.emptyView
from gui.utils.exportHtml import exportHtml
from logbook import Logger
from gui.chromeTabs import EVT_NOTEBOOK_PAGE_CHANGED

Expand Down Expand Up @@ -483,8 +482,6 @@ def fitChanged(self, event):
self.populate(self.mods)
self.refresh(self.mods)

exportHtml.getInstance().refreshFittingHtml()

self.Show(self.activeFitID is not None and self.activeFitID == event.fitID)
except wx._core.PyDeadObjectError:
pyfalog.error("Caught dead object")
Expand Down
7 changes: 0 additions & 7 deletions service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def getInstance(cls):

def __init__(self):
serviceHTMLExportDefaultSettings = {
"enabled": False,
"path" : config.pyfaPath + os.sep + 'pyfaFits.html',
"minimal": False
}
Expand All @@ -272,12 +271,6 @@ def __init__(self):
serviceHTMLExportDefaultSettings
)

def getEnabled(self):
return self.serviceHTMLExportSettings["enabled"]

def setEnabled(self, enabled):
self.serviceHTMLExportSettings["enabled"] = enabled

def getMinimalEnabled(self):
return self.serviceHTMLExportSettings["minimal"]

Expand Down

0 comments on commit 92722d4

Please sign in to comment.