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