remove ui namespace which is not really used, move CameraData in camera_modes.h to avoid the inclusion of canva.h

This commit is contained in:
2018-11-27 14:24:01 +01:00
parent f34ffa825d
commit 0c6b409606
57 changed files with 538 additions and 597 deletions

View File

@@ -4,13 +4,11 @@
#include "node_progress_bar.h"
#include "node_dialog_cloud.h"
using namespace ui;
void App::cloud_upload()
{
if (!canvas)
return;
if (ui::Canvas::I->m_newdoc)
if (Canvas::I->m_newdoc)
{
auto msgbox = new NodeMessageBox();
msgbox->m_manager = &layout;
@@ -23,7 +21,7 @@ void App::cloud_upload()
else
{
auto upload_thread = [this] {
if (ui::Canvas::I->m_unsaved)
if (Canvas::I->m_unsaved)
{
Canvas::I->project_save_thread(doc_path);
}