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 ManualGotoWindow;
32 class ManualGotoNumber;
34 class ManualGoto : public BC_DialogThread
37 ManualGoto(MWindow *mwindow, EditPanel *panel);
42 ManualGotoWindow *gotowindow;
45 void handle_done_event(int result);
50 class ManualGotoWindow : public BC_Window
53 ManualGotoWindow(ManualGoto *mango, int x, int y);
56 void create_objects();
57 void reset_data(double position);
58 double get_new_position();
59 void update_position(double position);
63 ManualGotoNumber *hours;
64 ManualGotoNumber *minutes;
65 ManualGotoNumber *seconds;
66 ManualGotoNumber *msecs;
71 class ManualGotoNumber : public BC_TextBox
74 ManualGotoNumber(ManualGotoWindow *window, int x, int y, int w,
75 int max, const char *format);
77 ManualGotoWindow *window;
79 void update(int64_t number);