Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : CHOOSEFILE.h
redbird 0:1bf8f02b0770 29 Purpose : File dialog interface
redbird 0:1bf8f02b0770 30 --------------------END-OF-HEADER-------------------------------------
redbird 0:1bf8f02b0770 31 */
redbird 0:1bf8f02b0770 32
redbird 0:1bf8f02b0770 33 #ifndef CHOOSEFILE_H
redbird 0:1bf8f02b0770 34 #define CHOOSEFILE_H
redbird 0:1bf8f02b0770 35
redbird 0:1bf8f02b0770 36 #include "WM.h"
redbird 0:1bf8f02b0770 37
redbird 0:1bf8f02b0770 38 #if GUI_WINSUPPORT
redbird 0:1bf8f02b0770 39
redbird 0:1bf8f02b0770 40 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 41 extern "C" { /* Make sure we have C-declarations in C++ programs */
redbird 0:1bf8f02b0770 42 #endif
redbird 0:1bf8f02b0770 43
redbird 0:1bf8f02b0770 44 /*********************************************************************
redbird 0:1bf8f02b0770 45 *
redbird 0:1bf8f02b0770 46 * Defines
redbird 0:1bf8f02b0770 47 *
redbird 0:1bf8f02b0770 48 **********************************************************************
redbird 0:1bf8f02b0770 49 */
redbird 0:1bf8f02b0770 50 #define CHOOSEFILE_FINDFIRST 0
redbird 0:1bf8f02b0770 51 #define CHOOSEFILE_FINDNEXT 1
redbird 0:1bf8f02b0770 52
redbird 0:1bf8f02b0770 53 #define CHOOSEFILE_FLAG_DIRECTORY (1 << 0)
redbird 0:1bf8f02b0770 54
redbird 0:1bf8f02b0770 55 #ifndef CHOOSEFILE_MAXLEN
redbird 0:1bf8f02b0770 56 #define CHOOSEFILE_MAXLEN 256
redbird 0:1bf8f02b0770 57 #endif
redbird 0:1bf8f02b0770 58
redbird 0:1bf8f02b0770 59 #define CHOOSEFILE_BI_CANCEL 0
redbird 0:1bf8f02b0770 60 #define CHOOSEFILE_BI_OK 1
redbird 0:1bf8f02b0770 61 #define CHOOSEFILE_BI_UP 2
redbird 0:1bf8f02b0770 62
redbird 0:1bf8f02b0770 63 /*********************************************************************
redbird 0:1bf8f02b0770 64 *
redbird 0:1bf8f02b0770 65 * Types
redbird 0:1bf8f02b0770 66 *
redbird 0:1bf8f02b0770 67 **********************************************************************
redbird 0:1bf8f02b0770 68 */
redbird 0:1bf8f02b0770 69 /*********************************************************************
redbird 0:1bf8f02b0770 70 *
redbird 0:1bf8f02b0770 71 * CHOOSEFILE_INFO
redbird 0:1bf8f02b0770 72 */
redbird 0:1bf8f02b0770 73 typedef struct CHOOSEFILE_INFO CHOOSEFILE_INFO;
redbird 0:1bf8f02b0770 74
redbird 0:1bf8f02b0770 75 struct CHOOSEFILE_INFO {
redbird 0:1bf8f02b0770 76 int Cmd; // Command for GetData() function
redbird 0:1bf8f02b0770 77 int Id; // Id of pressed button (for internal use only)
redbird 0:1bf8f02b0770 78 const char * pMask; // Mask to be used for searching files
redbird 0:1bf8f02b0770 79 char * pName; // (for internal use only)
redbird 0:1bf8f02b0770 80 char * pExt; // (for internal use only)
redbird 0:1bf8f02b0770 81 char * pAttrib; // (for internal use only)
redbird 0:1bf8f02b0770 82 WM_TOOLTIP_HANDLE hToolTip; // (for internal use only)
redbird 0:1bf8f02b0770 83 U32 SizeL; // FileSize low word
redbird 0:1bf8f02b0770 84 U32 SizeH; // FileSize high word
redbird 0:1bf8f02b0770 85 U32 Flags; // File flags
redbird 0:1bf8f02b0770 86 char pRoot[CHOOSEFILE_MAXLEN]; // Buffer used internally and for passing result
redbird 0:1bf8f02b0770 87 int (* pfGetData)(CHOOSEFILE_INFO * pInfo); // Pointer to GetData() function
redbird 0:1bf8f02b0770 88 };
redbird 0:1bf8f02b0770 89
redbird 0:1bf8f02b0770 90 /*********************************************************************
redbird 0:1bf8f02b0770 91 *
redbird 0:1bf8f02b0770 92 * Functions
redbird 0:1bf8f02b0770 93 *
redbird 0:1bf8f02b0770 94 **********************************************************************
redbird 0:1bf8f02b0770 95 */
redbird 0:1bf8f02b0770 96 WM_HWIN CHOOSEFILE_Create(WM_HWIN hParent, // Parent window
redbird 0:1bf8f02b0770 97 int xPos, // xPosition in window coordinates
redbird 0:1bf8f02b0770 98 int yPos, // yPosition in window coordinates
redbird 0:1bf8f02b0770 99 int xSize, // xSize in pixels
redbird 0:1bf8f02b0770 100 int ySize, // ySize in pixels
redbird 0:1bf8f02b0770 101 const char * apRoot[], // Pointers to root strings
redbird 0:1bf8f02b0770 102 int NumRoot, // Number of roots
redbird 0:1bf8f02b0770 103 int SelRoot, // Root to be selected at first
redbird 0:1bf8f02b0770 104 const char * sCaption, // Shown in title bar
redbird 0:1bf8f02b0770 105 int Flags, // Flags for FRAMEWINDOW
redbird 0:1bf8f02b0770 106 CHOOSEFILE_INFO * pInfo // Pointer to CHOOSEFILE_INFO structure
redbird 0:1bf8f02b0770 107 );
redbird 0:1bf8f02b0770 108
redbird 0:1bf8f02b0770 109 void CHOOSEFILE_Callback (WM_MESSAGE * pMsg);
redbird 0:1bf8f02b0770 110 void CHOOSEFILE_EnableToolTips (void);
redbird 0:1bf8f02b0770 111 void CHOOSEFILE_SetButtonText (WM_HWIN hWin, unsigned ButtonIndex, const char * pText);
redbird 0:1bf8f02b0770 112 void CHOOSEFILE_SetDefaultButtonText(unsigned ButtonIndex, const char * pText);
redbird 0:1bf8f02b0770 113 void CHOOSEFILE_SetDelim (char Delim);
redbird 0:1bf8f02b0770 114 void CHOOSEFILE_SetToolTips (const TOOLTIP_INFO * pInfo, int NumItems);
redbird 0:1bf8f02b0770 115 void CHOOSEFILE_SetTopMode (unsigned OnOff);
redbird 0:1bf8f02b0770 116
redbird 0:1bf8f02b0770 117 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 118 }
redbird 0:1bf8f02b0770 119 #endif
redbird 0:1bf8f02b0770 120
redbird 0:1bf8f02b0770 121 #endif /* GUI_WINSUPPORT */
redbird 0:1bf8f02b0770 122
redbird 0:1bf8f02b0770 123 #endif /* CHOOSEFILE_H */