mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
33 lines
571 B
C++
33 lines
571 B
C++
#ifndef __GOTODIALOG_H
|
|
#define __GOTODIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QIntValidator>
|
|
|
|
class GoToDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
GoToDialog(QWidget * parent = 0);
|
|
private:
|
|
QLabel * numPagesLabel;
|
|
QLabel * textLabel;
|
|
QLineEdit * pageNumber;
|
|
QIntValidator * v;
|
|
QPushButton * accept;
|
|
QPushButton * cancel;
|
|
void setupUI();
|
|
public slots:
|
|
void goTo();
|
|
void setNumPages(unsigned int numPages);
|
|
void open();
|
|
signals:
|
|
void goToPage(unsigned int page);
|
|
};
|
|
|
|
#endif
|
|
|