美化窗口:关于+图像控制
This commit is contained in:
@ -52,7 +52,7 @@ QPushButton
|
|||||||
);
|
);
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 8px 16px;
|
padding: 8px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
QPushButton:hover
|
QPushButton:hover
|
||||||
@ -277,6 +277,18 @@ QRadioButton
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
|||||||
@ -31,7 +31,7 @@ HPPA::HPPA(QWidget* parent)
|
|||||||
s_instance = this;
|
s_instance = this;
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
setWindowFlags(Qt::FramelessWindowHint);
|
//setWindowFlags(Qt::FramelessWindowHint);
|
||||||
|
|
||||||
// register MapLayer* metatype for queued signal/slot across threads
|
// register MapLayer* metatype for queued signal/slot across threads
|
||||||
qRegisterMetaType<MapLayer*>("MapLayer*");
|
qRegisterMetaType<MapLayer*>("MapLayer*");
|
||||||
@ -750,7 +750,7 @@ void HPPA::initMenubarToolbar()
|
|||||||
if (checked)
|
if (checked)
|
||||||
ui.mActionSpectral->setIcon(QIcon(".//icon//all//spectral_done.svg"));
|
ui.mActionSpectral->setIcon(QIcon(".//icon//all//spectral_done.svg"));
|
||||||
else
|
else
|
||||||
ui.mActionSpectral->setIcon(QIcon(".//icon//all//spectral.svg"));
|
ui.mActionSpectral->setIcon(QIcon(".//icon//all//spectral.svg"));
|
||||||
});
|
});
|
||||||
|
|
||||||
// 使用样式表设置透明背景
|
// 使用样式表设置透明背景
|
||||||
@ -900,6 +900,7 @@ void HPPA::createActionGroups()
|
|||||||
ui.mActionCorning_410->setChecked(true);
|
ui.mActionCorning_410->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateImagerPicture(lastSelectedAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HPPA::selectingImager(QAction* selectedAction)
|
void HPPA::selectingImager(QAction* selectedAction)
|
||||||
@ -907,6 +908,30 @@ void HPPA::selectingImager(QAction* selectedAction)
|
|||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.setValue("LastSelectedImagerAction", selectedAction->objectName());
|
settings.setValue("LastSelectedImagerAction", selectedAction->objectName());
|
||||||
settings.sync();
|
settings.sync();
|
||||||
|
|
||||||
|
updateImagerPicture(selectedAction->objectName());
|
||||||
|
}
|
||||||
|
|
||||||
|
void HPPA::updateImagerPicture(const QString& actionName)
|
||||||
|
{
|
||||||
|
QString picPath;
|
||||||
|
if (actionName == "mActionPica_L")
|
||||||
|
picPath = ".//icon//imagerPicture//L.png";
|
||||||
|
else if (actionName == "mActionPica_NIR")
|
||||||
|
picPath = ".//icon//imagerPicture//IR.png";
|
||||||
|
else if (actionName == "mActionPika_XC2")
|
||||||
|
picPath = ".//icon//imagerPicture//XC2.png";
|
||||||
|
else if (actionName == "mActionCorning_410")
|
||||||
|
picPath = ".//icon//imagerPicture//corning410.png";
|
||||||
|
|
||||||
|
if (!picPath.isEmpty())
|
||||||
|
{
|
||||||
|
QPixmap pixmap(picPath);
|
||||||
|
if (!pixmap.isNull())
|
||||||
|
{
|
||||||
|
ui.imagerPictureLabel->setPixmap(pixmap);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HPPA::createMoveplatformActionGroup()
|
void HPPA::createMoveplatformActionGroup()
|
||||||
@ -1315,7 +1340,7 @@ void HPPA::onStartRecordStep1()
|
|||||||
removeAllLayersInRasterGroup();
|
removeAllLayersInRasterGroup();
|
||||||
|
|
||||||
ui.action_start_recording->setText(QString::fromLocal8Bit("停止采集"));
|
ui.action_start_recording->setText(QString::fromLocal8Bit("停止采集"));
|
||||||
ui.action_start_recording->setIcon(QIcon(".//icon//all//record_ing.svg"));
|
ui.action_start_recording->setIcon(QIcon(".//icon//all//record_ing.svg"));
|
||||||
//ui.mainToolBar->widgetForAction(ui.action_start_recording)->setStyleSheet("QWidget{background-color:rgb(255,0,0);}");
|
//ui.mainToolBar->widgetForAction(ui.action_start_recording)->setStyleSheet("QWidget{background-color:rgb(255,0,0);}");
|
||||||
|
|
||||||
//应该先控制马达运动,当马达运动后,再开始光谱仪采集(发射开始采集信号)
|
//应该先控制马达运动,当马达运动后,再开始光谱仪采集(发射开始采集信号)
|
||||||
@ -1747,9 +1772,9 @@ void HPPA::onconnect()
|
|||||||
{
|
{
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(QString::fromLocal8Bit("请选择相机!"));
|
msgBox.setText(QString::fromLocal8Bit("请选择相机!"));
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.action_connect_imager->setIcon(QIcon(".//icon//all//connect_imager_ing.svg"));
|
ui.action_connect_imager->setIcon(QIcon(".//icon//all//connect_imager_ing.svg"));
|
||||||
|
|||||||
@ -241,6 +241,7 @@ private:
|
|||||||
QActionGroup* mImagerGroup = nullptr;
|
QActionGroup* mImagerGroup = nullptr;
|
||||||
void createActionGroups();
|
void createActionGroups();
|
||||||
void selectingImager(QAction* selectedAction);
|
void selectingImager(QAction* selectedAction);
|
||||||
|
void updateImagerPicture(const QString& actionName);
|
||||||
|
|
||||||
QActionGroup* moveplatformActionGroup = nullptr;
|
QActionGroup* moveplatformActionGroup = nullptr;
|
||||||
void createMoveplatformActionGroup();
|
void createMoveplatformActionGroup();
|
||||||
|
|||||||
25
HPPA/HPPA.ui
25
HPPA/HPPA.ui
@ -322,7 +322,7 @@ QTabWidget::pane {
|
|||||||
<enum>QTabWidget::Rounded</enum>
|
<enum>QTabWidget::Rounded</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="elideMode">
|
<property name="elideMode">
|
||||||
<enum>Qt::ElideNone</enum>
|
<enum>Qt::ElideNone</enum>
|
||||||
@ -412,7 +412,7 @@ QSlider::handle:horizontal:pressed {
|
|||||||
<number>10</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>10</number>
|
<number>10</number>
|
||||||
@ -421,15 +421,21 @@ QSlider::handle:horizontal:pressed {
|
|||||||
<number>10</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="imagerPictureLabel">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="scaledContents">
|
||||||
<pixmap resource="HPPA.qrc">:/HPPA/HPPA.ico</pixmap>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
@ -457,11 +463,8 @@ QSlider::handle:horizontal:pressed {
|
|||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="horizontalSpacing">
|
<property name="spacing">
|
||||||
<number>2</number>
|
<number>10</number>
|
||||||
</property>
|
|
||||||
<property name="verticalSpacing">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
|
|||||||
364
HPPA/about.ui
364
HPPA/about.ui
@ -9,8 +9,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>629</width>
|
<width>486</width>
|
||||||
<height>463</height>
|
<height>401</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -20,91 +20,291 @@
|
|||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>HPPA.ico</normaloff>HPPA.ico</iconset>
|
<normaloff>HPPA.ico</normaloff>HPPA.ico</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<property name="geometry">
|
<property name="leftMargin">
|
||||||
<rect>
|
<number>0</number>
|
||||||
<x>90</x>
|
|
||||||
<y>250</y>
|
|
||||||
<width>434</width>
|
|
||||||
<height>134</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<property name="topMargin">
|
||||||
<item>
|
<number>0</number>
|
||||||
<widget class="QLabel" name="companylname_label">
|
</property>
|
||||||
<property name="text">
|
<property name="rightMargin">
|
||||||
<string>公司:北京依锐思遥感技术有限公司</string>
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QWidget" name="contentWidget" native="true">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QWidget #contentWidget
|
||||||
|
{
|
||||||
|
background: #040125;
|
||||||
|
/*border-radius: 8px 8px 8px 8px;*/
|
||||||
|
border: 1px solid #2f6bff;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_7">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="topMargin">
|
||||||
</item>
|
<number>0</number>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>地址:北京市海淀区清河安宁庄东路18号5号楼二层205</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="rightMargin">
|
||||||
</item>
|
<number>0</number>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>电话:010-51292601</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="bottomMargin">
|
||||||
</item>
|
<number>0</number>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="text">
|
|
||||||
<string>邮箱:hanshanlong@iris-rs.cn</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="spacing">
|
||||||
</item>
|
<number>10</number>
|
||||||
</layout>
|
</property>
|
||||||
</widget>
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QWidget" name="titlebarWidget" native="true">
|
||||||
<property name="geometry">
|
<property name="sizePolicy">
|
||||||
<rect>
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<x>270</x>
|
<horstretch>0</horstretch>
|
||||||
<y>150</y>
|
<verstretch>0</verstretch>
|
||||||
<width>141</width>
|
</sizepolicy>
|
||||||
<height>24</height>
|
</property>
|
||||||
</rect>
|
<property name="minimumSize">
|
||||||
</property>
|
<size>
|
||||||
<property name="text">
|
<width>0</width>
|
||||||
<string>版本:2.0</string>
|
<height>43</height>
|
||||||
</property>
|
</size>
|
||||||
</widget>
|
</property>
|
||||||
<widget class="QLabel" name="label_4">
|
<property name="maximumSize">
|
||||||
<property name="geometry">
|
<size>
|
||||||
<rect>
|
<width>16777215</width>
|
||||||
<x>270</x>
|
<height>43</height>
|
||||||
<y>70</y>
|
</size>
|
||||||
<width>391</width>
|
</property>
|
||||||
<height>31</height>
|
<property name="styleSheet">
|
||||||
</rect>
|
<string notr="true">QWidget #titlebarWidget
|
||||||
</property>
|
{
|
||||||
<property name="text">
|
background: #0E1C4C;
|
||||||
<string>Hyper Plant Phenotypic Analysis</string>
|
border: 1px solid #2f6bff;
|
||||||
</property>
|
}</string>
|
||||||
<property name="textFormat">
|
</property>
|
||||||
<enum>Qt::PlainText</enum>
|
<layout class="QGridLayout" name="gridLayout_6">
|
||||||
</property>
|
<item row="0" column="0">
|
||||||
</widget>
|
<widget class="QLabel" name="iconLabel">
|
||||||
<widget class="QLabel" name="label_7">
|
<property name="text">
|
||||||
<property name="geometry">
|
<string> </string>
|
||||||
<rect>
|
</property>
|
||||||
<x>90</x>
|
</widget>
|
||||||
<y>50</y>
|
</item>
|
||||||
<width>141</width>
|
<item row="0" column="1">
|
||||||
<height>141</height>
|
<widget class="QLabel" name="label_9">
|
||||||
</rect>
|
<property name="styleSheet">
|
||||||
</property>
|
<string notr="true">QLabel
|
||||||
<property name="text">
|
{
|
||||||
<string/>
|
color:#E2EDFF;
|
||||||
</property>
|
}</string>
|
||||||
<property name="pixmap">
|
</property>
|
||||||
<pixmap>HPPA.ico</pixmap>
|
<property name="text">
|
||||||
</property>
|
<string>关于</string>
|
||||||
</widget>
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<spacer name="horizontalSpacer_4">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>505</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
|
<widget class="QPushButton" name="closeBtn">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton
|
||||||
|
{
|
||||||
|
/*width: 172px;
|
||||||
|
height: 56px;*/
|
||||||
|
font: 10pt "新宋体";
|
||||||
|
background-color: qlineargradient(
|
||||||
|
spread:pad,
|
||||||
|
x1:0.5, y1:0, x2:0.5, y2:1,
|
||||||
|
stop:0 #283D86,
|
||||||
|
stop:1 #0F1A40
|
||||||
|
);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 8px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton:hover
|
||||||
|
{
|
||||||
|
background-color: qlineargradient(
|
||||||
|
spread:pad,
|
||||||
|
x1:0, y1:0, x2:1, y2:0,
|
||||||
|
stop:0 #3A4875,
|
||||||
|
stop:1 #5F6B91
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/* 按下时的效果 */
|
||||||
|
QPushButton:pressed
|
||||||
|
{
|
||||||
|
background-color: qlineargradient(
|
||||||
|
spread:pad,
|
||||||
|
x1:0, y1:0, x2:1, y2:0,
|
||||||
|
stop:0 #1A254F,
|
||||||
|
stop:1 #3A466B
|
||||||
|
);
|
||||||
|
/* 可选:添加下压效果 */
|
||||||
|
padding-top: 9px;
|
||||||
|
padding-bottom: 7px;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>icon/all/close.svg</normaloff>icon/all/close.svg</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QWidget" name="widget" native="true">
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>70</x>
|
||||||
|
<y>20</y>
|
||||||
|
<width>171</width>
|
||||||
|
<height>171</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap>icon/all/png/Group 356_slices/Group 356.png</pixmap>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="widget_2" native="true">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>70</x>
|
||||||
|
<y>210</y>
|
||||||
|
<width>306</width>
|
||||||
|
<height>111</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QLabel
|
||||||
|
{
|
||||||
|
color: #E2EDFF;
|
||||||
|
font: 10pt "Adobe Devanagari";
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>地址:北京市海淀区清河安宁庄东路18号5号楼二层205</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>电话:010-51292601</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_5">
|
||||||
|
<property name="text">
|
||||||
|
<string>邮箱:hanshanlong@iris-rs.cn</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="companylname_label">
|
||||||
|
<property name="text">
|
||||||
|
<string>公司:北京依锐思遥感技术有限公司</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="widget_3" native="true">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>260</x>
|
||||||
|
<y>50</y>
|
||||||
|
<width>171</width>
|
||||||
|
<height>101</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<property name="verticalSpacing">
|
||||||
|
<number>30</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="nameLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QLabel
|
||||||
|
{
|
||||||
|
color:#E2EDFF;
|
||||||
|
font: italic 18pt "Adobe Devanagari";
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Spectral Insight</string>
|
||||||
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::PlainText</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="versionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QLabel
|
||||||
|
{
|
||||||
|
color:#E2EDFF;
|
||||||
|
font: 10pt "Adobe Devanagari";
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>版本:3.0</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<zorder>label_7</zorder>
|
||||||
|
<zorder>widget_2</zorder>
|
||||||
|
<zorder>widget_3</zorder>
|
||||||
|
<zorder>companylname_label</zorder>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|||||||
@ -1,22 +1,38 @@
|
|||||||
#include "aboutWindow.h"
|
#include "aboutWindow.h"
|
||||||
|
#include <QSvgRenderer>
|
||||||
|
#include <QPainter>
|
||||||
|
|
||||||
aboutWindow::aboutWindow(QWidget* parent)
|
aboutWindow::aboutWindow(QWidget* parent)
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
|
QSvgRenderer svgRenderer(QString(".//icon//all//software_icon.svg"));
|
||||||
|
QPixmap pixmap(24, 24);
|
||||||
|
pixmap.fill(Qt::transparent); // <20><><EFBFBD><EFBFBD><EFBFBD><CDB8>
|
||||||
|
QPainter painter(&pixmap);
|
||||||
|
svgRenderer.render(&painter);
|
||||||
|
ui.iconLabel->setPixmap(pixmap);
|
||||||
|
|
||||||
ui.companylname_label->setOpenExternalLinks(true);//<2F><><EFBFBD><EFBFBD>Ϊtrue<75><65><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>ҳ
|
ui.companylname_label->setOpenExternalLinks(true);//<2F><><EFBFBD><EFBFBD>Ϊtrue<75><65><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>ҳ
|
||||||
QString text = ui.companylname_label->text();
|
QString text = ui.companylname_label->text();
|
||||||
ui.companylname_label->setText("<a style='color: green; text-decoration: none' href = http://www.iris-rs.cn/pr.jsp?_jcp=3_10>" + text);
|
ui.companylname_label->setText("<a style='color: green; text-decoration: none' href = http://www.iris-rs.cn/pr.jsp?_jcp=3_10>" + text);
|
||||||
|
|
||||||
Qt::WindowFlags flags = 0;
|
//Qt::WindowFlags flags = 0;
|
||||||
//flags |= Qt::WindowMinimizeButtonHint;
|
////flags |= Qt::WindowMinimizeButtonHint;
|
||||||
flags |= Qt::WindowCloseButtonHint;
|
//flags |= Qt::WindowCloseButtonHint;
|
||||||
flags |= Qt::MSWindowsFixedSizeDialogHint;
|
//flags |= Qt::MSWindowsFixedSizeDialogHint;
|
||||||
setWindowFlags(flags);
|
//setWindowFlags(flags);
|
||||||
|
setWindowFlags(Qt::FramelessWindowHint);
|
||||||
|
|
||||||
|
connect(this->ui.closeBtn, SIGNAL(released()), this, SLOT(onExit()));
|
||||||
}
|
}
|
||||||
|
|
||||||
aboutWindow::~aboutWindow()
|
aboutWindow::~aboutWindow()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void aboutWindow::onExit()
|
||||||
|
{
|
||||||
|
this->close();
|
||||||
}
|
}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
#include <QtWidgets/qdialog.h>
|
#include <QtWidgets/qdialog.h>
|
||||||
#include <qstring.h>
|
#include <qstring.h>
|
||||||
|
|
||||||
|
|
||||||
#include "ui_about.h"
|
#include "ui_about.h"
|
||||||
|
|
||||||
class aboutWindow :public QDialog
|
class aboutWindow :public QDialog
|
||||||
@ -19,6 +20,7 @@ private:
|
|||||||
Ui::aboutDialog ui;
|
Ui::aboutDialog ui;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
void onExit();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
|||||||
@ -37,6 +37,54 @@ ImageControl::ImageControl(QWidget* parent)
|
|||||||
ui.spinRed->setKeyboardTracking(false);
|
ui.spinRed->setKeyboardTracking(false);
|
||||||
ui.spinGreen->setKeyboardTracking(false);
|
ui.spinGreen->setKeyboardTracking(false);
|
||||||
ui.spinBlue->setKeyboardTracking(false);
|
ui.spinBlue->setKeyboardTracking(false);
|
||||||
|
|
||||||
|
ui.groupAdjustments->setStyleSheet(R"(
|
||||||
|
QDoubleSpinBox {
|
||||||
|
border: 1px solid #999;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 2px 20px 2px 6px; /* <20>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD><EFBFBD>ť */
|
||||||
|
background: #0e1c4c;
|
||||||
|
selection-background-color: #0078d7;
|
||||||
|
font-size: 12px;
|
||||||
|
color:#ACCDFF ;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::up-button {
|
||||||
|
subcontrol-origin: border;
|
||||||
|
subcontrol-position: top right;
|
||||||
|
width: 16px;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::down-button {
|
||||||
|
subcontrol-origin: border;
|
||||||
|
subcontrol-position: bottom right;
|
||||||
|
width: 16px;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::up-arrow {
|
||||||
|
image: url(:/icons/up.svg);
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::down-arrow {
|
||||||
|
image: url(:/icons/down.svg);
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::up-button:hover,
|
||||||
|
QDoubleSpinBox::down-button:hover {
|
||||||
|
background: #e6f2ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDoubleSpinBox::up-button:pressed,
|
||||||
|
QDoubleSpinBox::down-button:pressed {
|
||||||
|
background: #cce4ff;
|
||||||
|
}
|
||||||
|
)");
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageControl::~ImageControl()
|
ImageControl::~ImageControl()
|
||||||
|
|||||||
@ -28,7 +28,7 @@ QPushButton
|
|||||||
{
|
{
|
||||||
/*width: 172px;
|
/*width: 172px;
|
||||||
height: 56px;*/
|
height: 56px;*/
|
||||||
font: 19pt "新宋体";
|
font: 10pt "新宋体";
|
||||||
background-color: qlineargradient(
|
background-color: qlineargradient(
|
||||||
spread:pad,
|
spread:pad,
|
||||||
x1:0.5, y1:0, x2:0.5, y2:1,
|
x1:0.5, y1:0, x2:0.5, y2:1,
|
||||||
@ -37,7 +37,7 @@ QPushButton
|
|||||||
);
|
);
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 8px 16px;
|
padding: 8px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
QPushButton:hover
|
QPushButton:hover
|
||||||
@ -120,6 +120,14 @@ QSlider::handle:horizontal:pressed {
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupAdjustments">
|
<widget class="QGroupBox" name="groupAdjustments">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QLabel
|
||||||
|
{
|
||||||
|
color: #ACCDFF;
|
||||||
|
font-size: 14px;
|
||||||
|
font: 9pt "Adobe Devanagari";
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>调整</string>
|
<string>调整</string>
|
||||||
</property>
|
</property>
|
||||||
@ -237,6 +245,24 @@ QSlider::handle:horizontal:pressed {
|
|||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QPushButton" name="btnTrueColor">
|
<widget class="QPushButton" name="btnTrueColor">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>43</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>43</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>真彩色</string>
|
<string>真彩色</string>
|
||||||
</property>
|
</property>
|
||||||
@ -244,6 +270,12 @@ QSlider::handle:horizontal:pressed {
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QPushButton" name="btnColorInfrared">
|
<widget class="QPushButton" name="btnColorInfrared">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>43</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>假彩色</string>
|
<string>假彩色</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user