def __init__(self, parent, optionsDlg, mainControl):
        """
        Called when "Options" dialog is opened to show the panel.
        Transfer here all options from the configuration file into the
        text fields, check boxes, ...
        """
        PluginOptionsPanel.__init__(self, parent, optionsDlg)
        self.mainControl = mainControl

        #         pt = self.mainControl.getConfig().getboolean("main",
        #                 "footnotes_as_wikiwords", False)
        self.cbFootnotesAsWws = wx.CheckBox(self, -1,
                                            _(u"Footnotes as wiki words"))
        #         self.cbFootnotesAsWws.SetValue(pt)

        #         pt = self.app.getGlobalConfig().get("main", "plugin_graphViz_exeDot",
        #                 u"dot.exe")
        #         self.tfDot = wx.TextCtrl(self, -1, pt)

        mainsizer = wx.FlexGridSizer(1, 1, 0, 0)
        mainsizer.AddGrowableCol(0, 1)

        mainsizer.Add(self.cbFootnotesAsWws, 1, wx.ALL | wx.EXPAND, 5)

        self.addOptionEntry("footnotes_as_wikiwords", self.cbFootnotesAsWws,
                            "b")

        #         mainsizer.Add(wx.StaticText(self, -1, _(u"Name of dot executable:")), 0,
        #                 wx.ALL | wx.EXPAND, 5)
        #         mainsizer.Add(self.tfDot, 1, wx.ALL | wx.EXPAND, 5)

        self.SetSizer(mainsizer)
        self.Fit()
        self.transferOptionsToDialog()
    def __init__(self, parent, optionsDlg, mainControl):
        """
        Called when "Options" dialog is opened to show the panel.
        Transfer here all options from the configuration file into the
        text fields, check boxes, ...
        """
        PluginOptionsPanel.__init__(self, parent, optionsDlg)
        self.mainControl = mainControl

#         pt = self.mainControl.getConfig().getboolean("main",
#                 "footnotes_as_wikiwords", False)
        self.cbFootnotesAsWws = wx.CheckBox(self, -1,
                _("Footnotes as wiki words"))
#         self.cbFootnotesAsWws.SetValue(pt)

#         pt = self.app.getGlobalConfig().get("main", "plugin_graphViz_exeDot",
#                 u"dot.exe")
#         self.tfDot = wx.TextCtrl(self, -1, pt)

        mainsizer = wx.FlexGridSizer(1, 1, 0, 0)
        mainsizer.AddGrowableCol(0, 1)

        mainsizer.Add(self.cbFootnotesAsWws, 1, wx.ALL | wx.EXPAND, 5)
        
        self.addOptionEntry("footnotes_as_wikiwords",
                self.cbFootnotesAsWws, "b")


#         mainsizer.Add(wx.StaticText(self, -1, _(u"Name of dot executable:")), 0,
#                 wx.ALL | wx.EXPAND, 5)
#         mainsizer.Add(self.tfDot, 1, wx.ALL | wx.EXPAND, 5)

        self.SetSizer(mainsizer)
        self.Fit()
        self.transferOptionsToDialog()
    def __init__(self, parent, optionsDlg, app):
        """
        Called when "Options" dialog is opened to show the panel.
        Transfer here all options from the configuration file into the
        text fields, check boxes, ...
        """
        PluginOptionsPanel.__init__(self, parent, optionsDlg)

        mainsizer = wx.FlexGridSizer(5, 3, 0, 0)
        mainsizer.AddGrowableCol(1, 1)

        self.tfFacename = wx.TextCtrl(self, -1)
        facenameButton = wx.Button(self, -1, _("..."))
        facenameButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _("Node font name:")), 0,
                wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(self.tfFacename, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(facenameButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_nodeFacename",
                self.tfFacename, "t")
        
        self.Bind(wx.EVT_BUTTON, self.OnSelectFaceNode, id=facenameButton.GetId())


        ctl = wx.TextCtrl(self, -1)
        mainsizer.Add(wx.StaticText(self, -1, _("Node font size:")), 0,
                wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add((0, 0), 1)

        self.addOptionEntry("plugin_graphVizStructure_nodeFontsize", ctl, "i0+")


        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _("..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _("Node border color:")), 0,
                wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_nodeBorderColor", ctl,
                "color0", colorButton)


        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _("..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _("Node background color:")), 0,
                wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_nodeBgColor", ctl,
                "color0", colorButton)


        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _("..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _("Edge color:")), 0,
                wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_edgeColor", ctl,
                "color0", colorButton)

        self.SetSizer(mainsizer)
        self.Fit()
        
        self.mainControl = optionsDlg.getMainControl()
        self.transferOptionsToDialog(self.mainControl.getConfig())
    def __init__(self, parent, optionsDlg, app):
        """
        Called when "Options" dialog is opened to show the panel.
        Transfer here all options from the configuration file into the
        text fields, check boxes, ...
        """
        PluginOptionsPanel.__init__(self, parent, optionsDlg)

        mainsizer = wx.FlexGridSizer(5, 3, 0, 0)
        mainsizer.AddGrowableCol(1, 1)

        self.tfFacename = wx.TextCtrl(self, -1)
        facenameButton = wx.Button(self, -1, _(u"..."))
        facenameButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _(u"Node font name:")), 0,
                      wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(self.tfFacename, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(facenameButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM,
                      5)

        self.addOptionEntry("plugin_graphVizStructure_nodeFacename",
                            self.tfFacename, "t")

        wx.EVT_BUTTON(self, facenameButton.GetId(), self.OnSelectFaceNode)

        ctl = wx.TextCtrl(self, -1)
        mainsizer.Add(wx.StaticText(self, -1, _(u"Node font size:")), 0,
                      wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add((0, 0), 1)

        self.addOptionEntry("plugin_graphVizStructure_nodeFontsize", ctl,
                            "i0+")

        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _(u"..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _(u"Node border color:")), 0,
                      wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_nodeBorderColor", ctl,
                            "color0", colorButton)

        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _(u"..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _(u"Node background color:")), 0,
                      wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_nodeBgColor", ctl,
                            "color0", colorButton)

        ctl = wx.TextCtrl(self, -1)
        colorButton = wx.Button(self, -1, _(u"..."))
        colorButton.SetMinSize((20, -1))

        mainsizer.Add(wx.StaticText(self, -1, _(u"Edge color:")), 0,
                      wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(ctl, 1, wx.ALL | wx.EXPAND, 5)
        mainsizer.Add(colorButton, 0, wx.ALL | wx.EXPAND | wx.ALIGN_BOTTOM, 5)

        self.addOptionEntry("plugin_graphVizStructure_edgeColor", ctl,
                            "color0", colorButton)

        self.SetSizer(mainsizer)
        self.Fit()

        self.mainControl = optionsDlg.getMainControl()
        self.transferOptionsToDialog(self.mainControl.getConfig())