fyi to define your parameter,
1. add a new unique value to definition.h's STDMAP_* enumeration, while leaving STDMAP_N_VALUES at the end. this gives us a numerical value instead of a lookup. the 'dictionary' uses this.
Code:
enum {
STDMAP_LBLM = 1,
STDMAP_RBLM,
STDMAP_LINT,
...
STDMAP_TPS,
STDMAP_FOO,
STDMAP_N_VALUES
};
2. add a new case to defintion::name_of_parameter. this translates the above enumeration to a string used both in the user interface (so the user knows what they're trying to match up to), and the dictionary.txt file.
Code:
case STDMAP_KNOCKCOUNT:
return QString("Knock Counter");
break;
case STDMAP_TPS:
return QString("TPS%");
break;
case STDMAP_FOO:
return QString("Foo");
break;
3. add a line starting with Foo to dictionary.txt (you need to redefine Foo here as well, since the first field doesn't actually count for a lookup value), these are not case sensitive:
Code:
Foo,FOO,bar,etc,other definitions,blahblahblah
4. add a definition to automatic filter detection function in mainwindow.cpp (MainWindow::populate_filters()), see data_filter.h for possible filter operations.
Code:
add_filter(definition::STDMAP_FOO,data_filter::GREATERTHAN,1.2345);
Bookmarks