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);
55 void slotSetResultMode(int i);
58 void fleetChanged(const Fleet*);
61 void unitsChanged(const QString& number);
62 void slotRoidsChanged(const QString& type, int value);
66 void buildUnitTable();
69 QVBoxLayout* m_MainLayout;
70 QGridLayout* m_UnitsLayout;
73 RoidsEditView* m_RoidsEditView;
74 ResourceView* m_ResourceView;
86 std::vector<QString> m_Names;
87 std::map<QString, QLabel*> m_UnitsLabel;
88 std::map<QString, QLineEdit*> m_UnitsEdit;
89 std::map<QString, QLineEdit*> m_UnitsLostSurvivedView;