QTfrontend/selectWeapon.h
changeset 694 436045756181
parent 683 57d624f71e65
child 695 34a93d123712
--- a/QTfrontend/selectWeapon.h	Mon Jan 07 15:44:13 2008 +0000
+++ b/QTfrontend/selectWeapon.h	Tue Jan 08 20:32:17 2008 +0000
@@ -24,6 +24,8 @@
 
 class QGridLayout;
 class WeaponItem;
+class QLineEdit;
+class QSettings;
 
 class SelWeaponItem : public QWidget
 {
@@ -46,14 +48,22 @@
  public:
   SelWeaponWidget(int numItems, QWidget* parent=0);
   QString getWeaponsString() const;
-  void setWeapons(QString ammo);
+  QStringList getWeaponNames() const;
 
  public slots:
   void setDefault();
+  void setWeapons(const QString& ammo);
+  void setWeaponsName(const QString& name);
   void save();
 
  private:
   QString currentState;
+  QString curWeaponsName;
+
+  QLineEdit* m_name;
+
+  QSettings* wconf;
+
   const int m_numItems;
   int operator [] (unsigned int weaponIndex) const;