Icons in the tree browser
Peter Volgyesi
xvolgy at isis-server.isis.vanderbilt.edu
Tue Nov 18 09:17:43 CST 2003
----------
From: Peter Volgyesi
Sent: Tuesday, November 18, 2003 2:17:43 AM
To: GME Group
Subject: Re: Icons in the tree browser
Auto forwarded by a Rule
Uncomment the following line in your componentconfig.h:
#define BON_CUSTOM_TRANSACTIONS
And use the following code snippet:
------------------------------------------------------------------------------------------------
builder.BeginTransaction(TRANSACTION_READ_ONLY);
CComPtr<IMgaFCO> mgaFocus;
CComPtr<IMgaFCOs> mgaSelected;
CComBSTR progID;
COMTHROW(mgaSelected.CoCreateInstance(OLESTR("Mga.MgaFCOs")));
// You might add FCO-s to the selected list
// COMTHROW(mgaSelected->Append(...));
// You might also set the focus object
// mgaFocus = ...;
// Set the progid to the name (ProgId) of the interpreter you want to call,
// or leave it empty if you want GME to show the chooser dialog
// progID = "...";
builder.CommitTransaction();
CComPtr<IMgaLauncher> mgaLauncher;
COMTHROW(mgaLauncher.CoCreateInstance(L"Mga.MgaLauncher"));
progID = "Mga.Interpreter.MetaGME";
COMTHROW(mgaLauncher->RunComponent(progID,builder.GetProject(), mgaFocus,
mgaSelected,GME_EMBEDDED_START) );
------------------------------------------------------------------------------------------------
I have serious problems with icon customization code in the browser. (It needs a lot of work.) So, I've postponed this feature, sorry.
--
peter
----- Original Message -----
From: GME Group
To: GME List
Sent: Thursday, November 06, 2003 5:32 PM
Subject: FW: Icons in the tree browser
----------
From: Aditya Agrawal
Sent: Thursday, November 06, 2003 10:32:36 AM
To: GME Group
Subject: Icons in the tree browser
Auto forwarded by a Rule
Hi all,
Recently I have been using a paradigm that has many folders of different kinds. It becomes difficult to distinguish the type of the folder because they all look the same.
The general case of this problem is that in GME the tree browser shows icons based on the GME stereotype (Folders, models, atoms and not based on the icons specified in the metamodels)
Will it be too much work to use the icons specified in the metamodel?
And to come back to my problem will it be too much work to add support for specifying icons for folders as well.
Thanks,
Adi
------------------------------------------
Aditya Agrawal
mailto:aditya.agrawal at vanderbilt.edu
http://aditya.isis.vanderbilt.edu/
Institute For Software Integrated Systems (ISIS) www.isis.vanderbilt.edu
Vanderbilt University
2015 Terrace Place
Nashville, TN 37203
615 322 3164
More information about the gme-users
mailing list