mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added the code that will load and populate the Tank Info
Added the code that will load and populate the Tank Info ComboBox that`s used by the user to select the Cylinder description. Code curerntly implements more than the GTK version since the GTK version of it was a plain-list, this one is a table based model that can be used in ListViews ( like we use now in the ComboBox ) but also in TableViews ( if there`s a need in the future to see everything that`s catalogued in the Tank Info struct. ) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
db180bf46e
commit
115ee47bfc
7 changed files with 143 additions and 7 deletions
13
dive.h
13
dive.h
|
@ -697,6 +697,19 @@ void get_gas_string(int o2, int he, char *buf, int len);
|
|||
|
||||
struct event *get_next_event(struct event *event, char *name);
|
||||
|
||||
|
||||
/* this struct holds the information that
|
||||
* describes the cylinders of air.
|
||||
* it is a global variable initialized in equipment.c
|
||||
* used to fill the combobox in the add/edit cylinder
|
||||
* dialog
|
||||
*/
|
||||
|
||||
struct tank_info {
|
||||
const char *name;
|
||||
int cuft, ml, psi, bar;
|
||||
};
|
||||
|
||||
#ifdef DEBUGFILE
|
||||
extern char *debugfilename;
|
||||
extern FILE *debugfile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue