tesseract  5.0.0-alpha-619-ge9db
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
editor_image_width
int editor_image_width
PGEventHandler::Notify
void Notify(const SVEvent *sve) override
Definition: pgedit.cpp:276
SVEventHandler
Definition: scrollview.h:81
params.h
tesseract::Tesseract
Definition: tesseractclass.h:172
editor_image_xpos
int editor_image_xpos
Definition: pgedit.cpp:121
editor_word_name
char * editor_word_name
Definition: pgedit.cpp:138
editor_image_word_bb_color
int editor_image_word_bb_color
Definition: pgedit.cpp:125
editor_dbwin_name
char * editor_dbwin_name
Definition: pgedit.cpp:132
double_VAR_H
#define double_VAR_H(name, val, comment)
Definition: params.h:298
current_block_list
BLOCK_LIST * current_block_list
editor_dbwin_height
int editor_dbwin_height
Definition: pgedit.cpp:135
editor_dbwin_xpos
int editor_dbwin_xpos
Definition: pgedit.cpp:133
editor_image_text_color
int editor_image_text_color
Definition: pgedit.cpp:129
editor_dbwin_ypos
int editor_dbwin_ypos
Definition: pgedit.cpp:134
editor_image_blob_bb_color
int editor_image_blob_bb_color
Definition: pgedit.cpp:127
tesseract
Definition: baseapi.h:65
INT_VAR_H
#define INT_VAR_H(name, val, comment)
Definition: params.h:292
PAGE_RES
Definition: pageres.h:73
PGEventHandler
Definition: pgedit.h:34
editor_word_height
int editor_word_height
Definition: pgedit.cpp:141
editor_dbwin_width
int editor_dbwin_width
Definition: pgedit.cpp:136
SVEvent
Definition: scrollview.h:60
editor_image_win_name
char * editor_image_win_name
Definition: pgedit.cpp:120
editor_word_ypos
int editor_word_ypos
Definition: pgedit.cpp:140
editor_smd_scale_factor
double editor_smd_scale_factor
editor_image_height
int editor_image_height
editor_image_ypos
int editor_image_ypos
Definition: pgedit.cpp:122
scrollview.h
PGEventHandler::PGEventHandler
PGEventHandler(tesseract::Tesseract *tess)
Definition: pgedit.h:36
editor_word_xpos
int editor_word_xpos
Definition: pgedit.cpp:139
editor_word_width
int editor_word_width
Definition: pgedit.cpp:142
STRING_VAR_H
#define STRING_VAR_H(name, val, comment)
Definition: params.h:296