Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
zoompipeline
提交
5f07525d
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 搜索 >>
提交
5f07525d
编写于
8月 20, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a commandline auto start action, perpared for batch server forking.
上级
d7dc24bd
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
40 addition
and
6 deletion
+40
-6
ZoomPipeline_FuncSvr/main.cpp
ZoomPipeline_FuncSvr/main.cpp
+27
-5
ZoomPipeline_FuncSvr/zpmainframe.cpp
ZoomPipeline_FuncSvr/zpmainframe.cpp
+11
-0
ZoomPipeline_FuncSvr/zpmainframe.h
ZoomPipeline_FuncSvr/zpmainframe.h
+2
-1
未找到文件。
ZoomPipeline_FuncSvr/main.cpp
浏览文件 @
5f07525d
...
...
@@ -20,15 +20,37 @@ int main(int argc, char *argv[])
app
.
installTranslator
(
&
appTranslator
);
ZPMainFrame
w
;
//Command Line Args
//!the main program arg formats:
/*! ZoomPipeline_FuncSvr [[options] <config file name> [options]]
* When start with no commandline arguments, the server will enter a dialog-controlled UI model.
* If the commandline args has been specified, this server will enter an aut-config and start model.
* Cmdline formats:
* --ui (default) the program will start with an UI
* --noui the program will start without an UI
* config file has a same format with UI-Saved ini file. this file name should be surrounded with ""
* if there are spaces in filename.
*/
//Command Line Args, support batch auto-config and auto start.
if
(
argc
>
1
)
{
}
bool
bHasUI
=
false
;
QString
configfile
;
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
QString
strArg
=
argv
[
i
];
if
(
-
1
!=
strArg
.
indexOf
(
"--ui"
))
bHasUI
=
true
;
else
if
(
-
1
!=
strArg
.
indexOf
(
"--noui"
))
;
else
{
configfile
=
strArg
;
}
}
w
.
LoadSettingsAndForkServer
(
configfile
);
}
w
.
show
();
int
pp
=
app
.
exec
();
return
pp
;
...
...
ZoomPipeline_FuncSvr/zpmainframe.cpp
浏览文件 @
5f07525d
...
...
@@ -864,3 +864,14 @@ void ZPMainFrame::on_pushButton_join_clicked()
m_pClusterTerm
->
JoinCluster
(
QHostAddress
(
inputdlg
.
addr
()),
inputdlg
.
port
().
toInt
());
}
}
void
ZPMainFrame
::
LoadSettingsAndForkServer
(
const
QString
&
configfile
)
{
if
(
configfile
.
length
()
>
2
)
this
->
m_currentConffile
=
configfile
;
LoadSettings
(
m_currentConffile
);
if
(
ui
->
action_Start_Stop
->
isChecked
()
==
true
)
on_action_Start_Stop_triggered
(
false
);
on_action_Start_Stop_triggered
(
true
);
ui
->
action_Start_Stop
->
setChecked
(
true
);
}
ZoomPipeline_FuncSvr/zpmainframe.h
浏览文件 @
5f07525d
...
...
@@ -23,7 +23,8 @@ public:
explicit
ZPMainFrame
(
QWidget
*
parent
=
0
);
~
ZPMainFrame
();
void
timerEvent
(
QTimerEvent
*
);
//Auto start support
void
LoadSettingsAndForkServer
(
const
QString
&
configfile
);
protected:
void
changeEvent
(
QEvent
*
e
);
QStandardItemModel
*
m_pMsgModelNetwork
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录