#ifndef LAUNCHPAGE_H #define LAUNCHPAGE_H #include #include #include #include #include #include "projectmanager.h" namespace Ui { class LaunchPage; } static QString lanchStyle(//正常状态样式 "QPushButton{" "background-color:rgba(0,191,255,50);"//背景色(也可以设置图片) "border-style:outset;" //边框样式(inset/outset) "border-width:4px;" //边框宽度像素 "border-radius:10px;" //边框圆角半径像素 "border-color:rgba(255,255,255,0);" //边框颜色 "padding:7px;" //填衬 "}" //鼠标按下样式 "QPushButton:pressed{" "background-color:rgba(100,255,100,100);" "border-color:rgba(255,255,255,200);" "color:rgba(0,0,0,255);" "}" //界面背景色 "QMainWindow{" "background-color:rgba(255,255,255,255);" "}") ; class LaunchPage : public QMainWindow { Q_OBJECT public: explicit LaunchPage(QWidget *parent = 0); ~LaunchPage(); private slots: void on_confirmButton_clicked(); void on_openExample_toggled(bool checked); void on_browseButton_clicked(); void on_createExample_toggled(bool checked); private: Ui::LaunchPage *ui; QFileDialog *mOpenDialog; QFileDialog *mViewDialog; QString mSetName; QString mChosePath; QString mFileName; QString mFilePath; }; #endif // LAUNCHPAGE_H