Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F627337
HelpManager.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
HelpManager.h
View Options
/*
* Copyright (C) 2019 Me and My Shadow
*
* This file is part of Me and My Shadow.
*
* Me and My Shadow is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Me and My Shadow is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Me and My Shadow. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HELPMANAGER_H
#define HELPMANAGER_H
#include
"GUIObject.h"
class
GUIWindow
;
class
HelpWindow
;
class
GUIListBox
;
class
HelpPage
;
class
HelpManager
:
public
GUIEventCallback
{
private
:
GUIEventCallback
*
parent
;
std
::
vector
<
HelpPage
*>
pages
;
void
updateListBox
(
ImageManager
&
imageManager
,
SDL_Renderer
&
renderer
,
GUIListBox
*
listBox
,
const
std
::
string
&
keyword
);
void
updateCurrentPage
(
ImageManager
&
imageManager
,
SDL_Renderer
&
renderer
,
HelpWindow
*
window
,
int
currentPage
,
bool
addToHistory
);
public
:
HelpManager
(
GUIEventCallback
*
parent
);
~
HelpManager
();
GUIWindow
*
newWindow
(
ImageManager
&
imageManager
,
SDL_Renderer
&
renderer
,
int
pageIndex
=
0
);
void
GUIEventCallback_OnEvent
(
ImageManager
&
imageManager
,
SDL_Renderer
&
renderer
,
std
::
string
name
,
GUIObject
*
obj
,
int
eventType
)
override
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 1:55 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112548
Default Alt Text
HelpManager.h (1 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline