@@ -126,6 +126,13 @@ void mbCoreUi::initialize()
126126
127127 this ->setCentralWidget (m_windowManager->centralWidget ());
128128
129+ // Output
130+ m_dockOutput = new QDockWidget (" Output" , this );
131+ m_dockOutput->setObjectName (QStringLiteral (" dockOutput" ));
132+ // m_outputView = new mbCoreOutputView(m_dockOutput);
133+ this ->addDockWidget (Qt::BottomDockWidgetArea, m_dockOutput);
134+ this ->tabifyDockWidget (m_dockOutput, m_ui.dockLogView );
135+
129136 // Menu File
130137 m_ui.actionFileRecent ->setMenu (m_menuRecent);
131138 m_ui.actionFileNew ->setShortcuts (QKeySequence::New );
@@ -279,7 +286,6 @@ void mbCoreUi::initialize()
279286 m_tray->show ();
280287 qApp->setQuitOnLastWindowClosed (false );
281288 }
282-
283289}
284290
285291bool mbCoreUi::useNameWithSettings () const
@@ -344,9 +350,9 @@ void mbCoreUi::setCachedSettings(const MBSETTINGS &settings)
344350 m_help->setCachedSettings (settings);
345351}
346352
347- void mbCoreUi::showMessage (const QString &message)
353+ void mbCoreUi::logMessage (const QString &message)
348354{
349- m_logView->showMessage (message);
355+ m_logView->logMessage (message);
350356}
351357
352358void mbCoreUi::menuSlotFileNew ()
@@ -399,6 +405,7 @@ void mbCoreUi::menuSlotFileSave()
399405 menuSlotFileSaveAs ();
400406 return ;
401407 }
408+ saveProjectInner ();
402409 m_project->setWindowsData (m_windowManager->saveWindowsState ());
403410 m_project->resetVersion ();
404411 if (m_core->builderCore ()->saveCore (m_project))
@@ -500,12 +507,17 @@ void mbCoreUi::menuSlotEditSelectAll()
500507
501508void mbCoreUi::menuSlotViewProject ()
502509{
503-
510+ m_ui. dockProject -> show ();
504511}
505512
506513void mbCoreUi::menuSlotViewLogView ()
507514{
508-
515+ m_ui.dockLogView ->show ();
516+ }
517+
518+ void mbCoreUi::menuSlotViewOutput ()
519+ {
520+ m_dockOutput->show ();
509521}
510522
511523void mbCoreUi::menuSlotPortNew ()
@@ -575,7 +587,8 @@ void mbCoreUi::menuSlotDeviceExport()
575587
576588void mbCoreUi::menuSlotDataViewItemNew ()
577589{
578- MBSETTINGS p = dialogsCore ()->getDataViewItem (MBSETTINGS (), " New Item(s)" );
590+ MBSETTINGS ns = getDataViewItemCreateSettings ();
591+ MBSETTINGS p = dialogsCore ()->getDataViewItem (ns, " New Item(s)" );
579592 if (p.count ())
580593 {
581594 const mbCoreDataViewItem::Strings &sItem = mbCoreDataViewItem::Strings::instance ();
@@ -1231,3 +1244,13 @@ void mbCoreUi::closeEvent(QCloseEvent *e)
12311244 }
12321245}
12331246
1247+ void mbCoreUi::saveProjectInner ()
1248+ {
1249+ // Note: base implementation do nothing
1250+ }
1251+
1252+ MBSETTINGS mbCoreUi::getDataViewItemCreateSettings ()
1253+ {
1254+ return MBSETTINGS ();
1255+ }
1256+
0 commit comments