bool BaseFrame::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: updateDrawing(); break; case 1: dockBeingClosed(); break; case 2: changeBackgroundColor((QColor)(*((QColor*)static_QUType_ptr.get(_o+1)))); break; case 3: setMode((BaseFrame::Mode)(*((BaseFrame::Mode*)static_QUType_ptr.get(_o+1)))); break; default: return QFrame::qt_invoke( _id, _o ); } return TRUE; }
bool KlustersView::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: updatedDimensions((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; case 1: singleColorUpdated((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 2: clusterRemovedFromView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 3: clusterAddedToView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 4: newClusterAddedToView((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(int)static_QUType_int.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break; case 5: newClusterAddedToView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 6: spikesRemovedFromClusters((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2)); break; case 7: modeToSet((BaseFrame::Mode)(*((BaseFrame::Mode*)static_QUType_ptr.get(_o+1)))); break; case 8: spikesAddedToCluster((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 9: updateContents(); break; case 10: emptySelection(); break; case 11: modifiedClusters((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break; case 12: modifiedClustersUndo((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2)); break; case 13: updatedTimeFrame((long)(*((long*)static_QUType_ptr.get(_o+1))),(long)(*((long*)static_QUType_ptr.get(_o+2)))); break; case 14: sampleMode(); break; case 15: timeFrameMode(); break; case 16: meanPresentation(); break; case 17: allWaveformsPresentation(); break; case 18: overLayPresentation(); break; case 19: sideBySidePresentation(); break; case 20: increaseAmplitude(); break; case 21: decreaseAmplitude(); break; case 22: updateDisplayNbSpikes((long)(*((long*)static_QUType_ptr.get(_o+1)))); break; case 23: increaseAmplitudeofCorrelograms(); break; case 24: decreaseAmplitudeofCorrelograms(); break; case 25: noScale(); break; case 26: maxScale(); break; case 27: shoulderScale(); break; case 28: updatedBinSizeAndTimeFrame((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; case 29: setShoulderLine((bool)static_QUType_bool.get(_o+1)); break; case 30: updateDrawing(); break; case 31: changeGain((int)static_QUType_int.get(_o+1)); break; case 32: changeTimeInterval((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 33: changeChannelPositions((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1))); break; case 34: computeProbabilities(); break; case 35: changeBackgroundColor((QColor)(*((QColor*)static_QUType_ptr.get(_o+1)))); break; case 36: clustersRenumbered((bool)static_QUType_bool.get(_o+1)); break; case 37: updateClusters((QString)static_QUType_QString.get(_o+1),(QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+2)),(ItemColors*)static_QUType_ptr.get(_o+3),(bool)static_QUType_bool.get(_o+4)); break; case 38: increaseAllAmplitude(); break; case 39: decreaseAllAmplitude(); break; case 40: showLabels((bool)static_QUType_bool.get(_o+1)); break; case 41: nextCluster(); break; case 42: previousCluster(); break; default: return KDockArea::qt_emit(_id,_o); } return TRUE; }
ccDisplayOptionsDlg::ccDisplayOptionsDlg(QWidget* parent) : QDialog(parent, Qt::Tool) , Ui::DisplayOptionsDlg() { setupUi(this); connect(ambientColorButton, SIGNAL(clicked()), this, SLOT(changeLightAmbientColor())); connect(diffuseColorButton, SIGNAL(clicked()), this, SLOT(changeLightDiffuseColor())); connect(specularColorButton, SIGNAL(clicked()), this, SLOT(changeLightSpecularColor())); connect(meshBackColorButton, SIGNAL(clicked()), this, SLOT(changeMeshBackDiffuseColor())); connect(meshSpecularColorButton, SIGNAL(clicked()), this, SLOT(changeMeshSpecularColor())); connect(meshFrontColorButton, SIGNAL(clicked()), this, SLOT(changeMeshFrontDiffuseColor())); connect(bbColorButton, SIGNAL(clicked()), this, SLOT(changeBBColor())); connect(bkgColorButton, SIGNAL(clicked()), this, SLOT(changeBackgroundColor())); connect(labelBkgColorButton, SIGNAL(clicked()), this, SLOT(changeLabelBackgroundColor())); connect(labelMarkerColorButton, SIGNAL(clicked()), this, SLOT(changeLabelMarkerColor())); connect(enableGradientCheckBox, SIGNAL(clicked()), this, SLOT(changeBackgroundGradient())); connect(pointsColorButton, SIGNAL(clicked()), this, SLOT(changePointsColor())); connect(textColorButton, SIGNAL(clicked()), this, SLOT(changeTextColor())); connect(decimateMeshBox, SIGNAL(clicked()), this, SLOT(changeMeshDecimation())); connect(decimateCloudBox, SIGNAL(clicked()), this, SLOT(changeCloudDecimation())); connect(useVBOCheckBox, SIGNAL(clicked()), this, SLOT(changeVBOUsage())); connect(showCrossCheckBox, SIGNAL(clicked()), this, SLOT(changeCrossDisplayed())); connect(colorScaleShowHistogramCheckBox, SIGNAL(clicked()), this, SLOT(changeColorScaleShowHistogram())); connect(useColorScaleShaderCheckBox, SIGNAL(clicked()), this, SLOT(changeColorScaleUseShader())); connect(colorRampWidthSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeColorScaleRampWidth(int))); connect(defaultFontSizeSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeDefaultFontSize(int))); connect(labelFontSizeSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeLabelFontSize(int))); connect(numberPrecisionSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeNumberPrecision(int))); connect(labelOpacitySpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeLabelOpacity(int))); connect(labelMarkerSizeSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeLabelMarkerSize(int))); connect(zoomSpeedDoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(changeZoomSpeed(double))); connect(maxCloudSizeDoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(changeMaxCloudSize(double))); connect(maxMeshSizeDoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(changeMaxMeshSize(double))); connect(autoComputeOctreeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeAutoComputeOctreeOption(int))); connect(okButton, SIGNAL(clicked()), this, SLOT(doAccept())); connect(applyButton, SIGNAL(clicked()), this, SLOT(apply())); connect(resetButton, SIGNAL(clicked()), this, SLOT(reset())); connect(cancelButton, SIGNAL(clicked()), this, SLOT(doReject())); oldParameters = parameters = ccGui::Parameters(); refresh(); setUpdatesEnabled(true); }
//! //! Constructor of the ViewportPanel class. //! //! \param parent The parent widget the created instance will be a child of. //! \param flags Extra widget options. //! ViewportPanel::ViewportPanel ( QWidget *parent /* = 0 */, Qt::WindowFlags flags /* = 0 */ ) : ViewPanel(ViewPanel::T_Viewport, parent, flags), m_viewportWidget(0), m_fullscreen(false), m_stageActionGroup(0), m_cameraComboBox(0), // m_cameraCreator(false), // m_fogSpinBox(new QDoubleSpinBox(this)), // m_fogCheckBox(new QCheckBox(this)), // m_fogColorButton(new QPushButton(this)), m_backgroundColorButton(new QPushButton(this)) { setupUi(this); m_viewportWidget = new ViewportWidget(this); //m_viewportWidget = new ViewportWidget(this, 1, 0, 1); unsigned int selectedStageIndex = m_viewportWidget->getStageIndex(); ui_vboxLayout->addWidget(m_viewportWidget); connect(m_viewportWidget, SIGNAL(viewChanged(ViewingParameters *)), SLOT(updateCamera(ViewingParameters *))); // set up connections for main tool bar actions connect(ui_homeAction, SIGNAL(triggered()), m_viewportWidget, SLOT(homeView())); connect(ui_wireframeAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(setWireframe(bool))); connect(ui_backfaceCullingAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(setBackfaceCulling(bool))); // connect(ui_originAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(toggleOrigin())); // connect(ui_centerPointAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(toggleCenterPoint())); connect(ui_orientationIndicatorAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(toggleOrientationIndicator())); connect(ui_gridAction, SIGNAL(toggled(bool)), m_viewportWidget, SLOT(toggleGrid())); #ifdef USE_STEREO connect(ui_stereoAction, SIGNAL(toggled(bool)), this, SLOT(toggleFullscreen(bool))); connect(ui_stereoDialogAction, SIGNAL(triggered()), this, SLOT(showStereoDialog())); #endif // connect(m_fogSpinBox, SIGNAL(valueChanged(double)), this, SLOT(changeFog(double))); // connect(m_fogCheckBox, SIGNAL(stateChanged(int)), this, SLOT(changeFog(int))); // connect(m_fogColorButton, SIGNAL(pressed()), this, SLOT(changeFogColor())); connect(m_backgroundColorButton, SIGNAL(pressed()), this, SLOT(changeBackgroundColor())); // initialize main tool bar actions ui_wireframeAction->setChecked(false); ui_backfaceCullingAction->setChecked(false); ui_gridAction->setChecked(true); ui_orientationIndicatorAction->setChecked(true); ui_stereoAction->setChecked(false); // ui_overlayOnlyAction->setChecked(false); // m_parameterMap["overlayOnly"] = "0"; // create an action group for the stage actions m_stageActionGroup = new QActionGroup(this); for (unsigned int stageIndex = 1; stageIndex <= NUMBER_OF_STAGES; ++stageIndex) { QString text; if (stageIndex < 10) text = QString("Stage &%1").arg(stageIndex); else if (stageIndex == 10) text = "Stage 1&0"; else text = QString("Stage %1").arg(stageIndex); QIcon icon (QString(":/stage%1Icon").arg(stageIndex)); QAction *stageAction = new QAction(icon, text, m_stageActionGroup); QVariant indexVariant(stageIndex); stageAction->setData(indexVariant); connect(stageAction, SIGNAL(toggled(bool)), SLOT(selectStage())); stageAction->setCheckable(true); if (stageIndex == selectedStageIndex) { stageAction->setChecked(true); m_parameterMap["stageIndex"] = QString::number(stageIndex); } } //connect(m_stageActionGroup, SIGNAL(triggered(QAction *)), SLOT(selectStage(QAction *))); // create the stages drop-down menu QMenu *stagesMenu = new QMenu("Stages Menu", this); stagesMenu->addActions(m_stageActionGroup->actions()); ui_stagesMenuAction->setMenu(stagesMenu); }