w32log.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #ifndef W32LOG_H_INCLUDED
  2. #define W32LOG_H_INCLUDED
  3. /*********************************************************************
  4. *
  5. * File : $Source: /cvsroot/ijbswa/current/w32log.h,v $
  6. *
  7. * Purpose : Functions for creating and destroying the log window,
  8. * outputting strings, processing messages and so on.
  9. *
  10. * Copyright : Written by and Copyright (C) 2001-2009 members of
  11. * the Privoxy team. https://www.privoxy.org/
  12. *
  13. * Written by and Copyright (C) 1999 Adam Lock
  14. * <locka@iol.ie>
  15. *
  16. * This program is free software; you can redistribute it
  17. * and/or modify it under the terms of the GNU General
  18. * Public License as published by the Free Software
  19. * Foundation; either version 2 of the License, or (at
  20. * your option) any later version.
  21. *
  22. * This program is distributed in the hope that it will
  23. * be useful, but WITHOUT ANY WARRANTY; without even the
  24. * implied warranty of MERCHANTABILITY or FITNESS FOR A
  25. * PARTICULAR PURPOSE. See the GNU General Public
  26. * License for more details.
  27. *
  28. * The GNU General Public License should be included with
  29. * this file. If not, you can view it at
  30. * http://www.gnu.org/copyleft/gpl.html
  31. * or write to the Free Software Foundation, Inc., 59
  32. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  33. *
  34. *********************************************************************/
  35. extern HWND g_hwndLogFrame;
  36. /* Indicates whether task bar shows activity animation */
  37. extern BOOL g_bShowActivityAnimation;
  38. /* Indicates if the log window appears on the task bar */
  39. extern BOOL g_bShowOnTaskBar;
  40. /* Indicates whether closing the log window really just hides it */
  41. extern BOOL g_bCloseHidesWindow;
  42. /* Indicates if messages are logged at all */
  43. extern BOOL g_bLogMessages;
  44. /* Indicates whether log messages are highlighted */
  45. extern BOOL g_bHighlightMessages;
  46. /* Indicates if buffer is limited in size */
  47. extern BOOL g_bLimitBufferSize;
  48. /* Maximum number of lines allowed in buffer when limited */
  49. extern int g_nMaxBufferLines;
  50. /* Font to use */
  51. extern char g_szFontFaceName[32];
  52. /* Size of font to use */
  53. extern int g_nFontSize;
  54. /* FIXME: this is a kludge */
  55. extern const char * g_default_actions_file;
  56. extern const char * g_user_actions_file;
  57. extern const char * g_default_filterfile;
  58. extern const char * g_user_filterfile;
  59. #ifdef FEATURE_TRUST
  60. extern const char * g_trustfile;
  61. #endif /* def FEATURE_TRUST */
  62. /* FIXME: end kludge */
  63. extern HICON g_hiconApp;
  64. extern int LogPutString(const char *pszText);
  65. extern BOOL InitLogWindow(void);
  66. extern void TermLogWindow(void);
  67. extern void ShowLogWindow(BOOL bShow);
  68. extern void LogShowActivity(void);
  69. #endif /* ndef W32LOG_H_INCLUDED */
  70. /*
  71. Local Variables:
  72. tab-width: 3
  73. end:
  74. */