equal
deleted
inserted
replaced
54 QStringList getWeaponNames() const; |
54 QStringList getWeaponNames() const; |
55 |
55 |
56 public slots: |
56 public slots: |
57 void setDefault(); |
57 void setDefault(); |
58 void setWeapons(const QString& ammo); |
58 void setWeapons(const QString& ammo); |
|
59 //sets the name of the current set |
59 void setWeaponsName(const QString& name); |
60 void setWeaponsName(const QString& name); |
60 void deleteWeaponsName(); |
61 void deleteWeaponsName(); |
61 void newWeaponsName(); |
62 void newWeaponsName(); |
62 void save(); |
63 void save(); |
63 void copy(); |
64 void copy(); |
65 signals: |
66 signals: |
66 void weaponsChanged(); |
67 void weaponsChanged(); |
67 void weaponsDeleted(); |
68 void weaponsDeleted(); |
68 |
69 |
69 private: |
70 private: |
|
71 //the name of the current weapon set |
70 QString curWeaponsName; |
72 QString curWeaponsName; |
71 |
73 |
72 QLineEdit* m_name; |
74 QLineEdit* m_name; |
73 |
75 |
|
76 //storage for all the weapons sets |
74 QSettings* wconf; |
77 QSettings* wconf; |
75 |
78 |
76 const int m_numItems; |
79 const int m_numItems; |
77 int operator [] (unsigned int weaponIndex) const; |
80 int operator [] (unsigned int weaponIndex) const; |
78 |
81 |
79 typedef QList<SelWeaponItem*> ItemsList; |
82 typedef QList<SelWeaponItem*> ItemsList; |
80 typedef QMap<int, ItemsList> twi; |
83 typedef QMap<int, ItemsList> twi; |
81 twi weaponItems; |
84 twi weaponItems; |
|
85 //layout element for each tab: |
82 QGridLayout* p1Layout; |
86 QGridLayout* p1Layout; |
83 QGridLayout* p2Layout; |
87 QGridLayout* p2Layout; |
84 QGridLayout* p3Layout; |
88 QGridLayout* p3Layout; |
85 QGridLayout* p4Layout; |
89 QGridLayout* p4Layout; |
86 }; |
90 }; |