Mercurial > hg > svcore
comparison base/UnitDatabase.h @ 199:1d789d688f59
* When adding a layer, make it the selected layer on that pane
* More OSC support, including transforms
author | Chris Cannam |
---|---|
date | Fri, 10 Nov 2006 17:45:26 +0000 |
parents | a08718723b20 |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
198:4c5c62784211 | 199:1d789d688f59 |
---|---|
33 public: | 33 public: |
34 static UnitDatabase *getInstance(); | 34 static UnitDatabase *getInstance(); |
35 | 35 |
36 QStringList getKnownUnits() const; | 36 QStringList getKnownUnits() const; |
37 void registerUnit(QString unit); | 37 void registerUnit(QString unit); |
38 | 38 |
39 int getUnitId(QString unit); | 39 /** |
40 * Return the reference id for a given unit name. If registerNew is | |
41 * true and the unit is not known, register it and return its new | |
42 * id. If register is false and the unit is not known, return -1. | |
43 */ | |
44 int getUnitId(QString unit, bool registerNew = true); | |
45 | |
40 QString getUnitById(int id); | 46 QString getUnitById(int id); |
41 | 47 |
42 signals: | 48 signals: |
43 void unitDatabaseChanged(); | 49 void unitDatabaseChanged(); |
44 | 50 |