Data Structures | |
| struct | _Pattern |
| Regular expressions that are used to perform highlight in the log window. More... | |
Defines | |
| #define | TIMER_ANIM_ID 1 |
| #define | TIMER_ANIM_TIME 100 |
| #define | TIMER_ANIMSTOP_ID 2 |
| #define | TIMER_ANIMSTOP_TIME 1000 |
| #define | TIMER_CLIPBUFFER_ID 3 |
| #define | TIMER_CLIPBUFFER_TIME 1000 |
| #define | TIMER_CLIPBUFFER_FORCE_ID 4 |
| #define | TIMER_CLIPBUFFER_FORCE_TIME 5000 |
| #define | STYLE_NONE 0 |
| #define | STYLE_HIGHLIGHT 1 |
| #define | STYLE_LINK 2 |
| #define | STYLE_HEADER 3 |
| #define | ANIM_FRAMES 8 |
| #define | DEFAULT_MAX_BUFFER_LINES 200 |
| #define | DEFAULT_LOG_FONT_NAME "MS Sans Serif" |
| #define | DEFAULT_LOG_FONT_SIZE 8 |
| #define | RE_URL "http:[^ \n\r]*" |
Functions | |
| HWND | CreateLogWindow (HINSTANCE hInstance, int nCmdShow) |
| HWND | CreateHiddenLogOwnerWindow (HINSTANCE hInstance) |
| LRESULT CALLBACK | LogWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| LRESULT CALLBACK | LogOwnerWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| LRESULT CALLBACK | LogRichEditProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| BOOL | InitRichEdit (void) |
| void | LogClipBuffer (void) |
| void | LogCreatePatternMatchingBuffers (void) |
| void | LogDestroyPatternMatchingBuffers (void) |
| int | LogPutStringNoMatch (const char *pszText, int style) |
| BOOL | InitLogWindow (void) |
| void | TermLogWindow (void) |
| char * | LogGetURLUnderCursor (void) |
| int | LogPutString (const char *pszText) |
| void | LogShowActivity (void) |
| void | ShowLogWindow (BOOL bShow) |
| void | EditFile (const char *filename) |
| void | OnLogRButtonUp (int nModifier, int x, int y) |
| void | OnLogCommand (int nCommand) |
| void | OnLogInitMenu (HMENU hmenu) |
| void | OnLogTimer (int nTimer) |
Variables | |
| const char | w32log_rcs [] = "$Id: w32log.c,v 2.1 2002/06/04 16:37:48 jongfoster Exp $" |
| const char | w32res_h_rcs [] = W32RES_H_VERSION |
| const char | w32log_h_rcs [] = W32LOG_H_VERSION |
| BOOL | g_bShowActivityAnimation = 1 |
| BOOL | g_bShowOnTaskBar = 0 |
| BOOL | g_bCloseHidesWindow = 1 |
| BOOL | g_bLogMessages = 1 |
| BOOL | g_bHighlightMessages = 1 |
| BOOL | g_bLimitBufferSize = 1 |
| int | g_nMaxBufferLines = DEFAULT_MAX_BUFFER_LINES |
| char | g_szFontFaceName [255] = DEFAULT_LOG_FONT_NAME |
| int | g_nFontSize = DEFAULT_LOG_FONT_SIZE |
| const char * | g_actions_file = NULL |
| const char * | g_re_filterfile = NULL |
| _Pattern | patterns_to_highlight [] |
| HWND | g_hwndLogFrame |
| CRITICAL_SECTION | g_criticalsection |
| HWND | g_hwndTray |
| HWND | g_hwndLogBox |
| WNDPROC | g_fnLogBox |
| HICON | g_hiconAnim [ANIM_FRAMES] |
| HICON | g_hiconIdle |
| HICON | g_hiconApp |
| int | g_nAnimFrame |
| BOOL | g_bClipPending = FALSE |
| int | g_nRichEditVersion = 0 |
Revision 2.0 2002/06/04 14:34:21 jongfoster Moving source files to src/
Revision 1.25 2002/04/04 00:36:36 gliptak always use pcre for matching
Revision 1.24 2002/03/31 17:19:00 jongfoster Win32 only: Enabling STRICT to fix a VC++ compile warning.
Revision 1.23 2002/03/26 22:57:10 jongfoster Web server name should begin www.
Revision 1.22 2002/03/24 12:48:23 jongfoster Fixing doc links
Revision 1.21 2002/03/24 12:07:35 jongfoster Consistern name for filters file
Revision 1.20 2002/03/24 12:03:47 jongfoster Name change
Revision 1.19 2002/01/17 21:04:17 jongfoster Replacing hard references to the URL of the config interface with defines from project.h
Revision 1.18 2001/11/30 23:37:24 jongfoster Renaming the Win32 config file to config.txt - this is almost the same as the corresponding UNIX name "config"
Revision 1.17 2001/11/16 00:46:31 jongfoster Fixing compiler warnings
Revision 1.16 2001/08/01 19:58:12 jongfoster Fixing documentation filenames in help menu, and making status option work without needing the "Junkbuster Status.URL" file.
Revision 1.15 2001/07/30 22:08:36 jongfoster Tidying up defines:
Revision 1.13 2001/07/19 19:15:14 haroon
Revision 1.11 2001/06/07 23:08:12 jongfoster Forward and ACL edit options removed.
Revision 1.10 2001/05/31 21:37:11 jongfoster GUI changes to rename "permissions file" to "actions file".
Revision 1.9 2001/05/31 17:33:13 oes
CRLF -> LF
Revision 1.8 2001/05/29 09:50:24 jongfoster Unified blocklist/imagelist/permissionslist. File format is still under discussion, but the internal changes are (mostly) done.
Also modified interceptor behaviour:
Revision 1.6 2001/05/26 00:31:30 jongfoster Fixing compiler warning about comparing signed/unsigned.
Revision 1.5 2001/05/26 00:28:36 jongfoster Automatic reloading of config file. Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32). Most of the global variables have been moved to a new struct configuration_spec, accessed through csp->config->globalname Most of the globals remaining are used by the Win32 GUI.
Revision 1.4 2001/05/22 18:56:28 oes CRLF -> LF
Revision 1.3 2001/05/20 15:07:54 jongfoster File is now ignored if _WIN_CONSOLE is defined.
Revision 1.2 2001/05/20 01:21:20 jongfoster Version 2.9.4 checkin.
|
|
Regular expression for detected URLs.
|
|
|
Creates a hidden owner window that stops the log window appearing in the task bar.
|
|
||||||||||||
|
Create the logging window.
|
|
|
Opens the specified setting file for editing. FIXME: What if the file has no associated application. Check for return values from ShellExecute??
|
|
|
Initialise the log window.
|
|
|
Initialise the rich edit control library.
|
|
|
Prunes old lines from the log. This is called occasionally, from a timer callback.
|
|
|
Compile the pattern matching buffers.
|
|
|
Free up the pattern matching buffers.
|
|
|
Returns the URL from under the cursor (remember to free it!).
|
|
||||||||||||||||||||
|
Dummy procedure that does nothing special.
|
|
|
Inserts text into the logging window. This is really a regexp aware wrapper function to `LogPutStringNoMatch'.
|
|
||||||||||||
|
Puts a string into the logging window.
|
|
||||||||||||||||||||
|
Window subclass routine handles some events for the rich edit control.
|
|
|
Start the spinner.
|
|
||||||||||||||||||||
|
Windows call back routine handles events on the log window.
|
|
|
Handler for WM_COMMAND messages.
|
|
|
Handler for WM_INITMENU messages. Enable, disable, check, and/or uncheck menu options as apropos.
|
|
||||||||||||||||
|
Handler for WM_RBUTTONUP messages.
|
|
|
Handler for WM_TIMER messages.
|
|
|
Shows or hides the log window. We will also raise the window on a show command in case it is buried.
|
|
|
Cleanup the logwindow.
|
|
|
Actions file name.
|
|
|
If a timer to call LogClipBuffer() has been started.
|
|
|
Indicates whether closing the log window really just hides it.
|
|
|
Indicates whether log messages are highlighted.
|
|
|
Indicates if buffer is limited in size.
|
|
|
Indicates if messages are logged at all.
|
|
|
Indicates whether task bar shows activity animation.
|
|
|
Indicates if the log window appears on the task bar.
|
|
|
Critical section used to serialize output to the log window.
|
|
|
The default window procedure for the rich edit control. Set when we subclass this window. |
|
|
The icons for the activity animation.
|
|
|
The main application icon.
|
|
|
The icon to use when idle.
|
|
|
The window handle of the log window.
|
|
|
Window handle for the log window.
|
|
|
The window handle of the tray icon window.
|
|
|
The index of the current animation frame.
|
|
|
Size of font to use.
|
|
|
Maximum number of lines allowed in buffer when limited.
|
|
|
The version of the rich edit control we're using.
|
|
|
Filter file name.
|
|
|
Font to use.
|
|
|
Regular expressions that are used to perform highlight in the log window.
|
|
|
Version information about w32log.h.
|
|
|
Version information about w32log.c.
|
1.2.15