Changed: #1193 All dock widgets by default tabbed. And default size main window 1014x768.
This commit is contained in:
parent
dec67309f3
commit
239bcf08e5
2 changed files with 12 additions and 10 deletions
|
@ -69,6 +69,7 @@ MainWindow::MainWindow(ExtensionSystem::IPluginManager *pluginManager, QWidget *
|
||||||
createActions();
|
createActions();
|
||||||
createMenus();
|
createMenus();
|
||||||
createStatusBar();
|
createStatusBar();
|
||||||
|
resize(1024, 768);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
|
|
@ -391,22 +391,22 @@ void CMainWindow::createDialogs()
|
||||||
|
|
||||||
// create animation slot manager dialog
|
// create animation slot manager dialog
|
||||||
_SlotManagerDialog = new CSlotManagerDialog(this);
|
_SlotManagerDialog = new CSlotManagerDialog(this);
|
||||||
addDockWidget(Qt::RightDockWidgetArea, _SlotManagerDialog);
|
tabifyDockWidget(_AnimationSetDialog, _SlotManagerDialog);
|
||||||
_SlotManagerDialog->setVisible(false);
|
_SlotManagerDialog->setVisible(false);
|
||||||
|
|
||||||
// create particle control dialog
|
// create particle control dialog
|
||||||
_ParticleControlDialog = new CParticleControlDialog(_SkeletonTreeModel ,this);
|
_ParticleControlDialog = new CParticleControlDialog(_SkeletonTreeModel ,this);
|
||||||
addDockWidget(Qt::BottomDockWidgetArea, _ParticleControlDialog);
|
tabifyDockWidget(_AnimationDialog, _ParticleControlDialog);
|
||||||
_ParticleControlDialog->setVisible(false);
|
_ParticleControlDialog->setVisible(false);
|
||||||
|
|
||||||
// create particle workspace dialog
|
// create particle workspace dialog
|
||||||
_ParticleWorkspaceDialog = new CParticleWorkspaceDialog(this);
|
_ParticleWorkspaceDialog = new CParticleWorkspaceDialog(this);
|
||||||
addDockWidget(Qt::LeftDockWidgetArea, _ParticleWorkspaceDialog);
|
tabifyDockWidget(_SlotManagerDialog, _ParticleWorkspaceDialog);
|
||||||
_ParticleWorkspaceDialog->setVisible(false);
|
_ParticleWorkspaceDialog->setVisible(false);
|
||||||
|
|
||||||
// create day night (water) dialog
|
// create day night (water) dialog
|
||||||
_DayNightDialog = new CDayNightDialog(this);
|
_DayNightDialog = new CDayNightDialog(this);
|
||||||
addDockWidget(Qt::BottomDockWidgetArea, _DayNightDialog);
|
addDockWidget(Qt::TopDockWidgetArea, _DayNightDialog);
|
||||||
_DayNightDialog->setVisible(false);
|
_DayNightDialog->setVisible(false);
|
||||||
|
|
||||||
// create water pool editor dialog
|
// create water pool editor dialog
|
||||||
|
@ -421,35 +421,36 @@ void CMainWindow::createDialogs()
|
||||||
|
|
||||||
// create global wind power/direction dialog
|
// create global wind power/direction dialog
|
||||||
_GlobalWindDialog = new CGlobalWindDialog(this);
|
_GlobalWindDialog = new CGlobalWindDialog(this);
|
||||||
addDockWidget(Qt::TopDockWidgetArea, _GlobalWindDialog);
|
tabifyDockWidget(_DayNightDialog, _GlobalWindDialog);
|
||||||
_GlobalWindDialog->setVisible(false);
|
_GlobalWindDialog->setVisible(false);
|
||||||
|
|
||||||
// create sun color dialog
|
// create sun color dialog
|
||||||
_SunColorDialog = new CSunColorDialog(this);
|
_SunColorDialog = new CSunColorDialog(this);
|
||||||
addDockWidget(Qt::LeftDockWidgetArea, _SunColorDialog);
|
tabifyDockWidget(_SlotManagerDialog, _SunColorDialog);
|
||||||
_SunColorDialog->setVisible(false);
|
_SunColorDialog->setVisible(false);
|
||||||
|
|
||||||
// add property editor in widget area
|
// add property editor in widget area
|
||||||
addDockWidget(Qt::RightDockWidgetArea, _ParticleWorkspaceDialog->_PropertyDialog);
|
addDockWidget(Qt::RightDockWidgetArea, _ParticleWorkspaceDialog->_PropertyDialog);
|
||||||
|
tabifyDockWidget(_VegetableDialog, _ParticleWorkspaceDialog->_PropertyDialog);
|
||||||
_ParticleWorkspaceDialog->_PropertyDialog->setVisible(false);
|
_ParticleWorkspaceDialog->_PropertyDialog->setVisible(false);
|
||||||
|
|
||||||
// create skeleton scale dialog
|
// create skeleton scale dialog
|
||||||
_SkeletonScaleDialog = new CSkeletonScaleDialog(_SkeletonTreeModel, this);
|
_SkeletonScaleDialog = new CSkeletonScaleDialog(_SkeletonTreeModel, this);
|
||||||
addDockWidget(Qt::RightDockWidgetArea, _SkeletonScaleDialog);
|
tabifyDockWidget(_VegetableDialog, _SkeletonScaleDialog);
|
||||||
_SkeletonScaleDialog->setVisible(false);
|
_SkeletonScaleDialog->setVisible(false);
|
||||||
|
|
||||||
// create setup fog dialog
|
// create setup fog dialog
|
||||||
_SetupFog = new CSetupFog(this);
|
_SetupFog = new CSetupFog(this);
|
||||||
addDockWidget(Qt::RightDockWidgetArea, _SetupFog);
|
tabifyDockWidget(_VegetableDialog, _SetupFog);
|
||||||
_SetupFog->setVisible(false);
|
_SetupFog->setVisible(false);
|
||||||
|
|
||||||
// create tune mrm dialog
|
// create tune mrm dialog
|
||||||
_TuneMRMDialog = new CTuneMRMDialog(this);
|
_TuneMRMDialog = new CTuneMRMDialog(this);
|
||||||
addDockWidget(Qt::BottomDockWidgetArea, _TuneMRMDialog);
|
tabifyDockWidget(_ParticleControlDialog, _TuneMRMDialog);
|
||||||
_TuneMRMDialog->setVisible(false);
|
_TuneMRMDialog->setVisible(false);
|
||||||
|
|
||||||
_TuneTimerDialog = new CTuneTimerDialog(this);
|
_TuneTimerDialog = new CTuneTimerDialog(this);
|
||||||
addDockWidget(Qt::TopDockWidgetArea, _TuneTimerDialog);
|
tabifyDockWidget(_GlobalWindDialog, _TuneTimerDialog);
|
||||||
_TuneTimerDialog->setVisible(false);
|
_TuneTimerDialog->setVisible(false);
|
||||||
|
|
||||||
connect(_ParticleControlDialog, SIGNAL(changeState()), _ParticleWorkspaceDialog, SLOT(setNewState()));
|
connect(_ParticleControlDialog, SIGNAL(changeState()), _ParticleWorkspaceDialog, SLOT(setNewState()));
|
||||||
|
|
Loading…
Reference in a new issue