Freeciv21
Develop your civilization from humble roots to a global empire
page_load.h
Go to the documentation of this file.
1 /**************************************************************************
2  /\ ___ /\ Copyright (c) 1996-2020 FREECIV 21 and Freeciv
3  ( o o ) contributors. This file is part of Freeciv21.
4  \ >#< / Freeciv21 is free software: you can redistribute it
5  / \ and/or modify it under the terms of the GNU
6  / \ ^ General Public License as published by the Free
7 | | // Software Foundation, either version 3 of the License,
8  \ / // or (at your option) any later version.
10  GNU General Public License along with Freeciv21.
11  If not, see https://www.gnu.org/licenses/.
12 **************************************************************************/
13 #pragma once
14 
15 #include "ui_page_load.h"
16 #include <QWidget>
17 class fc_client;
18 
19 class page_load : public QWidget {
20  Q_OBJECT
21 public:
22  page_load(QWidget *, fc_client *);
23  ~page_load() override;
24  void update_load_page();
25 private slots:
26  void slot_selection_changed(const QItemSelection &,
27  const QItemSelection &);
28  void state_preview();
29  void browse_saves();
30 
31 private:
32  void start_from_save();
34  Ui::FormPageLoad ui;
35  QString current_file;
36 };
void start_from_save()
Starts game from chosen save - chosen_file (save or scenario)
Definition: page_load.cpp:130
void slot_selection_changed(const QItemSelection &, const QItemSelection &)
Definition: page_load.cpp:161
void state_preview()
State of preview has been changed.
Definition: page_load.cpp:150
fc_client * gui
Definition: page_load.h:33
QString current_file
Definition: page_load.h:35
void browse_saves()
Browse saves directory.
Definition: page_load.cpp:135
Ui::FormPageLoad ui
Definition: page_load.h:34
void update_load_page()
Updates saves to load and updates in tableview = saves_load.
Definition: page_load.cpp:97
~page_load() override
page_load(QWidget *, fc_client *)
Definition: page_load.cpp:53