123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- /*
- LICENSE
- -------
- Copyright 2005 Nullsoft, Inc.
- All rights reserved.
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of Nullsoft nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
- IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- #ifndef _FF_IPC_H
- #define _FF_IPC_H
- // -----------------------------------------------------------------------------------------------------
- // ----- IPC_FF_GETSKINCOLOR : Ask for a skin color -- the color is filtered for the current theme -----
- // -----------------------------------------------------------------------------------------------------
- #define IPC_FF_GETSKINCOLOR IPC_FF_FIRST + 1 // data = ff_skincolor struct with .colorname, fills in .color
- typedef struct {
- char colorname[256];
- COLORREF color;
- } ff_skincolor;
- // List of default colors as of june 30, 2003. see freeform/xml/wasabi/xml/system-colors.xml for latest/complete list
- // Trees
- #define SKINCOLOR_TREE_ITEMTEXT "wasabi.tree.text"
- #define SKINCOLOR_TREE_SELITEMBKG "wasabi.tree.selected"
- #define SKINCOLOR_TREE_HILITEDROP "wasabi.tree.hiliteddrop"
-
- // Lists
- #define SKINCOLOR_LIST_ITEMTEXT "wasabi.list.text"
- #define SKINCOLOR_LIST_SELITEMBKG "wasabi.list.item.selected"
- #define SKINCOLOR_LIST_FOCUSITEMBKG "wasabi.list.item.focused"
- #define SKINCOLOR_LIST_COLUMNBKG "wasabi.list.column.background"
- #define SKINCOLOR_LIST_COLUMNTEXT "wasabi.list.column.text"
- #define SKINCOLOR_LIST_SELITEMTEXT "wasabi.list.item.selected.fg"
- #define SKINCOLOR_LIST_COLUMNSEPARATOR "wasabi.list.column.separator"
- // Buttons
- #define SKINCOLOR_BUTTON_TEXT "wasabi.button.text"
- #define SKINCOLOR_BUTTON_HILITETEXT "wasabi.button.hiliteText"
- #define SKINCOLOR_BUTTON_DIMMEDTEXT "wasabi.button.dimmedText"
- // ----------------------------------------------------------------------------------------
- // ----- IPC_FF_GENSKINBITMAP: Ask gen_ff to create a bitmap of various skin elements -----
- // ----------------------------------------------------------------------------------------
- // NOTE: You should free the hbitmap eventually using DeleteObject
- #define IPC_FF_GENSKINBITMAP IPC_FF_FIRST + 2 // data = ff_skinbitmap with bitmap .id .w .h and .state, fills in .bitmap
- typedef struct {
- int id; // see below
- int w, h;
- int state; // id specific, see below
- HBITMAP bitmap;
- } ff_skinbitmap;
- // Bitmap IDs :
- #define SKINBITMAP_BUTTON 0 // Generate a button bitmap. states are as follows :
- #define BUTTONSTATE_NORMAL 0
- #define BUTTONSTATE_PUSHED 1
- #define SKINBITMAP_SCROLLBARUPBUTTON 1 // Generate a scrollbar up button bitmap. states are button states
- #define SKINBITMAP_SCROLLBARDOWNBUTTON 2 // Generate a scrollbar down button bitmap. states are button states
- #define SKINBITMAP_SCROLLBARLEFTBUTTON 3 // Generate a scrollbar left button bitmap. states are button states
- #define SKINBITMAP_SCROLLBARRIGHTBUTTON 4 // Generate a scrollbar right button bitmap. states are button states
- #define SKINBITMAP_SCROLLBARVBUTTON 5 // Generate a scrollbar vertical button bitmap. states are button states
- #define SKINBITMAP_SCROLLBARHBUTTON 6 // Generate a scrollbar vertical button bitmap. states are button states
- // -----------------------------------------------------------------------------------------------
- // ----- IPC_FF_ONCOLORTHEMECHANGED: CALLBACK - sent when the skin's color theme has changed -----
- // -----------------------------------------------------------------------------------------------
- #define IPC_FF_ONCOLORTHEMECHANGED IPC_FF_FIRST + 3 // data = name of the new color theme (const char *)
- #define IPC_FF_ISMAINWND IPC_FF_FIRST + 4 // data = hwnd, returns 1 if hwnd is main window or any of its windowshade
- #define IPC_FF_GETCONTENTWND IPC_FF_FIRST + 5 // data = HWND, returns the wa2 window that is embedded in the window's container (ie if hwnd is the pledit windowshade hwnd, it returns the wa2 pledit hwnd). if no content is found (ie, the window has nothing embedded) it returns the parameter you gave it
- #define IPC_FF_NOTIFYHOTKEY IPC_FF_FIRST + 6 // data = const char * to hotkey description
- #endif
|