Freeciv21
Develop your civilization from humble roots to a global empire
freeciv Namespace Reference

Namespaces

 detail
 

Classes

class  path
 A path is a succession of moves and actions to go from one location to another. More...
 
class  path_finder
 A path is a succession of moves and actions to go from one location to another. More...
 
class  destination
 Abstraction for path finding destinations. More...
 
class  tile_destination
 A path finding destination that accepts any path leading to a specific tile. More...
 
class  allied_city_destination
 A path finding destination that accepts any allied city. More...
 
class  refuel_destination
 A path finding destination that accepts any tile where one can refuel or, for units with HP loss, not lose HP. More...
 
class  step_constraint
 Allows one to limit the scope a path finding search. More...
 
class  tile_known_constraint
 A constraint that restricts the search to tiles known by the player. More...
 
class  server
 A Freeciv21 server. More...
 
class  map_updates_handler
 Records regions of the map that should be updated. More...
 
class  renderer
 Renders the map on widgets. More...
 
class  layer
 A layer when drawing the map. More...
 
class  layer_abstract_activities
 An abstract class for layers that need sprites for unit activities. More...
 
class  layer_background
 
class  layer_base_flags
 Map layer that draws flags for bases that have EF_SHOW_FLAG set. More...
 
class  layer_city
 
class  layer_city_size
 
class  layer_darkness
 
class  layer_editor
 
class  layer_fog
 
class  layer_goto
 
class  layer_grid
 
class  layer_infrawork
 Draws infrastructure (extras) being placed. More...
 
class  layer_overlays
 
class  layer_roads
 Draws "road" extras on the map. More...
 
class  layer_special
 
class  layer_terrain
 Draws terrain sprites on the map. More...
 
class  layer_units
 Draws units on the map. More...
 
class  layer_water
 
class  layer_workertask
 Draws tasks assigned by cities to autoworkers on the map. More...
 
class  tileset_debugger
 A dialog to perform debugging of the tileset. More...
 
class  tileset_options_dialog
 Lets the user toggle tileset options. More...
 
class  collated_sort_filter_proxy_model
 A sort and filter proxy model supporting string collation. More...
 
class  colorizer
 colors in QPixmap More...
 
class  improvement_seller
 Helper class to safely sell a city improvement. More...
 
class  gui_rect_iterator
 Iterates over all map tiles that intersect with a rectangle in GUI coordinates. More...
 
class  city_icon_widget
 Displays an icon representing a city. More...
 
class  governor_widget
 A widget that lets the user edit governor settings. More...
 
class  upkeep_widget
 Displays the list of items supported by a city (improvements and units). More...
 
class  multi_slider
 A widget that lets the user distribute a fixed number of items across multiple categories. More...
 
class  report_widget
 Widget used to display the demographics, top 5 cities, and travelers' reports. More...
 

Functions

void add_quick_unit_actions (QMenu *menu, const std::vector< unit * > &units)
 Adds a small set of common unit actions to a menu. More...
 

Function Documentation

◆ add_quick_unit_actions()

void freeciv::add_quick_unit_actions ( QMenu *  menu,
const std::vector< unit * > &  units 
)

Adds a small set of common unit actions to a menu.

The menu items will operate on the given units.

Definition at line 119 of file unit_quick_menu.cpp.

Referenced by unit_list_widget::contextMenuEvent(), and freeciv::upkeep_widget::contextMenuEvent().