-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheditwithsuggestionsdialog.h
43 lines (32 loc) · 1.02 KB
/
editwithsuggestionsdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*!
\class EditWithSuggestionsDialog
\ingroup LexiconEdit
\brief This is a generic form that prompts the user with an edit box and a list of suggested strings to select. See editwithsuggestionsdialog.ui.
Although it could be reused, this is currently only instantated in LexiconEdit.
*/
#ifndef EDITWITHSUGGESTIONSDIALOG_H
#define EDITWITHSUGGESTIONSDIALOG_H
#include <QDialog>
class TextBit;
class WritingSystem;
class QStringListModel;
namespace Ui {
class EditWithSuggestionsDialog;
}
class EditWithSuggestionsDialog : public QDialog
{
Q_OBJECT
public:
EditWithSuggestionsDialog(const WritingSystem & ws, QWidget *parent = nullptr);
~EditWithSuggestionsDialog();
void setDefaultString( const QString & string );
void setSuggestions( const QStringList & strings );
QString text() const;
TextBit textBit() const;
private slots:
void copyValue(const QModelIndex & index);
private:
Ui::EditWithSuggestionsDialog *ui;
QStringListModel *mModel;
};
#endif // EDITWITHSUGGESTIONSDIALOG_H