84 ui(
new Ui::MainWindow)
91 allpath=QCoreApplication::applicationDirPath();
95 QSettings *configIniWrite =
new QSettings(
allpath+
"/set.ini", QSettings::IniFormat);
97 qDebug()<<
"agree"<<configIniWrite->value(
"agree").toString();
98 if(configIniWrite->value(
"agree").toString()!=
"true")
104 delete configIniWrite;
107 qDebug()<<
"atosuccess";
117 ui->axWidget->setControl(QString::fromUtf8(
"{8856F961-340A-11D0-A96B-00C04FD705A2}"));
118 ui->axWidget->setProperty(
"DisplayAlerts",
false);
119 ui->axWidget->setProperty(
"DisplayScrollBars",
true);
120 QString webstr=QString(
"http://seer.61.com/play.shtml");
121 ui->axWidget->dynamicCall(
"Navigate(const QString&)",webstr);
135 connect(
ui->action,SIGNAL(triggered()),
this,SLOT(
FreshSeer()));
136 connect(
ui->action_2,SIGNAL(triggered()),
this,SLOT(
Mute()));
137 connect(
ui->action_3,SIGNAL(triggered()),
this,SLOT(
unMute()));
139 connect(
ui->action_5,SIGNAL(triggered()),
this,SLOT(
speedopen()));
141 connect(
ui->action_ie,SIGNAL(triggered()),
this,SLOT(
ClearCache()));
143 connect(
ui->action_8,SIGNAL(triggered()),
this,SLOT(
script_open()));
144 connect(
ui->action_9,SIGNAL(triggered()),
this,SLOT(
Openscript()));
147 connect(
ui->action_ce,SIGNAL(triggered()),
this,SLOT(
Opence()));
148 connect(
ui->action_fd,SIGNAL(triggered()),
this,SLOT(
Openfd()));
149 connect(
ui->action_cdk,SIGNAL(triggered()),
this,SLOT(
Inputcdk()));
150 connect(
ui->action_4,SIGNAL(triggered()),
this,SLOT(
PeakMode()));
151 connect(
ui->action_21,SIGNAL(triggered()),
this,SLOT(
seer_cal()));
155 connect(
ui->action_22,SIGNAL(triggered()),
this,SLOT(
slot_author()));
159 connect(
ui->bag_sk,SIGNAL(triggered()),
this,SLOT(
Changebag_sk()));
160 connect(
ui->bag_fs,SIGNAL(triggered()),
this,SLOT(
Changebag_fs()));
161 connect(
ui->bag_ld,SIGNAL(triggered()),
this,SLOT(
Changebag_ld()));
162 connect(
ui->bag_hd,SIGNAL(triggered()),
this,SLOT(
Changebag_hd()));
163 connect(
ui->bag_dy,SIGNAL(triggered()),
this,SLOT(
Changebag_dy()));
164 connect(
ui->bag_xa,SIGNAL(triggered()),
this,SLOT(
Changebag_xa()));
165 connect(
ui->bag_wl,SIGNAL(triggered()),
this,SLOT(
Changebag_wl()));
166 connect(
ui->bag_ys,SIGNAL(triggered()),
this,SLOT(
Changebag_ys()));
167 connect(
ui->bag_tz,SIGNAL(triggered()),
this,SLOT(
Changebag_tz()));
168 connect(
ui->bag_yy,SIGNAL(triggered()),
this,SLOT(
Changebag_yy()));
169 connect(
ui->bag_tq,SIGNAL(triggered()),
this,SLOT(
Changebag_tq()));
170 connect(
ui->bag_yh,SIGNAL(triggered()),
this,SLOT(
Changebag_yh()));
173 connect(
ui->actionyijian,SIGNAL(triggered()),
this,SLOT(
show_csp()));
182 connect(
ui->action_13,SIGNAL(triggered(
bool)),
n,SLOT(slot_startedTimer_clicked(
bool)));
183 connect(
ui->action_14,SIGNAL(triggered()),
this,SLOT(
dianfeng()));
184 connect(
this,SIGNAL(
sendcap(
bool)),
n,SLOT(slot_capture(
bool)));
185 connect(
this,SIGNAL(
sendtip(QString)),
n,SLOT(slot_tip(QString)));
186 connect(
n,SIGNAL(signal_fresh()),
this,SLOT(
FreshSeer()));
187 connect(
n,SIGNAL(signal_sb()),
this,SLOT(
slot_sb()));
189 qDebug()<<
"nono信号无问题";
192 QScreen *screen=QGuiApplication::primaryScreen ();
193 QRect mm=screen->availableGeometry() ;
194 int screen_width = mm.width();
195 int screen_height = mm.height();
196 n->move(50,screen_height-
n->height()-50);
197 this->setAttribute(Qt::WA_QuitOnClose,
true);
229 nam =
new QNetworkAccessManager(
this);
230 connect(
nam,SIGNAL(finished(QNetworkReply*)),
this,SLOT(
slot_new(QNetworkReply*)));
232 url.setUrl(
"http://jlhsmuseum.cn/news/test.json");
233 QNetworkRequest request;
235 request.setHeader(QNetworkRequest::ContentTypeHeader,QVariant(
"application/x-www-form-urlencoded"));
236 QNetworkReply* reply =
nam->get(request);
239 QFile::link(
allpath+
"/星小夜的seer登录器.exe", QStandardPaths::writableLocation(QStandardPaths::DesktopLocation).append(
"/").append(
"星小夜的seer登录器.lnk"));