3 * Copyright (C) 2008-2014 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef NBODYCUDAWINDOW_H
22 #define NBODYCUDAWINDOW_H
34 class NBodyNumBodyItems;
35 class N_BodyNumBodies;
38 class N_BodyDrag : public BC_CheckBox
41 N_BodyDrag(N_BodyWindow *gui, int x, int y);
48 class N_BodyReset : public BC_GenericButton
51 N_BodyReset(N_BodyWindow *gui, int x, int y);
58 class NBodyModeItems : public ArrayList<BC_ListBoxItem*>
62 ~NBodyModeItems() { remove_all_objects(); }
65 class N_BodySetMode : public BC_PopupTextBox
68 N_BodySetMode(N_BodyWindow *gui, int x, int y, const char *text);
69 void create_objects();
73 NBodyModeItems mode_items;
76 class NBodyDemoItems : public ArrayList<BC_ListBoxItem*>
80 ~NBodyDemoItems() { remove_all_objects(); }
83 class N_BodySetDemo : public BC_PopupTextBox
86 N_BodySetDemo(N_BodyWindow *gui, int x, int y, const char *text);
87 void create_objects();
91 NBodyDemoItems demo_items;
94 class NBodyNumBodyItems : public ArrayList<BC_ListBoxItem*>
97 NBodyNumBodyItems() {}
98 ~NBodyNumBodyItems() { remove_all_objects(); }
101 class N_BodyNumBodies : public BC_PopupTextBox
104 N_BodyNumBodies(N_BodyWindow *gui, int x, int y, const char *text);
105 void create_objects();
109 NBodyNumBodyItems num_body_items;
113 class N_BodyWindow : public PluginClientWindow
116 N_BodyWindow(N_BodyMain *plugin);
119 void create_objects();
122 int grab_event(XEvent *event);
123 int do_grab_event(XEvent *event);
124 void done_event(int result);
125 void send_configure_change();
128 N_BodySetMode *set_mode;
129 N_BodySetDemo *set_demo;
130 N_BodyNumBodies *num_bodies;
134 int press_x, press_y;
135 int button_no, pending_config;