tesseract v5.3.3.20231005
pgedit.h
Go to the documentation of this file.
1
2// File: pgedit.h
3// Description: Page structure file editor
4// Author: Joern Wanke
5//
6// (C) Copyright 2007, Google Inc.
7// Licensed under the Apache License, Version 2.0 (the "License");
8// you may not use this file except in compliance with the License.
9// You may obtain a copy of the License at
10// http://www.apache.org/licenses/LICENSE-2.0
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
18
19#ifndef PGEDIT_H
20#define PGEDIT_H
21
22#include "params.h" // for INT_VAR_H, IntParam, STRING_VAR_H, StringParam
23#include "scrollview.h" // for SVEvent (ptr only), SVEventHandler, ScrollView
24
25namespace tesseract {
26
27class BLOCK_LIST;
28class PAGE_RES;
29
30class Tesseract;
31
32#ifndef GRAPHICS_DISABLED
33// A small event handler class to process incoming events to
34// this window.
36public:
37 PGEventHandler(tesseract::Tesseract *tess) : tess_(tess) {}
38 void Notify(const SVEvent *sve) override;
39
40private:
42};
43#endif // !GRAPHICS_DISABLED
44
45extern BLOCK_LIST *current_block_list;
56
57} // namespace tesseract
58
59#endif
STRING_VAR_H(editor_image_win_name)
int editor_image_ypos
Definition: pgedit.cpp:124
int editor_word_height
Definition: pgedit.cpp:132
int editor_image_xpos
Definition: pgedit.cpp:123
int editor_word_ypos
Definition: pgedit.cpp:131
int editor_word_width
Definition: pgedit.cpp:133
int editor_image_word_bb_color
Definition: pgedit.cpp:126
int editor_image_blob_bb_color
Definition: pgedit.cpp:127
INT_VAR_H(editor_image_xpos)
BLOCK_LIST * current_block_list
int editor_word_xpos
Definition: pgedit.cpp:130
char * editor_image_win_name
Definition: pgedit.cpp:122
char * editor_word_name
Definition: pgedit.cpp:129
PGEventHandler(tesseract::Tesseract *tess)
Definition: pgedit.h:37
void Notify(const SVEvent *sve) override
Definition: pgedit.cpp:251