blob: ae1d3d54684202b2342db7d3c62583b0fa2fd59c (
plain) (
blame)
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
|
#ifndef PODBEUTER_VIEW__H
#define PODBEUTER_VIEW__H
#include <keymap.h>
#include <stflpp.h>
#include <colormanager.h>
using namespace newsbeuter;
namespace podbeuter {
class pb_controller;
struct keymap_hint_entry;
class pb_view {
public:
pb_view(pb_controller * c = 0);
~pb_view();
void run(bool auto_download);
void set_keymap(newsbeuter::keymap * k) {
keys = k;
set_bindings();
}
private:
friend class newsbeuter::colormanager;
struct keymap_hint_entry {
operation op;
char * text;
};
void run_help();
void set_dllist_keymap_hint();
void set_help_keymap_hint();
void set_bindings();
std::string prepare_keymaphint(keymap_hint_entry * hints);
pb_controller * ctrl;
newsbeuter::stfl::form dllist_form;
newsbeuter::stfl::form help_form;
newsbeuter::keymap * keys;
};
}
#endif
|