Commit 50153a5a8ea9e88cac89ce93135764a0ba706965
1 parent
a59c7159
Exists in
master
and in
6 other branches
ADD: Task navigator (empty)
Showing
2 changed files
with
74 additions
and
0 deletions
Show diff stats
.gitattributes
@@ -166,6 +166,7 @@ invesalius/gui/language_dialog.py -text | @@ -166,6 +166,7 @@ invesalius/gui/language_dialog.py -text | ||
166 | invesalius/gui/task_exporter.py -text | 166 | invesalius/gui/task_exporter.py -text |
167 | invesalius/gui/task_generic.py -text | 167 | invesalius/gui/task_generic.py -text |
168 | invesalius/gui/task_importer.py -text | 168 | invesalius/gui/task_importer.py -text |
169 | +invesalius/gui/task_navigator.py -text | ||
169 | invesalius/gui/task_slice.py -text | 170 | invesalius/gui/task_slice.py -text |
170 | invesalius/gui/task_surface.py -text | 171 | invesalius/gui/task_surface.py -text |
171 | invesalius/gui/task_tools.py -text | 172 | invesalius/gui/task_tools.py -text |
@@ -0,0 +1,73 @@ | @@ -0,0 +1,73 @@ | ||
1 | +#-------------------------------------------------------------------------- | ||
2 | +# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas | ||
3 | +# Copyright: (C) 2001 Centro de Pesquisas Renato Archer | ||
4 | +# Homepage: http://www.softwarepublico.gov.br | ||
5 | +# Contact: invesalius@cti.gov.br | ||
6 | +# License: GNU - GPL 2 (LICENSE.txt/LICENCA.txt) | ||
7 | +#-------------------------------------------------------------------------- | ||
8 | +# Este programa e software livre; voce pode redistribui-lo e/ou | ||
9 | +# modifica-lo sob os termos da Licenca Publica Geral GNU, conforme | ||
10 | +# publicada pela Free Software Foundation; de acordo com a versao 2 | ||
11 | +# da Licenca. | ||
12 | +# | ||
13 | +# Este programa eh distribuido na expectativa de ser util, mas SEM | ||
14 | +# QUALQUER GARANTIA; sem mesmo a garantia implicita de | ||
15 | +# COMERCIALIZACAO ou de ADEQUACAO A QUALQUER PROPOSITO EM | ||
16 | +# PARTICULAR. Consulte a Licenca Publica Geral GNU para obter mais | ||
17 | +# detalhes. | ||
18 | +#-------------------------------------------------------------------------- | ||
19 | + | ||
20 | +import os | ||
21 | +import sys | ||
22 | + | ||
23 | +import wx | ||
24 | +#import wx.lib.hyperlink as hl | ||
25 | +#import wx.lib.platebtn as pbtn | ||
26 | +#import wx.lib.pubsub as ps | ||
27 | + | ||
28 | +import constants as const | ||
29 | +#import gui.dialogs as dlg | ||
30 | +#import project as proj | ||
31 | + | ||
32 | +class TaskPanel(wx.Panel): | ||
33 | + """ | ||
34 | + This panel works as a "frame", drawing a white margin arround | ||
35 | + the panel that really matters (InnerTaskPanel). | ||
36 | + """ | ||
37 | + def __init__(self, parent): | ||
38 | + # note: don't change this class!!! | ||
39 | + wx.Panel.__init__(self, parent) | ||
40 | + | ||
41 | + sizer = wx.BoxSizer(wx.HORIZONTAL) | ||
42 | + sizer.Add(InnerTaskPanel(self), 1, wx.EXPAND | wx.GROW | | ||
43 | + wx.BOTTOM | wx.RIGHT | wx.LEFT, 7) | ||
44 | + sizer.Fit(self) | ||
45 | + | ||
46 | + self.SetSizer(sizer) | ||
47 | + self.Update() | ||
48 | + self.SetAutoLayout(1) | ||
49 | + | ||
50 | +class InnerTaskPanel(wx.Panel): | ||
51 | + | ||
52 | + def __init__(self, parent): | ||
53 | + wx.Panel.__init__(self, parent) | ||
54 | + self.SetBackgroundColour(wx.Colour(255,255,255)) | ||
55 | + self.SetAutoLayout(1) | ||
56 | + | ||
57 | + # Bind events | ||
58 | + self.__bind_events() | ||
59 | + self.__bind_wx_events() | ||
60 | + | ||
61 | + def __bind_events(self): | ||
62 | + """ | ||
63 | + Bind pubsube events | ||
64 | + """ | ||
65 | + # Example: ps.Publisher().subscribe("Test") | ||
66 | + pass | ||
67 | + | ||
68 | + def __bind_wx_events(self): | ||
69 | + """ | ||
70 | + Bind wx general events | ||
71 | + """ | ||
72 | + # Example: self.Bind(wx.EVT_BUTTON, self.OnButton) | ||
73 | + pass |