Debian Codegraph @

src/view/UserphraseDialog.h

raw symbols SCIP
1
2 /*
3 * chewing-editor: Chewing userphrase editor
4 * Copyright (C) 2014 Chewing Development Team
5
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #pragma once
22
23 #include <memory>
24 #include <QDialog>
25
26 namespace Ui {
27 class UserphraseDialog;
28 }
29
30 class UserphraseDialog final: public QDialog
31 {
32 Q_OBJECT
33
34 public:
35 explicit UserphraseDialog(QWidget *parent = 0);
36 UserphraseDialog(const UserphraseDialog&) = delete;
37 UserphraseDialog& operator=(const UserphraseDialog&) = delete;
38 ~UserphraseDialog(); // = default;
39
40 QString getPhrase() const;
41 QString getBopomofo() const;
42
43 void setText(const QString& phrase, const QString& bopomofo);
44
45 private:
46 void setupConnect();
47 std::unique_ptr<Ui::UserphraseDialog> ui_;
48 };