gui.h
changeset 4299 91f5d2bedcff
parent 4211 5ee54ab361c9
child 4300 c7e43c47a2b9
equal deleted inserted replaced
4298:b926a6eaaa70 4299:91f5d2bedcff
     3 #ifndef GUI_H
     3 #ifndef GUI_H
     4 #define GUI_H
     4 #define GUI_H
     5 
     5 
     6 #include "station.h"
     6 #include "station.h"
     7 #include "window.h"
     7 #include "window.h"
       
     8 #include "string.h"
     8 
     9 
     9 /* main_gui.c */
    10 /* main_gui.c */
    10 void SetupColorsAndInitialWindow(void);
    11 void SetupColorsAndInitialWindow(void);
    11 void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2);
    12 void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2);
    12 void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2);
    13 void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2);
   104 void ShowCheatWindow(void);
   105 void ShowCheatWindow(void);
   105 void AskForNewGameToStart(void);
   106 void AskForNewGameToStart(void);
   106 
   107 
   107 void DrawEditBox(Window *w, querystr_d *string, int wid);
   108 void DrawEditBox(Window *w, querystr_d *string, int wid);
   108 void HandleEditBox(Window *w, querystr_d *string, int wid);
   109 void HandleEditBox(Window *w, querystr_d *string, int wid);
   109 int HandleEditBoxKey(Window *w, querystr_d *string, int wid, WindowEvent *we);
   110 int HandleEditBoxKey(Window *w, querystr_d *string, int wid, WindowEvent *we, CharSetFilter afilter);
   110 bool HandleCaret(Textbuf *tb);
   111 bool HandleCaret(Textbuf *tb);
   111 
   112 
   112 void DeleteTextBufferAll(Textbuf *tb);
   113 void DeleteTextBufferAll(Textbuf *tb);
   113 bool DeleteTextBufferChar(Textbuf *tb, int delmode);
   114 bool DeleteTextBufferChar(Textbuf *tb, int delmode);
   114 bool InsertTextBufferChar(Textbuf *tb, byte key);
   115 bool InsertTextBufferChar(Textbuf *tb, byte key);
   134 	ZOOM_NONE = 2, // hack, used to update the button status
   135 	ZOOM_NONE = 2, // hack, used to update the button status
   135 };
   136 };
   136 
   137 
   137 bool DoZoomInOutWindow(int how, Window *w);
   138 bool DoZoomInOutWindow(int how, Window *w);
   138 void ShowBuildIndustryWindow(void);
   139 void ShowBuildIndustryWindow(void);
   139 void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber window_number);
   140 void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber window_number, CharSetFilter afilter);
   140 void ShowMusicWindow(void);
   141 void ShowMusicWindow(void);
   141 
   142 
   142 /* main_gui.c */
   143 /* main_gui.c */
   143 VARDEF byte _station_show_coverage;
   144 VARDEF byte _station_show_coverage;
   144 VARDEF PlaceProc *_place_proc;
   145 VARDEF PlaceProc *_place_proc;