-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDataWindow.h
More file actions
41 lines (32 loc) · 898 Bytes
/
DataWindow.h
File metadata and controls
41 lines (32 loc) · 898 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
40
41
//
// Created by andre on 11/16/2024.
//
#ifndef DATAWINDOW_H
#define DATAWINDOW_H
#include <iostream>
#include <gtkmm-4.0/gtkmm.h>
#include <string>
#include "School.h"
class DataWindow : public Gtk::Window {
Gtk::Grid data_grid_;
Gtk::Button resort_button_;
Gtk::Button view_stats_;
std::vector<School*> filtered_data_;
bool min_sort_;
std::string level_;
std::string sort_opt_;
protected:
void setResortSignal();
void resortFunction();
void setResortButtonProperties();
void setStatsButton();
void statButtonSignal();
void setTable();
void addRow(School* s, int r);
void getStats();
void filterData(std::vector<School*>& schools_, std::string state);
public:
DataWindow(std::vector<School*>& schools_, bool max, std::string level,
std::string state, std::string sort_opt);
};
#endif //DATAWINDOW_H