tesseract  4.1.1
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 class BLOCK_LIST;
26 class PAGE_RES;
27 
28 namespace tesseract {
29  class Tesseract;
30 }
31 
32 // A small event handler class to process incoming events to
33 // this window.
35  public:
36  PGEventHandler(tesseract::Tesseract* tess) : tess_(tess) {
37  }
38  void Notify(const SVEvent* sve) override;
39  private:
40  tesseract::Tesseract* tess_;
41 };
42 
43 extern BLOCK_LIST *current_block_list;
44 extern STRING_VAR_H (editor_image_win_name, "EditorImage",
45 "Editor image window name");
46 extern INT_VAR_H (editor_image_xpos, 590, "Editor image X Pos");
47 extern INT_VAR_H (editor_image_ypos, 10, "Editor image Y Pos");
48 extern INT_VAR_H (editor_image_height, 680, "Editor image height");
49 extern INT_VAR_H (editor_image_width, 655, "Editor image width");
51 "Word bounding box colour");
53 "Blob bounding box colour");
54 extern INT_VAR_H (editor_image_text_color, WHITE, "Correct text colour");
55 extern STRING_VAR_H (editor_dbwin_name, "EditorDBWin",
56 "Editor debug window name");
57 extern INT_VAR_H (editor_dbwin_xpos, 50, "Editor debug window X Pos");
58 extern INT_VAR_H (editor_dbwin_ypos, 500, "Editor debug window Y Pos");
59 extern INT_VAR_H (editor_dbwin_height, 24, "Editor debug window height");
60 extern INT_VAR_H (editor_dbwin_width, 80, "Editor debug window width");
61 extern STRING_VAR_H (editor_word_name, "BlnWords",
62 "BL normalised word window");
63 extern INT_VAR_H (editor_word_xpos, 60, "Word window X Pos");
64 extern INT_VAR_H (editor_word_ypos, 510, "Word window Y Pos");
65 extern INT_VAR_H (editor_word_height, 240, "Word window height");
66 extern INT_VAR_H (editor_word_width, 655, "Word window width");
67 extern double_VAR_H (editor_smd_scale_factor, 1.0, "Scaling for smd image");
68 
69 #endif
int editor_word_xpos
Definition: pgedit.cpp:139
int editor_word_width
Definition: pgedit.cpp:142
int editor_dbwin_width
Definition: pgedit.cpp:136
char * editor_word_name
Definition: pgedit.cpp:138
int editor_image_height
int editor_dbwin_height
Definition: pgedit.cpp:135
int editor_image_blob_bb_color
Definition: pgedit.cpp:127
int editor_dbwin_ypos
Definition: pgedit.cpp:134
int editor_word_ypos
Definition: pgedit.cpp:140
BLOCK_LIST * current_block_list
char * editor_dbwin_name
Definition: pgedit.cpp:132
int editor_image_text_color
Definition: pgedit.cpp:129
int editor_image_xpos
Definition: pgedit.cpp:121
int editor_word_height
Definition: pgedit.cpp:141
int editor_image_word_bb_color
Definition: pgedit.cpp:125
char * editor_image_win_name
Definition: pgedit.cpp:120
double editor_smd_scale_factor
int editor_image_ypos
Definition: pgedit.cpp:122
int editor_dbwin_xpos
Definition: pgedit.cpp:133
int editor_image_width
#define STRING_VAR_H(name, val, comment)
Definition: params.h:299
#define INT_VAR_H(name, val, comment)
Definition: params.h:295
#define double_VAR_H(name, val, comment)
Definition: params.h:301
void Notify(const SVEvent *sve) override
Definition: pgedit.cpp:276
PGEventHandler(tesseract::Tesseract *tess)
Definition: pgedit.h:36