CClientLoginDialog::CClientLoginDialog(QWidget *parent) : QDialog(parent) { m_pLabel_UserName = NULL; m_pComboBox_UserName = NULL; m_pLabel_Password = NULL; m_pLineEdit_Password = NULL; m_pPushButtonSetting = NULL; m_pPushButtonLogin = NULL; m_pPushButtonCancle = NULL; m_pClientLoginParam = NULL; m_pServerSettingDialog = NULL; m_pComboBox_UserName_Value.clear(); m_pLineEdit_Password_Value.clear(); m_pClientLoginParam = new CClientLoginParam(); m_pServerSettingDialog = new CServerSettingDialog(this); setupUi(); translateLanguage(); _CreateConnect(); }
LoadingDialog::LoadingDialog(QWidget *parent) : BaseStyleWidget(parent) { //this->setFixedSize(900, 400); //设置透明度 this->setWindowOpacity(0.8); //设置背景色为淡蓝色 this->setStyleSheet("background-color: white;"); //取消对话框标题 this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); label = new QLabel; label->setStyleSheet("background-color: transparent;"); tip_label = new QLabel; translateLanguage(); label->setFixedSize(140, 140); movie = new QMovie(":/img/loading"); label->setScaledContents(true); label->setMovie(movie); QVBoxLayout *mainlayout = new QVBoxLayout; mainlayout->addWidget(label, 0, Qt::AlignCenter); mainlayout->addWidget(tip_label, 0, Qt::AlignCenter); mainlayout->setContentsMargins(0,80,0,100); this->setLayout(mainlayout); index = 0; timer = new QTimer(); connect(timer, SIGNAL(timeout()), this, SLOT(changeText())); startLoading(); }
CCustomColumnsDialog::CCustomColumnsDialog(QWidget *parent) : QDialog(parent) { m_pLayout_Main = NULL; m_pGroupBox_ColumnConfiguation = NULL; m_pLabel_AllAvailableColums = NULL; m_pListWidget_AllAvailableColums = NULL; m_pLabel_SelectedColumns = NULL; m_pListWidget_SelectedColumns = NULL; m_pPushButton_OK = NULL;//保存 m_pPushButton_Cancel = NULL;//取消 setupUi(); translateLanguage(); { //set user config file value QStringList strlstData; strlstData.clear(); strlstData = CConfigInfo::getInstance().getLstAllAvailableColums(); _SetAllDataToListWidget(m_pListWidget_AllAvailableColums, strlstData); strlstData.clear(); strlstData = CConfigInfo::getInstance().getLstSelectedColumns(); _SetAllDataToListWidget(m_pListWidget_SelectedColumns, strlstData); } _CreateConnect(); }
SystemTray::SystemTray(QObject *parent) : QSystemTrayIcon(parent) { createAction(); addActions(); translateLanguage(); }
void CClientMainWindowToolBar::_Init() { m_pMyBarTypeHeler = NULL; m_pMyBarTypeHeler = new CMyBarTypeHeler(); m_nCurrentInstrumentID = DEFVALUE_Int_InstrumentID; m_nCurrentBarType = m_pMyBarTypeHeler->getBarTypeByString(DEFVALUE_String_HistoryBarType); _CreateActions(); _AddAction(); translateLanguage(); _CreateConnect(); if (m_nCurrentBarType == DAY) { m_pAction_BarInfo_D1->setChecked(true);//default m_pAction_BarInfo_D1->trigger();//default } }