Package horizons :: Package gui :: Package tabs :: Module productiontabs :: Class LumberjackOverviewTab
[hide private]
[frames] | no frames]

Class LumberjackOverviewTab

source code

tabinterface.TabInterface --+        
      overviewtab.OverviewTab --+    
            ProductionOverviewTab --+

Same as ProductionOverviewTab but add a button to fill range with trees.

Instance Methods [hide private]
Initialize widget after it was loaded.
source code
update_data(self) source code
    Inherited from ProductionOverviewTab
__init__(self, instance) source code
_add_resource_icons(self, container, resources, marker=False) source code
_center_production_line(self, parent_container, production)
Centers in/out production line display for amount of resources each.
source code
_cleanup(self) source code
_draw_pretty_arrows(self, parent_container, amount, x=0, y=0, out=False)
Draws incoming or outgoing arrows for production line container.
source code
_refresh_utilization(self) source code
_set_resource_amounts(self, container, production) source code
destruct_building(self) source code
List all possible productions of a buildings sorted by production line id.
source code
Hides the current widget
source code
on_instance_removed(self) source code
This function is called by the TabWidget to redraw the widget.
source code
Shows the current widget
source code
    Inherited from overviewtab.OverviewTab
Call this for tabs with stances.
source code
    Inherited from tabinterface.TabInterface
_get_position(self) source code
Schedule a refresh soon, dropping all other refresh request, that appear until then.
source code
_set_position(self, value)
Sets the widgets position to tuple *value*
source code
Gets the widget and sets up some attributes and helper.
source code
Called when a tab is shown, acts as hook for lazy loading
source code
Loads the filename in self.widget.
source code
is_visible(self) source code
Class Methods [hide private]
    Inherited from tabinterface.TabInterface
shown_for(cls, instance)
Method for fine-grained control of which tabs to show.
source code
Class Variables [hide private]
    Inherited from ProductionOverviewTab
  ACTIVE_PRODUCTION_ANIM_DIR = "content/gui/images/animations/co...
  ARROWHEAD_BOTTOM = "content/gui/icons/templates/production/pro...
  ARROWHEAD_CONNECT_DOWN = "content/gui/icons/templates/producti...
  ARROWHEAD_CONNECT_UP = "content/gui/icons/templates/production...
  ARROWHEAD_MID = "content/gui/icons/templates/production/produc...
  ARROWHEAD_TOP = "content/gui/icons/templates/production/produc...
  ARROW_BOTTOM = "content/gui/icons/templates/production/product...
  ARROW_CONNECT_DOWN = "content/gui/icons/templates/production/p...
  ARROW_CONNECT_UP = "content/gui/icons/templates/production/pro...
  ARROW_MID = "content/gui/icons/templates/production/production...
  ARROW_TOP = "content/gui/icons/templates/production/production...
  BUTTON_BACKGROUND = "content/gui/images/buttons/msg_button.png"
  ICON_HEIGHT = ImageFillStatusButton.CELL_SIZE [1]+ ImageFillSt...
  helptext = LazyT("Production overview")
  production_line_gui_xml = 'overview_productionline.xml'
  widget = 'overview_productionbuilding.xml'
    Inherited from overviewtab.OverviewTab
  has_stance = False
  icon_path = 'icons/tabwidget/common/building_overview'
    Inherited from tabinterface.TabInterface
  lazy_loading = True
  position = property(_get_position, _set_position)
  scheduled_update_delay = 0.4
Method Details [hide private]


source code 

Initialize widget after it was loaded.

Override this in your subclass if you have custom post-load code.

Overrides: tabinterface.TabInterface.init_widget
(inherited documentation)