void config:: time(int init) { unsigned short fps(4 * frame_number_); std::string new_title("Release the kraken! | FPS : "); new_title.append(std::to_string(fps)); glutSetWindowTitle(new_title.c_str()); frame_number_ = 0; glutTimerFunc(250,time,0); }
void DragonView::_SetNewImage( BBitmap *bitmap, const char *name ) { _bits_mutex.Lock(); if( _bits ) delete _bits; _bits = bitmap; ResizeTo( _bits->Bounds().Width(), _bits->Bounds().Height() ); // If you stashed this in the resources instead of hard-coding it, // you could easily change the name of the application without // editing a single source file. BString new_title( "DragonDrop — " ); new_title += name; // Note that the window is already locked when this gets called. Window()->SetTitle( new_title.String() ); Invalidate(); _bits_mutex.Unlock(); }
void AGUIEditorInstance::showDocument() { QString new_title(QString::fromStdString(document()->fileName() + " - " + plugin()->editorTitle())); setWindowTitle(new_title); //emit windowTitleChanged(new_title); }