ultimatepp/bazaar/TestLeptonica/main.cpp
micio b26e58fcd8 Bazaar:Leptonica - added image rectangular markers
git-svn-id: svn://ultimatepp.org/upp/trunk@1577 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-09-20 14:55:01 +00:00

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();
}