|
tesseract
4.0.0-1-g2a2b
|
#include "pgedit.h"#include <cctype>#include <cmath>#include "blread.h"#include "control.h"#include "paramsd.h"#include "pageres.h"#include "tordmain.h"#include "scrollview.h"#include "svmnode.h"#include "statistc.h"#include "tesseractclass.h"#include "werdit.h"Go to the source code of this file.
Classes | |
| class | BlnEventHandler |
Namespaces | |
| tesseract | |
Macros | |
| #define | ASC_HEIGHT (2 * kBlnBaselineOffset + kBlnXHeight) |
| #define | X_HEIGHT (kBlnBaselineOffset + kBlnXHeight) |
| #define | BL_HEIGHT kBlnBaselineOffset |
| #define | DESC_HEIGHT 0 |
| #define | MAXSPACING 128 /*max expected spacing in pix */ |
Functions | |
| ScrollView * | bln_word_window_handle () |
| void | build_image_window (int width, int height) |
| void | pgeditor_msg (const char *msg) |
| void | pgeditor_show_point (SVEvent *event) |
| void | show_point (PAGE_RES *page_res, float x, float y) |
Variables | |
| const ERRCODE | EMPTYBLOCKLIST = "No blocks to edit" |
| BITS16 | word_display_mode |
| BOOL8 | display_image = FALSE |
| BOOL8 | display_blocks = FALSE |
| BOOL8 | display_baselines = FALSE |
| PAGE_RES * | current_page_res = nullptr |
| char * | editor_image_win_name = "EditorImage" |
| int | editor_image_xpos = 590 |
| int | editor_image_ypos = 10 |
| int | editor_image_menuheight = 50 |
| int | editor_image_word_bb_color = ScrollView::BLUE |
| int | editor_image_blob_bb_color = ScrollView::YELLOW |
| int | editor_image_text_color = ScrollView::WHITE |
| char * | editor_dbwin_name = "EditorDBWin" |
| int | editor_dbwin_xpos = 50 |
| int | editor_dbwin_ypos = 500 |
| int | editor_dbwin_height = 24 |
| int | editor_dbwin_width = 80 |
| char * | editor_word_name = "BlnWords" |
| int | editor_word_xpos = 60 |
| int | editor_word_ypos = 510 |
| int | editor_word_height = 240 |
| int | editor_word_width = 655 |
| char * | editor_debug_config_file = "" |
| #define ASC_HEIGHT (2 * kBlnBaselineOffset + kBlnXHeight) |
Definition at line 42 of file pgedit.cpp.
| #define BL_HEIGHT kBlnBaselineOffset |
Definition at line 44 of file pgedit.cpp.
| #define DESC_HEIGHT 0 |
Definition at line 45 of file pgedit.cpp.
| #define MAXSPACING 128 /*max expected spacing in pix */ |
Definition at line 46 of file pgedit.cpp.
| #define X_HEIGHT (kBlnBaselineOffset + kBlnXHeight) |
Definition at line 43 of file pgedit.cpp.
| enum CMD_EVENTS |
Definition at line 50 of file pgedit.cpp.
| enum ColorationMode |
| Enumerator | |
|---|---|
| CM_RAINBOW | |
| CM_SUBSCRIPT | |
| CM_SUPERSCRIPT | |
| CM_ITALIC | |
| CM_BOLD | |
| CM_UNDERLINE | |
| CM_FIXEDPITCH | |
| CM_SERIF | |
| CM_SMALLCAPS | |
| CM_DROPCAPS | |
Definition at line 84 of file pgedit.cpp.
| ScrollView* bln_word_window_handle | ( | ) |
Definition at line 165 of file pgedit.cpp.
| void build_image_window | ( | int | width, |
| int | height | ||
| ) |
Destroy the existing image window if there is one. Work out how big the new window needs to be. Create it and re-display.
Definition at line 186 of file pgedit.cpp.
| void pgeditor_msg | ( | const char * | msg | ) |
Display a message - in the command window if there is one, or to stdout
Definition at line 363 of file pgedit.cpp.
| void pgeditor_show_point | ( | SVEvent * | event | ) |
| void show_point | ( | PAGE_RES * | page_res, |
| float | x, | ||
| float | y | ||
| ) |
Show coords of point, blob bounding box, word bounding box and offset from row baseline
Definition at line 653 of file pgedit.cpp.
| PAGE_RES* current_page_res = nullptr |
Definition at line 121 of file pgedit.cpp.
Definition at line 119 of file pgedit.cpp.
Definition at line 118 of file pgedit.cpp.
Definition at line 117 of file pgedit.cpp.
| int editor_dbwin_height = 24 |
"Editor debug window height"
Definition at line 139 of file pgedit.cpp.
| char* editor_dbwin_name = "EditorDBWin" |
"Editor debug window name"
Definition at line 136 of file pgedit.cpp.
| int editor_dbwin_width = 80 |
"Editor debug window width"
Definition at line 140 of file pgedit.cpp.
| int editor_dbwin_xpos = 50 |
"Editor debug window X Pos"
Definition at line 137 of file pgedit.cpp.
| int editor_dbwin_ypos = 500 |
"Editor debug window Y Pos"
Definition at line 138 of file pgedit.cpp.
| char* editor_debug_config_file = "" |
"Config file to apply to single words"
Definition at line 148 of file pgedit.cpp.
| int editor_image_blob_bb_color = ScrollView::YELLOW |
"Blob bounding box colour"
Definition at line 131 of file pgedit.cpp.
| int editor_image_menuheight = 50 |
"Add to image height for menu bar"
Definition at line 127 of file pgedit.cpp.
| int editor_image_text_color = ScrollView::WHITE |
"Correct text colour"
Definition at line 133 of file pgedit.cpp.
| char* editor_image_win_name = "EditorImage" |
"Editor image window name"
Definition at line 124 of file pgedit.cpp.
| int editor_image_word_bb_color = ScrollView::BLUE |
"Word bounding box colour"
Definition at line 129 of file pgedit.cpp.
| int editor_image_xpos = 590 |
"Editor image X Pos"
Definition at line 125 of file pgedit.cpp.
| int editor_image_ypos = 10 |
"Editor image Y Pos"
Definition at line 126 of file pgedit.cpp.
| int editor_word_height = 240 |
"Word window height"
Definition at line 145 of file pgedit.cpp.
| char* editor_word_name = "BlnWords" |
"BL normalized word window"
Definition at line 142 of file pgedit.cpp.
| int editor_word_width = 655 |
"Word window width"
Definition at line 146 of file pgedit.cpp.
| int editor_word_xpos = 60 |
"Word window X Pos"
Definition at line 143 of file pgedit.cpp.
| int editor_word_ypos = 510 |
"Word window Y Pos"
Definition at line 144 of file pgedit.cpp.
| const ERRCODE EMPTYBLOCKLIST = "No blocks to edit" |
Definition at line 48 of file pgedit.cpp.
| BITS16 word_display_mode |
Definition at line 115 of file pgedit.cpp.