-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSortGUI.h
More file actions
39 lines (30 loc) · 843 Bytes
/
SortGUI.h
File metadata and controls
39 lines (30 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#if !defined SORTGUI_H
#define SORTGUI_H
#include "Plot.h"
#include "DrawPanel.h"
#include "CD.h"
using CSC2110::CD;
#include "Color.h"
class SortGUI : public wxFrame
{
private:
Plot* plot;
CD** cds;
CD** sorted_cds;
int n_max;
int increment;
DrawPanel* sort_draw_panel;
CD** randomCDs(int numToCreate, int numCharacters);
bool busy;
public:
SortGUI(int w, int h, int n, int incr, Plot* plot);
virtual ~SortGUI();
void sort(int n_start, int n_end, int incr, int sortMethod, Color* color, int radius);
void sort(CD** items, int numToSort, int sortMethod);
void on_sort_button_click_event(wxCommandEvent& evt);
void startSortPlotThread();
void sortPlot();
void setDrawPanel(DrawPanel* draw_panel);
DECLARE_EVENT_TABLE()
};
#endif