mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
33 lines
593 B
C++
33 lines
593 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 = nullptr);
|
|
|
|
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() override;
|
|
signals:
|
|
void goToPage(unsigned int page);
|
|
};
|
|
|
|
#endif
|