kodi
xbmc
dialogs
GUIDialogTextViewer.h
1
/*
2
* Copyright (C) 2005-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 "
guilib/GUIDialog.h
"
12
13
class
CGUIDialogTextViewer
:
14
public
CGUIDialog
15
{
16
public
:
17
CGUIDialogTextViewer
(
void
);
18
~
CGUIDialogTextViewer
(
void
)
override
;
19
bool
OnMessage(
CGUIMessage
& message)
override
;
20
void
SetText(
const
std::string& strText) { m_strText = strText; }
21
void
SetHeading(
const
std::string& strHeading) { m_strHeading = strHeading; }
22
void
UseMonoFont(
bool
use);
23
27
static
void
ShowForFile
(
const
std::string& path,
bool
useMonoFont);
28
protected
:
29
void
OnDeinitWindow(
int
nextWindowID)
override
;
30
bool
OnAction(
const
CAction
&action)
override
;
31
32
std::string m_strText;
33
std::string m_strHeading;
34
bool
m_mono =
false
;
35
36
void
SetText();
37
void
SetHeading();
38
};
39
GUIDialog.h
CGUIDialogTextViewer
Definition:
GUIDialogTextViewer.h:13
CAction
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition:
Action.h:21
CGUIDialog
Definition:
GUIDialog.h:35
CGUIMessage
Definition:
GUIMessage.h:365
CGUIDialogTextViewer::ShowForFile
static void ShowForFile(const std::string &path, bool useMonoFont)
Load a file into memory and show in dialog.
Definition:
GUIDialogTextViewer.cpp:107
Generated by
1.8.13