Hook up adding a weightsystem

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-05-01 14:30:34 -07:00
parent 5c2ce0ac20
commit 04e59a0e1c
5 changed files with 34 additions and 10 deletions

View file

@ -83,6 +83,23 @@ void MainTab::on_delCylinder_clicked()
{
}
void MainTab::on_addWeight_clicked()
{
/* this needs a dialog - right now we just fill in a dummy */
weightsystem_t *newWeightsystem = (weightsystem_t *) malloc(sizeof(weightsystem_t));
newWeightsystem->description = "Just testing";
newWeightsystem->weight.grams = 15000;
weightModel->add(newWeightsystem);
}
void MainTab::on_editWeight_clicked()
{
}
void MainTab::on_delWeight_clicked()
{
}
void MainTab::reload()
{
cylindersModel->update();