mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
31 lines
620 B
C++
31 lines
620 B
C++
#include "TestLeptonica.h"
|
|
|
|
void TestLeptonica::onQuit()
|
|
{
|
|
Break();
|
|
}
|
|
|
|
TestLeptonica::TestLeptonica()
|
|
{
|
|
CtrlLayout(*this, "Leptonica library example suite");
|
|
|
|
// sets PixRaster in PixRasterCtrl
|
|
pixRasterCtrl.SetPixBase(&pixRaster);
|
|
pixRasterCtrl.ShowThumbnails(true);
|
|
|
|
// connects button handlers
|
|
LineRemovalButton <<= THISBACK(onLineRemoval);
|
|
PageLayoutButton <<= THISBACK(onPageLayout);
|
|
BaseLineButton <<= THISBACK(onBaseLine);
|
|
PageMarkersButton <<= THISBACK(onPageMarkers);
|
|
QuitButton <<= THISBACK(onQuit);
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
TestLeptonica testLept;
|
|
|
|
testLept.Sizeable().Zoomable();
|
|
testLept.Run();
|
|
}
|
|
|