diff --git a/.gitattributes b/.gitattributes index 9d902ab..b8f1dae 100644 --- a/.gitattributes +++ b/.gitattributes @@ -166,6 +166,7 @@ invesalius/gui/language_dialog.py -text invesalius/gui/task_exporter.py -text invesalius/gui/task_generic.py -text invesalius/gui/task_importer.py -text +invesalius/gui/task_navigator.py -text invesalius/gui/task_slice.py -text invesalius/gui/task_surface.py -text invesalius/gui/task_tools.py -text diff --git a/invesalius/gui/task_navigator.py b/invesalius/gui/task_navigator.py new file mode 100644 index 0000000..0654b7d --- /dev/null +++ b/invesalius/gui/task_navigator.py @@ -0,0 +1,73 @@ +#-------------------------------------------------------------------------- +# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas +# Copyright: (C) 2001 Centro de Pesquisas Renato Archer +# Homepage: http://www.softwarepublico.gov.br +# Contact: invesalius@cti.gov.br +# License: GNU - GPL 2 (LICENSE.txt/LICENCA.txt) +#-------------------------------------------------------------------------- +# Este programa e software livre; voce pode redistribui-lo e/ou +# modifica-lo sob os termos da Licenca Publica Geral GNU, conforme +# publicada pela Free Software Foundation; de acordo com a versao 2 +# da Licenca. +# +# Este programa eh distribuido na expectativa de ser util, mas SEM +# QUALQUER GARANTIA; sem mesmo a garantia implicita de +# COMERCIALIZACAO ou de ADEQUACAO A QUALQUER PROPOSITO EM +# PARTICULAR. Consulte a Licenca Publica Geral GNU para obter mais +# detalhes. +#-------------------------------------------------------------------------- + +import os +import sys + +import wx +#import wx.lib.hyperlink as hl +#import wx.lib.platebtn as pbtn +#import wx.lib.pubsub as ps + +import constants as const +#import gui.dialogs as dlg +#import project as proj + +class TaskPanel(wx.Panel): + """ + This panel works as a "frame", drawing a white margin arround + the panel that really matters (InnerTaskPanel). + """ + def __init__(self, parent): + # note: don't change this class!!! + wx.Panel.__init__(self, parent) + + sizer = wx.BoxSizer(wx.HORIZONTAL) + sizer.Add(InnerTaskPanel(self), 1, wx.EXPAND | wx.GROW | + wx.BOTTOM | wx.RIGHT | wx.LEFT, 7) + sizer.Fit(self) + + self.SetSizer(sizer) + self.Update() + self.SetAutoLayout(1) + +class InnerTaskPanel(wx.Panel): + + def __init__(self, parent): + wx.Panel.__init__(self, parent) + self.SetBackgroundColour(wx.Colour(255,255,255)) + self.SetAutoLayout(1) + + # Bind events + self.__bind_events() + self.__bind_wx_events() + + def __bind_events(self): + """ + Bind pubsube events + """ + # Example: ps.Publisher().subscribe("Test") + pass + + def __bind_wx_events(self): + """ + Bind wx general events + """ + # Example: self.Bind(wx.EVT_BUTTON, self.OnButton) + pass -- libgit2 0.21.2