10 #include <QItemSelection>
11 #include <QTableWidget>
14 #include "ui_view_units.h"
Table widget to display units view (F2)
void update_buttons(const QItemSelection &sl)
Updates the buttons according to the item selection sl in the units table.
void init()
Initializes place in tab for units view.
void disband_units()
Disband selected units.
void update_waiting()
Function to load the units waiting table.
void update_view()
Refresh all widgets for units view.
void update_units()
Updates the units table.
void find_nearest()
Find nearest selected unit, closest units view when button is clicked.
units_view()
Constructor for units view.
void upgrade_units()
Upgrade selected units.
void selection_changed(const QItemSelection &sl, const QItemSelection &ds)
Action for selection changed in units view.
~units_view()
Destructor for units view.
Structure of data for the Units View.
const struct unit_type * type
Structure of unit waiting data for the Units View.
const struct unit_type * type
const struct unit_type * utype
std::vector< unit_waiting_entry > get_units_waiting_data()
Returns an array of units subject to unitwaittime.
std::vector< unit_view_entry > get_units_view_data()
Returns an array of units data.
void units_view_dialog_update(void *unused)
Update the units view.
void popdown_units_view()
Closes units view.
struct unit * find_nearest_unit(const struct unit_type *utype, struct tile *ptile)
Function to help us find the nearest unit.