//------------------------------------------------------------------------- void SetupDialog::reset() { GuidoLayoutSettings gls; GuidoGetDefaultLayoutSettings (&gls); set (gls, kNoBB); setup(); }
//------------------------------------------------------------------------- void SetupDialog::reset() { GuidoLayoutSettings gls; GuidoGetDefaultLayoutSettings (&gls); set (gls, kNoBB , false , true, false , ALL_VOICE , ALL_STAFF ); setup(); scoreColorChanged( Qt::black ); GuidoHighlighter * highlighter = new GuidoHighlighter(); for ( int i = 0 ; i < GuidoHighlighter::SIZE ; i++ ) highlighter->addRule( i , mMainWindow->mDefaultFontColors[i] , QFont::Weight(mMainWindow->mDefaultFontWeights[i]) ); mMainWindow->setHighlighter(highlighter); }
ofxGuido::ofxGuido(int w, int h) : mARHandler(0), mGRHandler(0), mW(w), mH(h), mBackground(){ mGuidoDevice = mGuidoSystem.CreateMemoryDevice(w, h); mGuidoDevice->SelectFillColor(VGColor(0, 0, 0)); mGuidoInitDesc.graphicDevice = mGuidoDevice; mGuidoInitDesc.musicFont = "guido2t.ttf"; mGuidoInitDesc.textFont = "guidotext.ttf"; GuidoInit(&mGuidoInitDesc); GuidoGetDefaultLayoutSettings(&mGuidoLayoutSettings); mGuidoOnDrawDesc.hdc = mGuidoDevice; mGuidoParser = GuidoOpenParser(); // Setup a large default format to avoid system breaks. They can also be avoided // by using the GMN advanced tag \set<autoSystemBreak="off"> // Extra right margin makes room for the systems brace. GuidoPageFormat gpf = { 5000, 5000, 150, 100, 100, 100 }; // w, h, ml, mt, mr, mb GuidoSetDefaultPageFormat(&gpf); mBackground.set(0, 0, 0, 0); }
//------------------------------------------------------------------------- QGuidoPainter::QGuidoPainter() { mDesc.hdc = 0; mDesc.page = 1; mDesc.scrollx = 0; mDesc.scrolly = 0; mDesc.handle = 0; mARHandler = 0; mLastErr = guidoNoErr; mGMNCode = ""; mFileName = ""; mResizePageToMusic = true; GuidoGetDefaultLayoutSettings ( &mLayoutSettings ); // mLayoutSettings.optimalPageFill = 0; GuidoGetDefaultPageFormat ( &mPageFormat ); fCurrentColor = QColor(0,0,0); // opaque black color by default }