/** @file ScintillaBase.h
** Defines an enhanced subclass of Editor with calltips, autocomplete and context menu.
**/
-// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
+// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef SCINTILLABASE_H
enum {
idCallTip=1,
idAutoComplete=2,
-
+
idcmdUndo=10,
idcmdRedo=11,
idcmdCut=12,
int listType; ///< 0 is an autocomplete list
SString userListSelected; ///< Receives listbox selected string
-
+
#ifdef SCI_LEXER
int lexLanguage;
- LexerModule *lexCurrent;
+ const LexerModule *lexCurrent;
PropSet props;
- enum {numWordLists=6};
+ enum {numWordLists=KEYWORDSET_MAX+1};
WordList *keyWordLists[numWordLists+1];
void SetLexer(uptr_t wParam);
void SetLexerLanguage(const char *languageName);
virtual void Finalise() = 0;
virtual void RefreshColourPalette(Palette &pal, bool want);
-
- virtual void AddCharUTF(char *s, unsigned int len);
+
+ virtual void AddCharUTF(char *s, unsigned int len, bool treatAsDBCS=false);
void Command(int cmdId);
virtual void CancelModes();
virtual int KeyCommand(unsigned int iMessage);
-
+
void AutoCompleteStart(int lenEntered, const char *list);
void AutoCompleteCancel();
void AutoCompleteMove(int delta);
- void AutoCompleteChanged(char ch=0);
- void AutoCompleteCompleted(char fillUp='\0');
+ int AutoCompleteGetCurrent();
+ void AutoCompleteCharacterAdded(char ch);
+ void AutoCompleteCharacterDeleted();
+ void AutoCompleteCompleted();
void AutoCompleteMoveToCurrentWord();
+ static void AutoCompleteDoubleClick(void* p);
+ void CallTipClick();
+ void CallTipShow(Point pt, const char *defn);
virtual void CreateCallTipWindow(PRectangle rc) = 0;
-
+
virtual void AddToPopUp(const char *label, int cmd=0, bool enabled=true) = 0;
void ContextMenu(Point pt);
-
+
virtual void ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt);
virtual void NotifyStyleToNeeded(int endStyleNeeded);