4 * Copyright (C) 2004 Andraz Tori
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "bcwindowbase.h"
27 #include "mwindow.inc"
28 #include "editpanel.inc"
31 class ManualGotoKeyItem;
32 class ManualGotoDirection;
33 class ManualGotoUnitItem;
34 class ManualGotoUnits;
36 class ManualGotoWindow;
38 class ManualGoto : public BC_DialogThread
41 ManualGoto(MWindow *mwindow, EditPanel *panel);
46 ManualGotoWindow *window;
49 void handle_done_event(int result);
53 class ManualGotoKeyItem : public BC_MenuItem
56 ManualGotoKeyItem(ManualGotoDirection *popup,
57 const char *text, const char *htxt);
60 ManualGotoDirection *popup;
64 class ManualGotoDirection : public BC_PopupMenu
67 ManualGotoDirection(ManualGotoWindow *window, int x, int y, int w);
68 void create_objects();
70 ManualGotoWindow *window;
73 class ManualGotoUnitItem : public BC_MenuItem
76 ManualGotoUnitItem(ManualGotoUnits *popup, int type);
79 ManualGotoUnits *popup;
83 class ManualGotoUnits : public BC_PopupMenu
86 ManualGotoUnits(ManualGotoWindow *window, int x, int y, int w);
87 void create_objects();
89 ManualGotoWindow *window;
93 class ManualGotoText : public BC_TextBox
96 ManualGotoText(ManualGotoWindow *window, int x, int y, int w);
98 ManualGotoWindow *window;
101 class ManualGotoWindow : public BC_Window
104 ManualGotoWindow(ManualGoto *mango, int x, int y);
107 void create_objects();
108 void update(double position);
113 BC_Title *format_text;
114 ManualGotoDirection *direction;
115 ManualGotoUnits *units;
116 ManualGotoText *time_text;