void meshRemapTool::helpStateHasChanged() // // Description: // Set up the correct information in the help window based // on the current state. // { switch (fNumSelectedPoints) { case 0: fCurrentHelpString = "For auto remap select source mesh and then destination mesh and Press Enter. For manual remap select 1st vertex on source mesh."; break; case 1: fCurrentHelpString = "Select 2nd vertex on source mesh."; break; case 2: fCurrentHelpString = "Select 3rd vertex on source mesh."; break; case 3: fCurrentHelpString = "Select 1st vertex on target mesh."; break; case 4: fCurrentHelpString = "Select 2nd vertex on target mesh."; break; case 5: fCurrentHelpString = "Select 3rd vertex on target mesh."; break; default: // nothing, shouldn't be here break; } setHelpString( fCurrentHelpString ); }
MStatus meshReorderTool::helpStateHasChanged( MEvent &) // // Description: // Set up the correct information in the help window based // on the current state. // { switch (fNumSelectedPoints) { case 0: fCurrentHelpString = "Select 1st vertex on mesh"; break; case 1: fCurrentHelpString = "Select 2nd vertex, connected to 1st vertex and on the same face"; break; case 2: fCurrentHelpString = "Select 3rd vertex, connected to 2nd vertex and on the same face"; break; default: // nothing, shouldn't be here break; } setHelpString( fCurrentHelpString ); return MS::kSuccess; }
void meshRemapTool::helpStateHasChanged() // // Description: // Set up the correct information in the help window based // on the current state. // { switch (fNumSelectedPoints) { case 0: fCurrentHelpString = "Select 1st point on source mesh."; break; case 1: fCurrentHelpString = "Select 2nd point on source mesh."; break; case 2: fCurrentHelpString = "Select 3rd point on source mesh."; break; case 3: fCurrentHelpString = "Select 1st point on target mesh."; break; case 4: fCurrentHelpString = "Select 2nd point on target mesh."; break; case 5: fCurrentHelpString = "Select 3rd point on target mesh."; break; default: // nothing, shouldn't be here break; } setHelpString( fCurrentHelpString ); }
Box& Box::loadSettings(QSettings &settings) { setHelpString(settings.value("help").toString()); readPtrListSettings(inputPorts(), settings, "inputs"); readPtrListSettings(outputPorts(), settings, "outputs"); readListSettings<BoxProperty>(this, std::mem_fun(&Box::setBoxProperties), settings, "properties"); return *this; }
MStatus customAttrCtx::doEnterRegion(MEvent &event) // // Print the tool description in the help line. // { MString str(MOVEHELPSTR); return setHelpString(str); }
MStatus moveContext::doEnterRegion( MEvent & /*event*/ ) // // Print the tool description in the help line. // { MString str( MOVEHELPSTR ); return setHelpString( str ); }
void customAttrCtx::toolOnSetup(MEvent &) { MString str(MOVEHELPSTR); setHelpString(str); updateManipulators(this); MStatus status; id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified, updateManipulators, this, &status); if (!status) { cerr << "Model addCallback failed\n"; } }
void ComponentScaleContext::toolOnSetup(MEvent &) { MString str("Scale the selected components"); setHelpString(str); updateManipulators(this); MStatus status; id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified, updateManipulators, this, &status); if (!status) { MGlobal::displayError("Model addCallback failed"); } }
void RotateManipContext::toolOnSetup(MEvent &) { MString str("Rotate the object using the rotation handles"); setHelpString(str); updateManipulators(this); MStatus status; id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified, updateManipulators, this, &status); if (!status) { MGlobal::displayError("Model addCallback failed"); } }
void SelectRingContext2::toolOnSetup( MEvent &event ) { // Get the GUI's click box size MGlobal::executeCommand( "selectPref -query -clickBoxSize", clickBoxSize ); setHelpString( helpTxt ); setCursor( MCursor::editCursor ); // Record current selection mode and masks prevSelMode = MGlobal::selectionMode(); if( prevSelMode == MGlobal::kSelectComponentMode ) prevCompMask = MGlobal::componentSelectionMask(); else prevObjMask = MGlobal::objectSelectionMask(); }
void HairToolContext::toolOnSetup(MEvent& event){ // set the help text in the maya help boxs setHelpString("Overcoat Hair Tool" ); intersectionFound = false; if(HairToolContext::initalized == false){ red = 0.0f; green = 0.0f; blue = 0.0f; thick = 1.0f; brush = 1; transparency = 0.0f; spacing = 1.0f; HairToolContext::initalized = true; } }
MStatus marqueeContext::doEnterRegion( MEvent & ) { return setHelpString( helpString ); }
void marqueeContext::toolOnSetup ( MEvent & ) { setHelpString( helpString ); }
Port& Port::loadSettings(QSettings& settings) { setHelpString(settings.value("help").toString()); hints().loadSettings(settings); return *this; }
void moveContext::toolOnSetup( MEvent & ) { MString str( MOVEHELPSTR ); setHelpString( str ); }
void lassoTool::toolOnSetup ( MEvent & ) { setHelpString( helpString ); }