dialogsPanel.setPreferredSize(new Dimension(Main.pref.getInteger("toggleDialogs.width",DEF_TOGGLE_DLG_WIDTH), 0));
dialogsPanel.setMinimumSize(new Dimension(24, 0));
mapView.setMinimumSize(new Dimension(10,0));
// toolBarActions, map mode buttons
addMapMode(new IconToggleButton(mapModeSelect = new SelectAction(this)));
addMapMode(new IconToggleButton(mapModeSelectLasso = new LassoModeAction(), true));
addMapMode(new IconToggleButton(mapModeDraw = new DrawAction(this)));
addMapMode(new IconToggleButton(mapModeZoom = new ZoomAction(this)));
addMapMode(new IconToggleButton(new DeleteAction(this), true));
addMapMode(new IconToggleButton(new ParallelWayAction(this), true));