File indexing completed on 2024-07-21 06:44:29

0001 /*
0002     SPDX-FileCopyrightText: 2003 Russell Steffen <rsteffen@bayarea.net>
0003     SPDX-FileCopyrightText: 2003 Stephan Zehetner <s.zehetner@nevox.org>
0004     SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com>
0005     SPDX-FileCopyrightText: 2006 Inge Wallin <inge@lysator.liu.se>
0006     SPDX-FileCopyrightText: 2006 Pierre Ducroquet <pinaraf@gmail.com>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef KONQUEST_FLEETDLG_H
0012 #define KONQUEST_FLEETDLG_H
0013 
0014 #include <QDialog>
0015 
0016 #include "fleet.h"
0017 
0018 class QTableWidget;
0019 
0020 
0021 class FleetDlg : public QDialog
0022 {
0023 public: 
0024     FleetDlg( QWidget *parent,
0025               const AttackFleetList &fleets,
0026               const AttackFleetList &newFleets,
0027               const AttackFleetList &standingOrders );
0028     AttackFleetList *uncheckedFleets();
0029 
0030     QSize sizeHint() const override;
0031 
0032 private:
0033     void update();
0034     void setupTable();
0035 
0036     AttackFleetList  m_newFleetList;
0037     AttackFleetList  m_standingOrders;
0038     AttackFleetList  m_fleetList;
0039     QTableWidget     *m_fleetTable;
0040 };
0041 
0042 #endif // KONQUEST_FLEETDLG_H