2021-07-05 19:21:20 -07:00
|
|
|
#ifndef DICTIONARYWIDGET_H
|
|
|
|
#define DICTIONARYWIDGET_H
|
|
|
|
|
|
|
|
#include "functions.h"
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class dictionaryWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class dictionaryWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-04-04 21:47:15 -07:00
|
|
|
QString className = this->metaObject()->className();
|
2021-07-05 19:21:20 -07:00
|
|
|
explicit dictionaryWidget(QWidget *parent = nullptr);
|
|
|
|
~dictionaryWidget();
|
|
|
|
void dictionaryLookup(std::string word, QString first_letter, int position);
|
|
|
|
QString wordQstr;
|
|
|
|
QString definition;
|
|
|
|
QString letter;
|
|
|
|
std::string searchedWord;
|
|
|
|
bool nextdefinition_lock = false;
|
|
|
|
int dictionaryPosition;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_backBtn_clicked();
|
|
|
|
void on_nextDefinitionBtn_clicked();
|
|
|
|
void on_previousDefinitionBtn_clicked();
|
|
|
|
void refreshScreenNative();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::dictionaryWidget *ui;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void refreshScreen();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DICTIONARYWIDGET_H
|