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 slotViewTickRange(int min = -1 , int max = -1);
57 void fleetChanged(const Fleet*);
60 void unitsChanged(const QString& number);
61 void slotRoidsChanged(const QString& type, int value);
65 void buildUnitTable();
68 QVBoxLayout* m_MainLayout;
69 QGridLayout* m_UnitsLayout;
72 RoidsEditView* m_RoidsEditView;
73 ResourceView* m_ResourceView;
84 std::vector<QString> m_Names;
85 std::map<QString, QLabel*> m_UnitsLabel;
86 std::map<QString, QLineEdit*> m_UnitsEdit;
87 std::map<QString, QLineEdit*> m_UnitsLostSurvivedView;