-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpokedex.h
54 lines (39 loc) · 1.04 KB
/
pokedex.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef POKEDEX_H
#define POKEDEX_H
#include <QTableView>
#include <QMainWindow>
#include <QItemSelection>
#include <QListView>
#include <QListWidget>
#include <vector>
#include "data.h"
#include <QtCore>
QT_BEGIN_NAMESPACE
namespace Ui { class Pokedex; }
QT_END_NAMESPACE
class Pokedex : public QMainWindow
{
Q_OBJECT
public:
Pokedex(QWidget *parent = nullptr);
~Pokedex();
void updateTable(const std::vector<pokemon>& filteredPokemons);
QMap<QString, QPixmap> resizedImageCache; // resized image cache for updateTable
private slots:
void clickedPokemon(QListWidgetItem* item);
private:
Ui::Pokedex *ui;
QTableView *tableView;
QWidget *radarChart;
QListWidget listWidget;
QListWidget listWidget_2;
std::vector<pokemon> allPokemons;
pokemon selectedPokemonList1;
pokemon selectedPokemonList2;
void parseCSV();
void initializeUI();
void filterType();
void initializeQListWidgets();
void comparePokemons(const pokemon &pokemon1, const pokemon &pokemon2);
};
#endif // POKEDEX_H