void ShowHeader(LPCTSTR lpMailID) { int i = 0; char buf[1024]; char str[1024]; buf[0] = 0; if (lpMailID != NULL && lpMailID[0] != 0) { for (i = 0; i < ListSize; i++) { bka.GetSpecifiedHeader(headerList[i], buf, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; if (buf[0] != 0) { break; } } } else { buf[0] = 0; } if (buf[0] != 0) { sprintf(str, "[%s: %s]", headerList[i], buf); } else { str[0] = 0; } setTitleString(str, strlen(str) + 1); }
//////////////////////////////////////////////////////////////////////// /// @brief Called when a folder is opened. /// @return Always return 0. DLLEXPORT int WINAPI BKC_OnOpenFolder(LPCTSTR lpFolderID) { // Always return 0. setTitleString("", 0); return 0; }
marqueeContext::marqueeContext() { setTitleString ( "Marquee Tool" ); // Tell the context which XPM to use so the tool can properly // be a candidate for the 6th position on the toolbar. setImage("marqueeTool.xpm", MPxContext::kImage1 ); }
moveContext::moveContext() { MString str( MOVETITLESTR ); setTitleString( str ); // Tell the context which XPM to use so the tool can properly // be a candidate for the 6th position on the mini-bar. setImage("moveTool.xpm", MPxContext::kImage1 ); }
SelectRingContext2::SelectRingContext2() { listAdjust = MGlobal::kReplaceList; selVertices = false; selEdges = true; selFaces = false; selType = SelectRingToolCmd2::RING; setTitleString( "Select Ring Tool" ); setImage( "selectRingContext2.xpm", MPxContext::kImage1 ); }
Button::Button(float rel_x, float rel_y, float rel_width, float rel_height, std::string title, int outcome, DisplayPiece * parent) : DisplayPiece(rel_x, rel_y, rel_width, rel_height, parent) { std::cout << "INFO: Button::Button:1 In first Constructor" << std::endl; /*mTexture = parent->mTexture; mRenderer = nullptr; mWindow = nullptr; mTitle = nullptr;*/ //FunctionCaller funcCaller = nullptr; mFunctionCaller = nullptr; ArgContainer args = ArgContainer(); //setFunctionCaller(funcCaller); setArgContainer(args); setParent(parent); mTexture = loadTexture("res/images/menu/button_0_0.png", mRenderer, true); //mRenderer = renderer; //mWindow = window; //mRect = new SDL_Rect(); /* setRelPosX(rel_x); setRelPosY(rel_y); setRelWidth(rel_w); setRelHeight(rel_h);*/ setHighlight(false); setTitleString(title); //mTextMaker = TextHandler; makeTitleTextLine(); setOutcome(outcome); std::cout << "INFO: Button::Button:1 End of first constructor" << std::endl; }
//------------------------------------------------------------ softTransformationToolCtx::softTransformationToolCtx() : cmd(0) , copyDagMod(0) , dgModFn(0) , animCreator(0) , softConnector(0) , fastTrgNodeCreator(0) , fType(0) , fVis(true) , lastDistance(0.0) , useLastDistance(false) , nirFlag(false) , hasManip(false) , emergency(false) , vmCreator(0) , vmConnector(0) , bbScaleFactor(0.0) //------------------------------------------------------------ { lastSelection.clear(); setTitleString("SoftTransformationTool"); }
lassoTool::lassoTool() : maxSize(0) , num_points(0) , lasso(NULL) #ifdef _WIN32 , lassoCursor(lassoToolCursor) #else , lassoCursor(lassoToolCursor_width, lassoToolCursor_height, lassoToolCursor_x_hot, lassoToolCursor_y_hot, lassoToolCursor_bits, lassoToolCursorMask_bits) #endif { setTitleString ( "Lasso Pick" ); // set the initial state of the cursor setCursor(lassoCursor); // Tell the context which XPM to use so the tool can properly // be a candidate for the 6th position on the mini-bar. setImage("lassoTool.xpm", MPxContext::kImage1 ); }
customAttrCtx::customAttrCtx() { MString str(MOVETITLESTR); setTitleString(str); }
HairToolContext::HairToolContext(){ setTitleString("Hair Tool"); }
ComponentScaleContext::ComponentScaleContext() { MString str("Plugin component scaling manipulator"); setTitleString(str); }
RotateManipContext::RotateManipContext() { MString str("Plugin Rotate Manipulator"); setTitleString(str); }
SelectRingContext1::SelectRingContext1() { setTitleString( "Select Ring Tool" ); //setImage( "selectRingTool.xpm", MPxContext::kImage1 ); }
meshRemapTool::meshRemapTool() { setTitleString ( "Mesh Remap Tool" ); setCursor( MCursor::editCursor ); reset(); }