Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fb2mode.h « source - github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f5b87a98d809838bf85720ea4b1df058c427a61 (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
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
72
73
#ifndef FB2MODE_H
#define FB2MODE_H

#include <QAction>
#include <QMap>

namespace Fb {

enum Mode {
    Text,
    Head,
    Code,
    Html,
};

enum Actions {
    GoBack,
    GoForward,
    EditUndo,
    EditRedo,
    EditCut,
    EditCopy,
    EditPaste,
    PasteText,
    TextSelect,
    EditFind,
    EditReplace,
    CheckText,
    InsertImage,
    InsertNote,
    InsertLink,
    InsertBody,
    InsertTitle,
    InsertEpigraph,
    InsertSubtitle,
    InsertAnnot,
    InsertCite,
    InsertPoem,
    InsertDate,
    InsertStanza,
    InsertAuthor,
    InsertSection,
    InsertText,
    InsertParag,
    ClearFormat,
    TextBold,
    TextItalic,
    TextStrike,
    TextSub,
    TextSup,
    TextCode,
    TextTitle,
    SectionAdd,
    SectionDel,
    ViewContents,
    ViewPictures,
    ViewFootnotes,
    ViewInspector,
    ZoomIn,
    ZoomOut,
    ZoomReset,
};

}

class FbActionMap : public QMap<Fb::Actions, QAction*>
{
public:
    void connect();
    void disconnect();
};

#endif // FB2MODE_H