/home/jonas/tidevel/adt/Advanced Dialogs/source/Internal.h

00001 /*
00002         Advanved Dialogs v1.05
00003         Copyright (C) 2005-2007 Jonas Gehring
00004 
00005         Advanced Dialogs is free software; you can redistribute it and/or modify
00006         it under the terms of the GNU Lesser General Public License as published by
00007         the Free Software Foundation; either version 2 of the License, or
00008         (at your option) any later version.
00009 
00010         Advanced Dialogs is distributed in the hope that it will be useful,
00011         but WITHOUT ANY WARRANTY; without even the implied warranty of
00012         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013         GNU Lesser General Public License for more details.
00014 
00015         You should have received a copy of the GNU Lesser General Public License
00016         along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 // Header File
00021 // Created 23.11.2005; 03:11:19
00022 
00023 
00024 #ifndef _INTERNAL_H
00025 #define _INTERNAL_H
00026 
00027 
00028 
00029 /*_________Enumerations and Text_________*/
00030 
00031 // Messages for the buttons
00032 extern const char *bttext[4];
00033 
00034 // Describes valid Dialog elements
00035 enum elementnames {AD_NONE, AD_TEXT, AD_INPUT, AD_CHECKBOX, AD_DROPDOWN, AD_TAB};
00036 
00037 
00038 
00039 
00040 /*________________Globals________________*/
00041 
00042 // Temporary screen buffer
00043 extern void *tscr;
00044 
00045 extern uchar tabcounter;
00046 extern short elcounter;
00047 
00048 // Button for a dialog
00049 extern const unsigned short gbutton[18];
00050 
00051 
00052 
00053 /*______________Proto-types______________*/
00054 
00055 
00056 // Draws a tab of a Dialog
00057 void AdvDlgDrawTab(ADVDIALOG *dialog, uchar tab);
00058 
00059 // Draws the basic things (window, buttons, title)
00060 void AdvDlgDrawBasic(ADVDIALOG *dialog);
00061 
00062 // Activates a CheckBox
00063 short AdvDlgCheckBox(ADVDIALOG *dialog, uchar tab, uchar line);
00064 
00065 // Activates an InputBox
00066 short AdvDlgInputBox(ADVDIALOG *dialog, uchar tab, uchar line);
00067 
00068 // Activates a DropDown-menu
00069 short AdvDlgDropDown(ADVDIALOG *dialog, uchar tab, uchar line);
00070 
00071 // Frees a Bitmap
00072 void FreeBitmap(ADVBITMAP *bitmap);
00073 
00074 // Draws a Bitmap
00075 void DrawBitmap(ADVDIALOG *dialog, ADVBITMAP *bitmap);
00076 
00077 
00078 
00079 #endif
00080 
00081 

Generated on Thu Oct 4 19:42:03 2007 for Advanced Dialogs by  doxygen 1.5.1