1 /***************************************************************************
2 fleetview.h - description
4 begin : Sun Mar 10 2002
5 copyright : (C) 2002 by Michael Andreen
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
27 #include <qlineedit.h>
28 #include <qsignalmapper.h>
36 *@author Michael Andreen
38 class FleetView : public QWidget
42 FleetView(const Fleet* fleet, bool friendly, QWidget *parent=0, const char *name=0);
45 void viewFleet(const Fleet* fleet, bool friendly);
54 void fleetChanged(const Fleet*);
57 void unitsChanged(const QString& number);
58 void slotRoidsChanged(const QString& type, int value);
62 void buildUnitTable();
65 QVBoxLayout* m_MainLayout;
66 QGridLayout* m_UnitsLayout;
69 RoidsEditView* m_RoidsEditView;
70 ResourceView* m_ResourceView;
78 std::vector<QString> m_Names;
79 std::map<QString, QLabel*> m_UnitsLabel;
80 std::map<QString, QLineEdit*> m_UnitsEdit;
81 std::map<QString, QLineEdit*> m_UnitsLostSurvivedView;