代码拉取完成,页面将自动刷新
同步操作将从 AvenirTech 未来科技/MyCMD 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef MYCMD_H
#define MYCMD_H
#include"funs.h"
#include <QMainWindow>
#include "common.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MyCMD; }
QT_END_NAMESPACE
class MyCMD : public QMainWindow
{
Q_OBJECT
public:
MyCMD(QWidget *parent = nullptr);
~MyCMD();
bool eventFilter(QObject *target, QEvent *event);//事件过滤器
void clear(int flag);
void send();
void judge();
void giveWin();
//响应命令列表
void chmod(int length,QVector<QString> command);
void diskinfo(int length);
void md5(int length,QVector<QString> command);
void date(int length,QVector<QString> command);
void cpu(int length);
void memory(int length);
void touch(int length,QVector<QString> command); //新建文件
void rm(int length,QVector<QString> command); //删除文件
//设置字体
void setFont();
private slots:
void setCursor();
void readOutput();
void on_textEdit_input_textChanged();
void toBlackWrite();
void toWhiteBlack();
void on_action_I_triggered();
void on_action_B_triggered();
void on_action_gitee_triggered();
void on_action_sognti_triggered();
void on_action_heiti_triggered();
void on_action_xingkai_triggered();
void on_action_yellowBlack_triggered();
void on_action8_triggered();
void on_action12_triggered();
void on_action10_triggered();
void on_action16_triggered();
void on_action20_triggered();
void on_action9_triggered();
void on_action11_triggered();
void on_action13_triggered();
void on_action14_triggered();
void on_action15_triggered();
void on_action_green_triggered();
void on_action_kaiti_triggered();
void on_action_author_triggered();
private:
Ui::MyCMD *ui;
QString welcome = "welcome to MyCMD V0.0.4";
QVector<QString> command;
QString lastCommand; //为了实现退格键不会删到当前的目录名
QString midedCommand; //去掉目录路径后的当前命令
QProcess * pro;
QByteArray out;
QString lastError;
QString currentPath; //管理当前目录
int pathLength;
//主题部分
QString text_type;//当前字体
int set_l;
int set_B;
int size;//字体大小
//功能模块
funs * fs;
};
#endif // MYCMD_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。