From aa5a73bc121faae176b9fee5b75e8e19fbe8d01b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 19 Jan 2009 19:31:42 -0500 Subject: Cleaned up Badge widget --- sigmodr/BadgeUI.cpp | 4 +- sigmodr/gui/badge.ui | 233 ++++++++++++++++++++++++++------------------------- 2 files changed, 124 insertions(+), 113 deletions(-) diff --git a/sigmodr/BadgeUI.cpp b/sigmodr/BadgeUI.cpp index 4d1e9eb5..8ea16c4a 100644 --- a/sigmodr/BadgeUI.cpp +++ b/sigmodr/BadgeUI.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,6 +27,8 @@ // Qt includes #include +// TODO: Use QTableView with delegates for stat editing + Sigmodr::BadgeUI::BadgeUI(Sigmod::Badge* badge, QWidget* parent) : ObjectUI(parent) { diff --git a/sigmodr/gui/badge.ui b/sigmodr/gui/badge.ui index 573cf81d..564be478 100644 --- a/sigmodr/gui/badge.ui +++ b/sigmodr/gui/badge.ui @@ -1,12 +1,22 @@ formBadge - - - - - Name + + + + + Name: + + Qt::AlignRight|Qt::AlignVCenter + + + varName + + + + + The name of the badge @@ -16,22 +26,26 @@ The name of the badge - - - - - true - - - - + + true + - - - - Obey Level + + + + Obey Level: + + + Qt::AlignRight|Qt::AlignVCenter + + varObey + + + + + The maximum level team members can be and always obey the player @@ -41,118 +55,106 @@ The maximum level team members can be and always obey the player - - - - - 0 - - - - + + 0 + + + + + + + Face sprite: + + + Qt::AlignRight|Qt::AlignVCenter + + + varFace + + + + + + + The sprite used before the badge is obtained + + + The sprite used before the badge is obtained + + + The sprite used before the badge is obtained + - - - - Images + + + + Badge sprite: + + + Qt::AlignRight|Qt::AlignVCenter + + varBadge + + + + + - Sprites that represent the badges + The sprite used after the badge is obtained - Sprites that represent the badges + The sprite used after the badge is obtained - Sprites that represent the badges - - - - - - The sprite used before the badge is obtained - - - The sprite used before the badge is obtained - - - The sprite used before the badge is obtained - - - - - - - The sprite used after the badge is obtained - - - The sprite used after the badge is obtained - - - The sprite used after the badge is obtained - - - - + The sprite used after the badge is obtained + - - - - Stat + + + + Stat: + + + Qt::AlignRight|Qt::AlignVCenter + + + varStat + + + + - Stat modifiers for local battles when the badge is obtained + Stat multiplier for local battles when the badge is obtained - Stat modifiers for local battles when the badge is obtained + Stat multiplier for local battles when the badge is obtained - Stat modifiers for local battles when the badge is obtained - - - - - - Stat multiplier shown - - - Stat multiplier shown - - - Stat multiplier shown - - - - - - - Multiplier - - - The multiplier for the stat - - - The multiplier for the stat - - - The multiplier for the stat - - - - - - Sigmodr::FractionWidget::Improper - - - - - - - + Stat multiplier for local battles when the badge is obtained + + + + + + + The multiplier for the stat + + + The multiplier for the stat + + + The multiplier for the stat + + + Sigmodr::FractionWidget::Improper + - + Qt::Vertical @@ -194,6 +196,13 @@
FractionWidget.h
+ + varName + varObey + varFace + varBadge + varStat +
-- cgit