summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a448b6a)
Write most function names fully
Add BR 194 loco
locomotive 37844
{
name "BR 50";
locomotive 37844
{
name "BR 50";
function 3 "sfx";
function 5 "whst";
};
function 3 "sfx";
function 5 "whst";
};
locomotive 33961
{
name "BR 86";
locomotive 33961
{
name "BR 86";
- function 0 "lght";
- function 2 "tlx";
+ function 0 "light";
+ function 2 "telex";
};
locomotive 36850
{
name "BR 185";
};
locomotive 36850
{
name "BR 185";
+ function 0 "light";
+};
+
+locomotive 37225
+{
+ name "BR 194";
+ function 0 "light";
const map<unsigned, string> &funcs = train.get_locomotive().get_type().get_functions();
unsigned x = 10;
const map<unsigned, string> &funcs = train.get_locomotive().get_type().get_functions();
unsigned x = 10;
- for(map<unsigned, string>::const_iterator i=funcs.begin(); i!=funcs.end(); ++i, x+=35)
+ for(map<unsigned, string>::const_iterator i=funcs.begin(); i!=funcs.end(); ++i, x+=36)
{
string fname = i->second;
fname[0] = toupper(fname[0]);
GLtk::Toggle *tgl;
add(*(tgl=new GLtk::Toggle(res)));
tgl->set_text(fname);
{
string fname = i->second;
fname[0] = toupper(fname[0]);
GLtk::Toggle *tgl;
add(*(tgl=new GLtk::Toggle(res)));
tgl->set_text(fname);
- tgl->set_geometry(GLtk::Geometry(x, geom.h-85, 35, 27));
+ tgl->set_geometry(GLtk::Geometry(x, geom.h-85, 36, 27));
tgl->set_value(train.get_locomotive().get_function(i->first));
tgl->signal_toggled.connect(sigc::bind(sigc::mem_fun(this, &TrainPanel::func_toggled), i->first));
tgl->set_value(train.get_locomotive().get_function(i->first));
tgl->signal_toggled.connect(sigc::bind(sigc::mem_fun(this, &TrainPanel::func_toggled), i->first));