Ejemplo n.º 1
0
        //----------------------------------------------------------
        //--------------------- CONSTRUCTEURS ----------------------
        //----------------------------------------------------------

        public AutoCompletionEngine(CGEeditor editorParent)
        {
            this.editorParent = editorParent;
            this.Categories   = new List <APICategory>();
            this.Items        = new List <APIItem>();
            CurrentWord       = "";

            methodsImg = XpmConverter.ConvertToXPM(Properties.Resources.pubmethod);
            classesImg = XpmConverter.ConvertToXPM(Properties.Resources.pubclass);
            propsImg   = XpmConverter.ConvertToXPM(Properties.Resources.pubproperty);
            fieldsImg  = XpmConverter.ConvertToXPM(Properties.Resources.pubfield);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Registers a list of images to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="images">List of images contained in an ImageList</param>
 /// <param name="transparentColor">Color to mask the image as transparent</param>
 /// <remarks>Indecis are assigned sequentially starting at 0</remarks>
 public void RegisterImages(ImageList images, Color transparentColor)
 {
     RegisterImages(XpmConverter.ConvertToXPM(images, Utilities.ColorToHtml(transparentColor)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Registers a list of images to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="images">List of images contained in an ImageList</param>
 /// <remarks>Indecis are assigned sequentially starting at 0</remarks>
 public void RegisterImages(ImageList images)
 {
     RegisterImages(XpmConverter.ConvertToXPM(images));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Registers an image with index to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="type">Index of the image to register to</param>
 /// <param name="image">Image to display in Bitmap format</param>
 private void RegisterImage(int type, Bitmap image)
 {
     NativeScintilla.RegisterImage(type, XpmConverter.ConvertToXPM(image));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Registers an image with index to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="type">Index of the image to register to</param>
 /// <param name="xpmImage">Image to display in the XPM image format</param>
 /// <param name="transparentColor">Color to mask the image as transparent</param>
 private void RegisterImage(int type, Bitmap image, Color transparentColor)
 {
     NativeScintilla.RegisterImage(type, XpmConverter.ConvertToXPM(image, Utilities.ColorToHtml(transparentColor)));
 }
Ejemplo n.º 6
0
 public void SetImage(Bitmap image)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image));
 }
Ejemplo n.º 7
0
 public void SetImage(Bitmap image, Color transparentColor)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image, Utilities.ColorToHtml(transparentColor)));
 }