GetComponentType() private method

private GetComponentType ( string typeName ) : Stetic.ComponentType
typeName string
return Stetic.ComponentType
Example #1
0
        public ComponentType[] GetComponentTypes()
        {
            ArrayList types = new ArrayList();

            ArrayList typeNames = ProjectBackend.GetComponentTypes();

            for (int n = 0; n < typeNames.Count; n++)
            {
                types.Add(app.GetComponentType((string)typeNames [n]));
            }

            // Global action groups
            foreach (ActionGroupComponent grp in GetActionGroups())
            {
                foreach (ActionComponent ac in grp.GetActions())
                {
                    types.Add(new ComponentType(app, ac));
                }
            }

            return((ComponentType[])types.ToArray(typeof(ComponentType)));
        }
 public ActionGroupComponent(Application app, object backend, string name) : base(app, backend, name, app.GetComponentType("Gtk.ActionGroup"))
 {
 }
Example #3
0
 public ActionComponent(Application owner, object backend, string name)
     : base(owner, backend, name, owner.GetComponentType ("Gtk.Action"))
 {
 }
		public ActionGroupComponent (Application app, object backend, string name): base (app, backend, name, app.GetComponentType ("Gtk.ActionGroup"))
		{
		}
 public ActionComponent(Application owner, object backend, string name) : base(owner, backend, name, owner.GetComponentType("Gtk.Action"))
 {
 }