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);
47 class N_BodyReset : public BC_GenericButton
50 N_BodyReset(N_BodyWindow *gui, int x, int y);
57 class NBodyModeItems : public ArrayList<BC_ListBoxItem*>
61 ~NBodyModeItems() { remove_all_objects(); }
64 class N_BodySetMode : public BC_PopupTextBox
67 N_BodySetMode(N_BodyWindow *gui, int x, int y, const char *text);
68 void create_objects();
72 NBodyModeItems mode_items;
75 class NBodyDemoItems : public ArrayList<BC_ListBoxItem*>
79 ~NBodyDemoItems() { remove_all_objects(); }
82 class N_BodySetDemo : public BC_PopupTextBox
85 N_BodySetDemo(N_BodyWindow *gui, int x, int y, const char *text);
86 void create_objects();
90 NBodyDemoItems demo_items;
93 class NBodyNumBodyItems : public ArrayList<BC_ListBoxItem*>
96 NBodyNumBodyItems() {}
97 ~NBodyNumBodyItems() { remove_all_objects(); }
100 class N_BodyNumBodies : public BC_PopupTextBox
103 N_BodyNumBodies(N_BodyWindow *gui, int x, int y, const char *text);
104 void create_objects();
108 NBodyNumBodyItems num_body_items;
112 class N_BodyWindow : public PluginClientWindow
115 N_BodyWindow(N_BodyMain *plugin);
118 void create_objects();
121 int grab_event(XEvent *event);
122 int do_grab_event(XEvent *event);
123 void done_event(int result);
124 void send_configure_change();
127 N_BodySetMode *set_mode;
128 N_BodySetDemo *set_demo;
129 N_BodyNumBodies *num_bodies;
133 int press_x, press_y;
134 int button_no, pending_config;