De CPP van beiden:
hoofdvensterImpl::hoofdvensterImpl( QWidget * parent, Qt::WFlags f)
: QMainWindow(parent, f)
{
setupUi(this);
vraagROI->hide();
connect(actionFull_screen_modus, SIGNAL(toggled(bool)), this, SLOT(FullScreenModus(bool)));
connect(actionLaad_bestanden_uit_directory, SIGNAL(toggled(bool)), this, SLOT(ShowDirs(bool)));
connect(lstAfbeeldingen, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(toonSelected(QListWidgetItem *))); ........... }
NieuweTagImpl::NieuweTagImpl( QWidget * parent, Qt::WFlags f)
: QMainWindow(parent, f)
{
setupUi(this);
}
De *h van beiden:
class hoofdvensterImpl : public QMainWindow, public Ui::hoofdvenster
{
Q_OBJECT
public:
hoofdvensterImpl(QWidget * parent = 0, Qt::WFlags f = 0 );
//newTagImpl t;
private slots:
void RunOCR();
void init();
void FullScreenModus(bool aan);
void LaadBestanden(QString Dir);
void toonSelected(QListWidgetItem *i);
QPixmap getHisto(QPixmap p);
QPixmap MediaanFiltering(QPixmap p, int win, int ite);
float BerekenenMediaan(QVector <int> in);
QPixmap Binarisation(QPixmap p, int T, int window);
QPixmap ConnectedLines4(QPixmap p, int lTH);
QPixmap DrawBB(QPixmap in, int kleurID);
QPixmap RLSA(QPixmap p, int Thr);
double CalScrewAngle(QPixmap rl, int d);
QVector<int> findPoint(QPixmap p, int x1, int y1, int x2, int y2, int d, int point);
private:
//tekeningen
QGraphicsPixmapItem* orig;
QPixmap blanco;
//bounding boxes
QVector<int> bbLeftX;
QVector<int> bbLeftY;
QVector<int> bbRightX;
QVector<int> bbRightY;
};
class NieuweTagImpl : public QMainWindow, public Ui::NieuweTag
{
Q_OBJECT
public:
NieuweTagImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
private slots:
};