Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
zoompipeline
提交
d2883028
zoompipeline
项目概览
colorEagleStdio
/
zoompipeline
通知
181
Star
12
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
zoompipeline
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d2883028
编写于
9月 05, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a UI settings to control the rabbish can
上级
b07317dc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
223 addition
and
156 deletion
+223
-156
ZoomPipeline_FuncSvr/zpmainframe.cpp
ZoomPipeline_FuncSvr/zpmainframe.cpp
+11
-1
ZoomPipeline_FuncSvr/zpmainframe.ui
ZoomPipeline_FuncSvr/zpmainframe.ui
+212
-155
未找到文件。
ZoomPipeline_FuncSvr/zpmainframe.cpp
浏览文件 @
d2883028
...
...
@@ -521,6 +521,11 @@ void ZPMainFrame::forkServer(QString config_file)
this
->
m_pClusterTerm
->
setPublishPort
(
strClusterPubPort
.
toInt
());
this
->
m_pClusterTerm
->
StartListen
(
QHostAddress
(
strClusterTermAddr
),
strClusterTermPort
.
toInt
());
int
nRabbishCanSize
=
settings
.
value
(
"settings/rubbish_can_size"
,
"32"
).
toInt
();
ZPNetwork
::
zp_netTransThread
::
RUBBISH_CAN_SIZE
=
nRabbishCanSize
;
if
(
this
->
windowTitle
().
indexOf
(
"("
)
==-
1
)
this
->
setWindowTitle
(
windowTitle
()
+
"("
+
strClusterPubName
+
")"
);
}
void
ZPMainFrame
::
on_action_About_triggered
()
...
...
@@ -648,6 +653,9 @@ void ZPMainFrame::LoadSettings(QString config_file)
ui
->
horizontalSlider_cluster_transThreads
->
setValue
(
nClusterTransThreads
);
int
nClusterWorkingThreads
=
settings
.
value
(
"Cluster/nClusterWorkingThreads"
,
"4"
).
toInt
();
ui
->
horizontalSlider_cluster_workingThread
->
setValue
(
nClusterWorkingThreads
);
//Rubbish Can (for Sockets)
int
nRabbishCanSize
=
settings
.
value
(
"settings/rubbish_can_size"
,
"32"
).
toInt
();
ui
->
horizontalSlider_rubbishCan
->
setValue
(
nRabbishCanSize
);
}
...
...
@@ -732,7 +740,9 @@ void ZPMainFrame::SaveSettings(QString config_file)
settings
.
setValue
(
"Cluster/strClusterPubPort"
,
ui
->
lineEdit_cluster_pub_Port
->
text
());
settings
.
setValue
(
"Cluster/nClusterTransThreads"
,
ui
->
horizontalSlider_cluster_transThreads
->
value
());
settings
.
setValue
(
"Cluster/nClusterWorkingThreads"
,
ui
->
horizontalSlider_cluster_workingThread
->
value
());
//Rubbish Can (for Sockets)
int
nRabbishCanSize
=
ui
->
horizontalSlider_rubbishCan
->
value
();
settings
.
setValue
(
"settings/rubbish_can_size"
,
nRabbishCanSize
);
}
void
ZPMainFrame
::
on_pushButton_addListener_clicked
()
{
...
...
ZoomPipeline_FuncSvr/zpmainframe.ui
浏览文件 @
d2883028
...
...
@@ -13,6 +13,9 @@
<property
name=
"windowTitle"
>
<string>
ZPMainFrame
</string>
</property>
<property
name=
"toolTipDuration"
>
<number>
-1
</number>
</property>
<property
name=
"iconSize"
>
<size>
<width>
16
</width>
...
...
@@ -28,9 +31,6 @@
<property
name=
"tabShape"
>
<enum>
QTabWidget::Rounded
</enum>
</property>
<property
name=
"toolTipDuration"
stdset=
"0"
>
<number>
-1
</number>
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
...
...
@@ -177,159 +177,200 @@
<attribute
name=
"title"
>
<string>
Task Pools
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_task_working_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
256
</number>
</property>
<property
name=
"pageStep"
>
<number>
16
</number>
</property>
<property
name=
"notchTarget"
>
<double>
8.000000000000000
</double>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_ssl_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_7"
>
<property
name=
"text"
>
<string>
Working Task Threads
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_plain_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"invertedAppearance"
>
<bool>
false
</bool>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_ssl_trans_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"pageStep"
>
<number>
8
</number>
</property>
<property
name=
"wrapping"
>
<bool>
false
</bool>
</property>
<property
name=
"notchTarget"
>
<double>
4.000000000000000
</double>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_6"
>
<property
name=
"text"
>
<string>
SSL connection Trans Threads
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_5"
>
<property
name=
"text"
>
<string>
Plain connection Trans Threads
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_working_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
256
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_plain_trans_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"pageStep"
>
<number>
8
</number>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_threadsApply"
>
<property
name=
"text"
>
<string>
Save
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"resource.qrc"
>
<normaloff>
:/icons/Resources/3floppy_mount-1.png
</normaloff>
:/icons/Resources/3floppy_mount-1.png
</iconset>
</property>
</widget>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_9"
>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_5"
>
<property
name=
"text"
>
<string>
Plain connection Trans Threads
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_plain_trans_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"pageStep"
>
<number>
8
</number>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_plain_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"invertedAppearance"
>
<bool>
false
</bool>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_6"
>
<property
name=
"text"
>
<string>
SSL connection Trans Threads
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_ssl_trans_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"pageStep"
>
<number>
8
</number>
</property>
<property
name=
"wrapping"
>
<bool>
false
</bool>
</property>
<property
name=
"notchTarget"
>
<double>
4.000000000000000
</double>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_ssl_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
64
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_7"
>
<property
name=
"text"
>
<string>
Working Task Threads
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QDial"
name=
"dial_task_working_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
256
</number>
</property>
<property
name=
"pageStep"
>
<number>
16
</number>
</property>
<property
name=
"notchTarget"
>
<double>
8.000000000000000
</double>
</property>
<property
name=
"notchesVisible"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"2"
column=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar_working_threads"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
256
</number>
</property>
<property
name=
"value"
>
<number>
1
</number>
</property>
<property
name=
"format"
>
<string>
%v
</string>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"4"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
40
</height>
</size>
</property>
</spacer>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_20"
>
<item>
<widget
class=
"QLabel"
name=
"label_31"
>
<property
name=
"text"
>
<string>
Rabbish Can Items Size
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QSlider"
name=
"horizontalSlider_rubbishCan"
>
<property
name=
"minimum"
>
<number>
16
</number>
</property>
<property
name=
"maximum"
>
<number>
65536
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"tickPosition"
>
<enum>
QSlider::NoTicks
</enum>
</property>
<property
name=
"tickInterval"
>
<number>
256
</number>
</property>
</widget>
</item>
<item>
<widget
class=
"QLCDNumber"
name=
"lcdNumber_rabbish"
>
<property
name=
"segmentStyle"
>
<enum>
QLCDNumber::Flat
</enum>
</property>
</widget>
</item>
<item>
<spacer
name=
"horizontalSpacer_13"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item>
<widget
class=
"QPushButton"
name=
"pushButton_threadsApply"
>
<property
name=
"text"
>
<string>
Save
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"resource.qrc"
>
<normaloff>
:/icons/Resources/3floppy_mount-1.png
</normaloff>
:/icons/Resources/3floppy_mount-1.png
</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
...
...
@@ -1166,5 +1207,21 @@
</hint>
</hints>
</connection>
<connection>
<sender>
horizontalSlider_rubbishCan
</sender>
<signal>
valueChanged(int)
</signal>
<receiver>
lcdNumber_rabbish
</receiver>
<slot>
display(int)
</slot>
<hints>
<hint
type=
"sourcelabel"
>
<x>
239
</x>
<y>
393
</y>
</hint>
<hint
type=
"destinationlabel"
>
<x>
346
</x>
<y>
393
</y>
</hint>
</hints>
</connection>
</connections>
</ui>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录