MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); ui.pbClose->setToolTip(QStringLiteral("关闭软件")); sa = NULL; //加载界面窗体 homeSlot(); //关闭 connect(ui.pbClose, SIGNAL(clicked()), this, SLOT(close())); //视频窗体全屏信号 connect(this, SIGNAL(fullScreen(QString)), this, SLOT(callSlot(QString))); QString hint = ""; FileCentre *fc = FileCentre::GetInstance(); fc->ReadSystemValue("windowhint", hint); if(hint == "1") { setWindowState(Qt::WindowFullScreen); } else { setWindowState( Qt::WindowMaximized ); } }
void MainMenu::showWebInspector() { callSlot("showWebInspector"); }
void MainMenu::webSearch() { callSlot("webSearch"); }
void MainMenu::showPageSource() { callSlot("showSource"); }
void MainMenu::toggleCaretBrowsing() { callSlot("toggleCaretBrowsing"); }
void MainMenu::editFind() { callSlot("searchOnPage"); }
void MainMenu::toggleOfflineMode() { callSlot("toggleOfflineMode"); }
void MainMenu::printPage() { callSlot("printPage"); }
void MainMenu::savePageScreen() { callSlot("savePageScreen"); }
void MainMenu::closeWindow() { callSlot("closeWindow"); }
void MainMenu::openFile() { callSlot("openFile"); }
void MainMenu::openLocation() { callSlot("openLocation"); }
void MainMenu::newTab() { callSlot("addTab"); }
void MainMenu::toggleWebInspector() { callSlot("toggleWebInspector"); }