[GraphManager] add saveActiveGraphToDB() method

DONE:
- separate saving graph to DB from loadGraph method to other new
method, that is call insted of removing code.

TODO:
- repair savenig to DB to save correct name insted of empty string
- create new action in menu for saving graph to removig saving from
  loadGraph from file
- optimalize DB setting on start and, removing it from loading graph from
  file to speed up it
[GraphManager] fix savig correct graph name in DB

DONE:
- fix saveing graph to DB to save graph with its correct name.
- update emptyGraph - add optional parameter name.
- remove obsolete saveName from iporters::import() methods

TODO:
- repair savenig to DB to save correct name insted of empty string
- create new action in menu for saving graph to removig saving from loadGraph from file
- optimalize DB setting on start and, removing it from loading graph from file to speed up it
Merge branch 'develop' of github.com:marconak/Arvis into hotfixes-removeUselesslyBDConnections
[CoreWindow] add saveGraph action, add basic saveGraphToDB slot

DONE:
- rename saveGraph action to saveLayout
- add saveGraph action to file menu
- add saveGraphToDB slot for saveing only graph with original layout to DB
  and connect it with saveGraph action

TODO:
- saveGraph action was addet to separated loading graph from file from
  saveig graph to DB in future.
- 1. This will couse bugs, because user will
  have option save graph's layout without saveing graph before, that cause
  fail. There is no control if graph is in DB.
- 2. Repeatly saveing same graph cause adding original layout for graph in
  DB again. There is no control if graph is in DB before it's saveing.
- optimize DB setting on start and removing it form loading graph from
  file
[GraphManager] add test before saveing graph & layout

DONE:
- added test before saveing graph in method
  GraphManager.saveActiveGraphToDB to return if graph is allready saved
- added test before saveing layout in CoreWindow.saveLayoutToDB to return
  if active graph is not saved yet

TODO:
- separate saveLayout from CoreWindow to GraphManager
- in saveLayout when graph is not saved yet, add saveig it insted of
  canceling method
- optimize DB setting on start and removing it from loading graph from file
[DB] add createConnection() method

DONE:
- separate connection openig in to new method createConnection from DB
  constructor. Connection is created lazy when it is needed  in
  tmpGetConn() method, so only reading from file is now fast and without
  creating connection on DB.
- remove obsolete calling getGraphs() from GraphManager constructor
- remove obsolete calling getLayouts() from Graph::addLayout()

TODO:
- separate saveLayout from CoreWindow to GraphManager
- in saveLayout when is not saved yet, add saveing it instead of canceling
  method
- in saveing graph or layout add other test than conn.open that cause
  delay and freeze
[GraphManager]  update saveing active graph to DB

DONE:
- update saveActiveGraphToDB() in GraphManager, add functionality from
  saveGraphToDB slot in CoreWindow, so this slot now only call this
  method. This change was needed because coreWindow shoud not test
  connection and know how saving is proceed.

TODO:
- separate saveLayout from CoreWindow to GraphManager
- in saveLayout when is not saved yet, add saveing it instead of canceling method
- in saveing graph or layout add other test than conn.open that cause delay and freeze
[GraphManager] add saveActiveLayoutToDB() method

DONE:
- move functionality for saveing layout from CoreWindow to new added
  saveActiveGraphLayoutToDB() method in GraphManager. In CoreGraph is only
  getting name for layout via InputDialog and saveing functionality is in
  GraphManager. In next step will be easier to save graph before saving
  layout if needed.

TODO:
- in saveLayout when is not saved yet, add saveing it instead of canceling method
- in saveing graph or layout add other test than conn.open that cause delay and freeze
[GraphManager] add saving Graph to saving Layout first if needed

DONE:
- update saveActiveLayoutToDB() method, add saving Graph if it is not
 saved before saving layout.

TODO:
- in saveing graph or layout add other test than conn.open that cause delay and freeze
Merge branch 'develop' of github.com:marconak/Arvis into hotfixes-removeUselesslyBDConnections

Conflicts:
	include/Manager/Manager.h
	src/QOSG/CoreWindow.cpp
	src/main.cpp
[GraphDAO] fix bug made in refactoring in loading nodes from DB
[Opencv] fix conversion of variables
[Data] remove unused variables and TODO
[Aruco] edit Q_Declare and conversion
[Aruco] edit Q_Declare and conversion
Merge branch 'hotfixes-removeUselesslyBDConnections' of github.com:marconak/Arvis into hotfixes-removeUselesslyBDConnections
[CMakeLists] remove duplicate and edit OpenCV
[CMakeList] fix bug in target link properties
[CMakeLists] Added NOMINMAX definition

Added definition for windows platform, where you got error because min()
max() were defined as macros in windows.h