Package horizons :: Package gui :: Package tabs :: Module barrackstabs :: Class BarracksTab
[hide private]
[frames] | no frames]

Class BarracksTab

source code

      tabinterface.TabInterface --+            
            overviewtab.OverviewTab --+        
boatbuildertabs.ProducerOverviewTabBase --+    
         boatbuildertabs.UnitbuilderTabBase --+

Instance Methods [hide private]
    Inherited from boatbuildertabs.UnitbuilderTabBase
Hides the current widget
source code
This function is called by the TabWidget to redraw the widget.
source code
Shows the current widget
source code
show_production_is_active_container(self, container_active, container_inactive, progress_container, cancel_container, production_lines)
Show the container containing the active production.
source code
show_production_is_inactive_container(self, container_inactive, progress_container, cancel_container, container_active)
Hides all information on progress etc, and displays something to signal that the production is inactive.
source code
update_buttons(self, container_active, cancel_container)
Show the correct active and inactive buttons, update cancel button
source code
update_needed_resources(self, needed_res_container)
Update needed resources
source code
update_production_is_active_container(self, progress_container, container_active, cancel_container, production_lines)
Update the active production container.
source code
update_progress(self, progress_container)
Update displayed progress
source code
update_queue(self, container_active)
Update the queue display
source code
update_unit_icon(self, container_active, produced_unit_id)
Update the icon displaying the unit that is being built.
source code
    Inherited from boatbuildertabs.ProducerOverviewTabBase
The current instance's Producer compontent.
source code
    Inherited from overviewtab.OverviewTab
__init__(self, instance, widget=None, icon_path=None) source code
Call this for tabs with stances.
source code
Initialize widget after it was loaded.
source code
on_instance_removed(self) 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]
  widget = 'barracks.xml'
  helptext = LazyT("Barracks overview")
  UNIT_THUMBNAIL = "content/gui/icons/thumbnails/{type_id}.png"
  UNIT_PREVIEW_IMAGE = "content/gui/images/objects/groundunit/11...
    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
Class Variable Details [hide private]