24 Star 42 Fork 26

whincwu / MyTranslater

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
wuhui 提交于 2014-07-20 11:27 . New - add clear function
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QVector>
#include <QPair>
#include <QMap>
#include <QMainWindow>
#include "entities/cbaidutranslateresult.h"
class CBaiduTranslater;
class QComboBox;
class QLabel;
class QToolButton;
class QDialog;
namespace Ui {
class MainWindow;
class Dialog;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void translate();
void translate(const QString &srcText, const QString &from, const QString &to);
void showResult(CBaiduTranslateResult result);
void togglePinWindow();
void updateStyle();
void on_btnClear_clicked();
private:
Ui::MainWindow *ui;
Ui::Dialog *ui2;
QDialog *m_aboutDialog;
CBaiduTranslater *m_baiduTranslater;
QString m_from, m_to; // translate direction
QLabel *m_statusInfo;
QToolButton *m_pinWindow;
QToolButton *m_updateStyle;
QToolButton *m_about;
void initComboBox(QComboBox *comboBox);
void showAboutDialog();
};
#endif // MAINWINDOW_H
C++
1
https://gitee.com/xiaohui_hubei/MyTranslater.git
git@gitee.com:xiaohui_hubei/MyTranslater.git
xiaohui_hubei
MyTranslater
MyTranslater
master

搜索帮助