Freeciv21
Develop your civilization from humble roots to a global empire
page_scenario.h
Go to the documentation of this file.
1 /**************************************************************************
2  /\___/\ Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors.
3  ( o o ) This file is part of Freeciv21. Freeciv21 is free software:
4 === v === you can redistribute it and/or modify it under the terms
5  ) ( of the GNU General Public License as published by the Free
6  ooooo Software Foundation, either version 3 of the License, or (at
7  your option) any later version. You should have received a copy
8  of the GNU General Public License along with Freeciv21.
9  If not, see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 #include "ui_page_scenario.h"
14 #include <QWidget>
15 class fc_client;
16 
17 class page_scenario : public QWidget {
18  Q_OBJECT
19 public:
20  page_scenario(QWidget *, fc_client *);
21  ~page_scenario() override;
22  void update_scenarios_page();
23 private slots:
24  void slot_selection_changed(const QItemSelection &,
25  const QItemSelection &);
26  void browse_scenarios();
27  void start_scenario();
28 
29 private:
31  Ui::FormPageScenario ui;
32  QString current_file;
33 };
~page_scenario() override
void update_scenarios_page()
Gets scenarios list and updates it in TableWidget = scenarios_load.
fc_client * king
Definition: page_scenario.h:30
Ui::FormPageScenario ui
Definition: page_scenario.h:31
void start_scenario()
Starts game from chosen scenario - chosen_file (save or scenario)
page_scenario(QWidget *, fc_client *)
void browse_scenarios()
Browse scenarios directory.
QString current_file
Definition: page_scenario.h:32
void slot_selection_changed(const QItemSelection &, const QItemSelection &)