Debian Codegraph @

xbmc/games/dialogs/osd/DialogGameVideoRotation.h

raw
1 /*
2 * Copyright (C) 2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "DialogGameVideoSelect.h"
12
13 #include <string>
14 #include <vector>
15
16 namespace KODI
17 {
18 namespace GAME
19 {
20 /*!
21 * \ingroup games
22 */
23 class CDialogGameVideoRotation : public CDialogGameVideoSelect
24 {
25 public:
26 CDialogGameVideoRotation();
27 ~CDialogGameVideoRotation() override = default;
28
29 protected:
30 // implementation of CDialogGameVideoSelect
31 std::string GetHeading() override;
32 void PreInit() override;
33 void GetItems(CFileItemList& items) override;
34 void OnItemFocus(unsigned int index) override;
35 unsigned int GetFocusedItem() const override;
36 void PostExit() override;
37 bool OnClickAction() override;
38
39 private:
40 // Helper functions
41 static std::string GetRotationLabel(unsigned int rotationDegCCW);
42
43 // Dialog parameters
44 std::vector<unsigned int> m_rotations; // Degrees counter-clockwise
45 };
46 } // namespace GAME
47 } // namespace KODI