mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: #1193 moved OV actions in a separatly menu.
This commit is contained in:
parent
cf39fcd06c
commit
a58624791b
5 changed files with 96 additions and 92 deletions
|
@ -50,32 +50,32 @@ public:
|
|||
@brief Called after the plugin has been loaded and the IPlugin instance has been created.
|
||||
|
||||
@details The initialize methods of plugins that depend
|
||||
on this plugin are called after the initialize method of this plugin
|
||||
has been called. Plugins should initialize their internal state in this
|
||||
method. Returns if initialization of successful. If it wasn't successful,
|
||||
the \a errorString should be set to a user-readable message
|
||||
describing the reason.
|
||||
on this plugin are called after the initialize method of this plugin
|
||||
has been called. Plugins should initialize their internal state in this
|
||||
method. Returns if initialization of successful. If it wasn't successful,
|
||||
the \a errorString should be set to a user-readable message
|
||||
describing the reason.
|
||||
*/
|
||||
virtual bool initialize(IPluginManager *pluginManager, QString *errorString) = 0;
|
||||
|
||||
/**
|
||||
@brief Called after the IPlugin::initialize() method has been called,
|
||||
and after both the IPlugin::initialize() and IPlugin::extensionsInitialized()
|
||||
methods of plugins that depend on this plugin have been called.
|
||||
and after both the IPlugin::initialize() and IPlugin::extensionsInitialized()
|
||||
methods of plugins that depend on this plugin have been called.
|
||||
|
||||
@details In this method, the plugin can assume that plugins that depend on
|
||||
this plugin are fully 'up and running'. It is a good place to
|
||||
look in the plugin manager's object pool for objects that have
|
||||
been provided by dependent plugins.
|
||||
@details In this method, the plugin can assume that plugins that depend on
|
||||
this plugin are fully 'up and running'. It is a good place to
|
||||
look in the plugin manager's object pool for objects that have
|
||||
been provided by dependent plugins.
|
||||
*/
|
||||
virtual void extensionsInitialized() = 0;
|
||||
|
||||
/**
|
||||
@\brief Called during a shutdown sequence in the same order as initialization
|
||||
before the plugins get deleted in reverse order.
|
||||
before the plugins get deleted in reverse order.
|
||||
|
||||
@details This method should be used to disconnect from other plugins,
|
||||
hide all UI, and optimize shutdown in general.
|
||||
hide all UI, and optimize shutdown in general.
|
||||
*/
|
||||
virtual void shutdown() { }
|
||||
|
||||
|
|
|
@ -241,14 +241,14 @@ void CMainWindow::settings()
|
|||
|
||||
void CMainWindow::updateStatusBar()
|
||||
{
|
||||
/* if (_isGraphicsInitialized)
|
||||
{
|
||||
_statusInfo->setText(QString("%1, Nb tri: %2 , Texture used (Mb): %3 , fps: %4 ").arg(
|
||||
Modules::objView().getDriver()->getVideocardInformation()).arg(
|
||||
_numTri).arg(
|
||||
_texMem, 0,'f',4).arg(
|
||||
_fps, 0,'f',2));
|
||||
}*/
|
||||
/* if (_isGraphicsInitialized)
|
||||
{
|
||||
_statusInfo->setText(QString("%1, Nb tri: %2 , Texture used (Mb): %3 , fps: %4 ").arg(
|
||||
Modules::objView().getDriver()->getVideocardInformation()).arg(
|
||||
_numTri).arg(
|
||||
_texMem, 0,'f',4).arg(
|
||||
_fps, 0,'f',2));
|
||||
}*/
|
||||
}
|
||||
|
||||
void CMainWindow::createActions()
|
||||
|
@ -313,40 +313,44 @@ void CMainWindow::createMenus()
|
|||
// add actions in tools menu
|
||||
QMenu *toolsMenu = menuManager->menu(Core::Constants::M_TOOLS);
|
||||
QAction *settingsAction = menuManager->action(Core::Constants::SETTINGS);
|
||||
toolsMenu->insertAction(settingsAction ,_AnimationDialog->toggleViewAction());
|
||||
QMenu *ovMenu = new QMenu("Object Viewer", this);
|
||||
menuManager->registerMenu(ovMenu, "ObjectViewerQt.ObjectViewer");
|
||||
toolsMenu->insertMenu(settingsAction, ovMenu);
|
||||
|
||||
ovMenu->insertAction(settingsAction ,_AnimationDialog->toggleViewAction());
|
||||
_AnimationDialog->toggleViewAction()->setIcon(QIcon(":/images/anim.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_AnimationSetDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_AnimationSetDialog->toggleViewAction());
|
||||
_AnimationSetDialog->toggleViewAction()->setIcon(QIcon(":/images/animset.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_SlotManagerDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_SlotManagerDialog->toggleViewAction());
|
||||
_SlotManagerDialog->toggleViewAction()->setIcon(QIcon(":/images/mixer.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_ParticleControlDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_ParticleControlDialog->toggleViewAction());
|
||||
_ParticleControlDialog->toggleViewAction()->setIcon(QIcon(":/images/pqrticles.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_DayNightDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_DayNightDialog->toggleViewAction());
|
||||
_DayNightDialog->toggleViewAction()->setIcon(QIcon(":/images/dqynight.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_WaterPoolDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_WaterPoolDialog->toggleViewAction());
|
||||
_WaterPoolDialog->toggleViewAction()->setIcon(QIcon(":/images/water.png"));
|
||||
_WaterPoolDialog->toggleViewAction()->setEnabled(false);
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_VegetableDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_VegetableDialog->toggleViewAction());
|
||||
_VegetableDialog->toggleViewAction()->setIcon(QIcon(":/images/veget.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_GlobalWindDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_GlobalWindDialog->toggleViewAction());
|
||||
_GlobalWindDialog->toggleViewAction()->setIcon(QIcon(":/images/wind.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_SkeletonScaleDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_SkeletonScaleDialog->toggleViewAction());
|
||||
_SkeletonScaleDialog->toggleViewAction()->setIcon(QIcon(":/images/ico_skelscale.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_TuneTimerDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_TuneTimerDialog->toggleViewAction());
|
||||
_TuneTimerDialog->toggleViewAction()->setIcon(QIcon(":/images/ico_framedelay.png"));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_SunColorDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_SunColorDialog->toggleViewAction());
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_TuneMRMDialog->toggleViewAction());
|
||||
ovMenu->insertAction(settingsAction ,_TuneMRMDialog->toggleViewAction());
|
||||
_TuneMRMDialog->toggleViewAction()->setIcon(QIcon(":/images/ico_mrm_mesh.png"));
|
||||
|
||||
connect(_ParticleControlDialog->toggleViewAction(), SIGNAL(triggered(bool)),
|
||||
|
@ -355,7 +359,7 @@ void CMainWindow::createMenus()
|
|||
connect(_ParticleControlDialog->toggleViewAction(), SIGNAL(triggered(bool)),
|
||||
_ParticleWorkspaceDialog->_PropertyDialog, SLOT(setVisible(bool)));
|
||||
|
||||
toolsMenu->insertAction(settingsAction ,_settingsAction);
|
||||
ovMenu->insertAction(settingsAction ,_settingsAction);
|
||||
toolsMenu->insertSeparator(settingsAction);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue