pipelineBrowserWidget = new pqPipelineBrowserWidget(desk);
pipelineBrowserWidget->hide();
- sourcesMenu = new QMenu(desk);
- pqParaViewMenuBuilders::buildSourcesMenu(*sourcesMenu, desk);
-
- filtersMenu = new QMenu(desk);
- pqParaViewMenuBuilders::buildFiltersMenu(*filtersMenu, desk);
-
- macrosMenu = new QMenu(desk);
- pqParaViewMenuBuilders::buildMacrosMenu(*macrosMenu);
+// sourcesMenu = new QMenu(desk);
+// pqParaViewMenuBuilders::buildSourcesMenu(*sourcesMenu, desk);
+// filtersMenu = new QPVMenu(desk);
+// pqParaViewMenuBuilders::buildFiltersMenu(*filtersMenu, desk);
+// macrosMenu = new QMenu(desk);
+// pqParaViewMenuBuilders::buildMacrosMenu(*macrosMenu);
}
PVViewer_GUIElements * PVViewer_GUIElements::GetInstance(SUIT_Desktop* desk)
return theInstance;
}
-void PVViewer_GUIElements::updateSourcesMenu(QMenu *menu)
-{
- if (menu)
- {
- menu->clear();
- QList<QAction *> act_list = sourcesMenu->actions();
- foreach(QAction * a, act_list)
- {
- menu->addAction(a);
- }
- }
-}
-
-void PVViewer_GUIElements::updateFiltersMenu(QMenu *menu)
-{
- if (menu)
- {
- menu->clear();
- QList<QAction *> act_list = filtersMenu->actions();
- foreach(QAction * a, act_list)
- {
- menu->addAction(a);
- }
- }
-}
-
-void PVViewer_GUIElements::updateMacrosMenu(QMenu *menu)
-{
- if (menu)
- {
- menu->clear();
- QList<QAction *> act_list = macrosMenu->actions();
- foreach(QAction * a, act_list)
- {
- menu->addAction(a);
- }
- }
-}
+//void PVViewer_GUIElements::updateSourcesMenu(QMenu *menu)
+//{
+// if (menu)
+// {
+// menu->clear();
+// QList<QAction *> act_list = sourcesMenu->actions();
+// foreach(QAction * a, act_list)
+// {
+// menu->addAction(a);
+// }
+// }
+//}
+//
+//void PVViewer_GUIElements::updateFiltersMenu(QMenu *menu)
+//{
+// if (menu)
+// {
+// filtersMenu->linkToMenu(menu);
+// menu->clear();
+// QList<QAction *> act_list = filtersMenu->actions();
+// foreach(QAction * a, act_list)
+// {
+// menu->addAction(a);
+// }
+// }
+//}
+//
+//void PVViewer_GUIElements::updateMacrosMenu(QMenu *menu)
+//{
+// if (menu)
+// {
+// menu->clear();
+// QList<QAction *> act_list = macrosMenu->actions();
+// foreach(QAction * a, act_list)
+// {
+// menu->addAction(a);
+// }
+// }
+//}
void PVViewer_GUIElements::onEmulateApply()
/*!
* Some GUI elements of ParaView need to be instanciated in a proper order. This class
* holds all of them for the sake of clarity.
- * For example sources menu should be built *before* loading ParaView's configuration, so that the
- * list of sources gets properly populated.
*/
class PVVIEWER_EXPORT PVViewer_GUIElements: public QObject
{
pqPipelineBrowserWidget * getPipelineBrowserWidget() { return pipelineBrowserWidget; }
// Update the sources menu from what was built in private member 'sourcesMenu'
- void updateSourcesMenu(QMenu *);
- void updateFiltersMenu(QMenu *);
- void updateMacrosMenu(QMenu *);
+// void updateSourcesMenu(QMenu *);
+// void updateFiltersMenu(QMenu *);
+// void updateMacrosMenu(QMenu *);
public slots:
void onEmulateApply(); // better use the slot from PVViewer_ViewManager if you want to trigger "Apply"
//! Initialize ParaView if not yet done (once per session)
static bool ParaviewInitApp(SUIT_Desktop* aDesktop, LogWindow * w);
static void ParaviewInitBehaviors(bool fullSetup=false, SUIT_Desktop* aDesktop=0);
- static void ParaviewLoadConfigurations();
+ static void ParaviewLoadConfigurations(bool force=false);
static void ParaviewCleanup();
//! Connect to the external PVServer, using the PARAVIS engine to launch it if it is not