-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhelpdialog.h
More file actions
71 lines (57 loc) · 1.42 KB
/
helpdialog.h
File metadata and controls
71 lines (57 loc) · 1.42 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
===========================================================================
SSHConnector
Copyright (C) 2024 spalter
This file is part of sshconnector, distributed under the GNU GPL v2
For full terms see the included COPYING file.
===========================================================================
*/
#ifndef __helpdialog_H__
#define __helpdialog_H__
/*
===============================================================================
HostMenu
===============================================================================
*/
#include <menu.h>
#include <ncurses.h>
#include <string>
#include "vector"
#define KEY_ESCAPE 27
#define KEY_RETURN 10
using namespace std;
class HelpDialog
{
public:
HelpDialog();
~HelpDialog();
int ShowDialog();
void Initialize( char *file );
private:
void ShowWindow();
void Resize();
void Close();
void Start();
void CalcualteBounds();
void ShowTitle();
void ShowHintLabel();
void SetStatuslabel( char *msg );
void GenerateMenu( vector<char *> &items );
void OneStepUp();
void OneStepDown();
void PageUp();
void PageDown();
int Loop();
char *filename = ( char * ) "manual";
int startPosX = 0;
int startPosY = 0;
int screenWidth = 0;
int screenHeight = 0;
int width = 0;
int height = 0;
int size = 0;
WINDOW *scrn;
MENU *menu;
ITEM **menu_items;
};
#endif /* !__helpdialog_H__ */