[Rezilla-commits] RezillaSource/Rezilla_Src/Dialogs CPluginChooser.cp, 1.4, 1.5 CPluginChooser.h, 1
Brought to you by:
bdesgraupes
From: Bernard D. <bde...@us...> - 2006-11-25 12:00:31
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29741 Modified Files: CPluginChooser.cp CPluginChooser.h Log Message: Plugin role Index: CPluginChooser.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs/CPluginChooser.cp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CPluginChooser.cp 28 Sep 2006 19:37:20 -0000 1.4 +++ CPluginChooser.cp 25 Nov 2006 12:00:23 -0000 1.5 @@ -2,7 +2,7 @@ // CPluginChooser.h // // Created: 2006-09-25 07:02:55 -// Last modification: 2006-09-27 08:56:34 +// Last modification: 2006-11-25 11:54:54 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -180,6 +180,9 @@ mLoadedField = dynamic_cast<LStaticText *>(mInfoPane->FindPaneByID( item_PluginInfoLoadedText )); ThrowIfNil_(mLoadedField); + mRoleField = dynamic_cast<LStaticText *>(mInfoPane->FindPaneByID( item_PluginInfoRoleText )); + ThrowIfNil_(mRoleField); + mSupportedTypes = dynamic_cast<LPopupButton *>(mInfoPane->FindPaneByID( item_PluginSupportedTypes )); ThrowIfNil_(mSupportedTypes); @@ -302,6 +305,25 @@ mLoadedField->SetDescriptor("\pno"); } + switch (inPlugin->GetPluginRole()) { + case plugin_roleNone: + mRoleField->SetDescriptor("\pnone"); + break; + + case plugin_roleEditor: + mRoleField->SetDescriptor("\peditor"); + break; + + case plugin_roleViewer: + mRoleField->SetDescriptor("\pviewer"); + break; + + default: + mRoleField->SetDescriptor("\pn/a"); + break; + + } + theIconRef = inPlugin->GetIconRef(); if (theIconRef != 0) { mIconPane->SetIconRef(theIconRef); Index: CPluginChooser.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs/CPluginChooser.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CPluginChooser.h 27 Sep 2006 10:59:49 -0000 1.3 +++ CPluginChooser.h 25 Nov 2006 12:00:23 -0000 1.4 @@ -49,6 +49,7 @@ LStaticText * mCreatorField; LStaticText * mVersionField; LStaticText * mLoadedField; + LStaticText * mRoleField; LStaticText * mHelpField; CIconrefPane* mIconPane; ResType mCurrType; |