Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nmsdk
rdk
Commits
f5b1d3fadc04
Commit
f472a416
authored
Jun 12, 2021
by
Alexab
Browse files
Gui/Qt: minor updates.
--HG-- branch : MockCompsTest
parent
12c4250f4887
Changes
1
Hide whitespace changes
Inline
Side-by-side
GUI/Qt/UGEngineControllWidget.cpp
View file @
f5b1d3fa
...
...
@@ -25,6 +25,7 @@ UGEngineControllWidget::UGEngineControllWidget(QWidget *parent, RDK::UApplicatio
{
ui
->
setupUi
(
this
);
setAccessibleName
(
"UGEngineControllWidget"
);
this
->
setWindowTitle
(
"Neuro Modeler"
);
application
=
app
;
...
...
@@ -266,7 +267,7 @@ void UGEngineControllWidget::actionLoadConfig()
{
application
->
OpenProject
(
fileName
.
toLocal8Bit
().
constData
());
this
->
setWindowTitle
(
"
project
: "
+
fileName
);
this
->
setWindowTitle
(
"
Neuro Modeler [Configuration
: "
+
fileName
+
"]"
);
/*QStringList list = configFileName.split("/");
list.pop_back();*/
...
...
@@ -290,7 +291,7 @@ void UGEngineControllWidget::loadProjectExternal(const QString &config_path)
{
application
->
OpenProject
(
config_path
.
toLocal8Bit
().
constData
());
this
->
setWindowTitle
(
"
project
: "
+
config_path
);
this
->
setWindowTitle
(
"
Neuro Modeler [Configuration
: "
+
config_path
+
"]"
);
/*QStringList list = configFileName.split("/");
list.pop_back();*/
...
...
@@ -328,6 +329,8 @@ void UGEngineControllWidget::actionCreateConfig()
}
createConfigurationWizardWidget
->
show
();
if
(
application
->
GetProjectOpenFlag
())
this
->
setWindowTitle
((
"Neuro Modeler [Configuration: "
+
application
->
GetProjectPath
()
+
application
->
GetProjectFileName
()
+
"]"
).
c_str
());
}
void
UGEngineControllWidget
::
actionCreateSimple
()
...
...
@@ -383,6 +386,7 @@ void UGEngineControllWidget::actionCreateSimple()
application
->
CreateProject
(
file_name
,
classname
);
this
->
setWindowTitle
((
"Neuro Modeler [Configuration: "
+
file_name
+
"]"
).
c_str
());
RDK
::
UIVisualControllerStorage
::
UpdateInterface
();
}
catch
(
RDK
::
UException
&
e
)
...
...
@@ -406,6 +410,7 @@ void UGEngineControllWidget::actionCloseConfig()
{
application
->
PauseChannel
(
-
1
);
application
->
CloseProject
();
this
->
setWindowTitle
(
"Neuro Modeler"
);
RDK
::
UIVisualControllerStorage
::
UpdateInterface
(
true
);
}
catch
(
RDK
::
UException
&
e
)
...
...
@@ -447,7 +452,7 @@ void UGEngineControllWidget::actionCopyConfig()
std
::
string
open_file_name
=
res_path
.
toLocal8Bit
().
constData
();
open_file_name
+=
project_file_name
;
application
->
OpenProject
(
open_file_name
);
this
->
setWindowTitle
(
QString
(
"
project
: "
)
+
open_file_name
.
c_str
());
this
->
setWindowTitle
(
QString
(
"
Neuro Modeler [Configuration
: "
)
+
open_file_name
.
c_str
()
+
"]"
);
RDK
::
UIVisualControllerStorage
::
UpdateInterface
(
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment