tesseract  5.0.0
pgedit.h
Go to the documentation of this file.
1 // 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 
25 namespace tesseract {
26 
27 class BLOCK_LIST;
28 class PAGE_RES;
29 
30 class Tesseract;
31 
32 #ifndef GRAPHICS_DISABLED
33 // A small event handler class to process incoming events to
34 // this window.
36 public:
37  PGEventHandler(tesseract::Tesseract *tess) : tess_(tess) {}
38  void Notify(const SVEvent *sve) override;
39 
40 private:
41  tesseract::Tesseract *tess_;
42 };
43 #endif // !GRAPHICS_DISABLED
44 
45 extern 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:121
int editor_word_height
Definition: pgedit.cpp:129
int editor_image_xpos
Definition: pgedit.cpp:120
int editor_word_ypos
Definition: pgedit.cpp:128
int editor_word_width
Definition: pgedit.cpp:130
int editor_image_word_bb_color
Definition: pgedit.cpp:123
int editor_image_blob_bb_color
Definition: pgedit.cpp:124
INT_VAR_H(editor_image_xpos)
BLOCK_LIST * current_block_list
int editor_word_xpos
Definition: pgedit.cpp:127
char * editor_image_win_name
Definition: pgedit.cpp:119
char * editor_word_name
Definition: pgedit.cpp:126
PGEventHandler(tesseract::Tesseract *tess)
Definition: pgedit.h:37
void Notify(const SVEvent *sve) override
Definition: pgedit.cpp:250