Freeciv21
Develop your civilization from humble roots to a global empire
governor_widget.cpp File Reference
#include "widgets/city/governor_widget.h"
#include "fc_types.h"
#include "governor.h"
#include "cm.h"
#include <QSlider>
#include <QTimer>
+ Include dependency graph for governor_widget.cpp:

Go to the source code of this file.

Namespaces

 freeciv
 

Macros

#define get_output(name, O_TYPE)
 
#define sync_output(name, O_TYPE)
 

Macro Definition Documentation

◆ get_output

#define get_output (   name,
  O_TYPE 
)
Value:
params.minimal_surplus[O_TYPE] = ui.name##_surplus->value(); \
params.factor[O_TYPE] = ui.name##_priority->value();

◆ sync_output

#define sync_output (   name,
  O_TYPE 
)
Value:
ui.name##_surplus->setValue(params.minimal_surplus[O_TYPE]); \
ui.name##_priority->setValue(params.factor[O_TYPE]);