comparison src/gui/pages/seasons.cc @ 258:862d0d8619f6

*: HUUUGE changes animia has been renamed to animone, so instead of thinking of a health condition, you think of a beautiful flower :) I've also edited some of the code for animone, but I have no idea if it even works or not because I don't have a mac or windows machine lying around. whoops! ... anyway, all of the changes divergent from Anisthesia are now licensed under BSD. it's possible that I could even rewrite most of the code to where I don't even have to keep the MIT license, but that's thinking too far into the future I've been slacking off on implementing the anime seasons page, mostly out of laziness. I think I'd have to create another db file specifically for the seasons anyway, this code is being pushed *primarily* because the hard drive it's on is failing! yay :)
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 02:43:44 -0400
parents fe702c8f161f
children dd211ff68b36
comparison
equal deleted inserted replaced
257:699a20c57dc8 258:862d0d8619f6
1 #include "gui/pages/seasons.h" 1 #include "gui/pages/seasons.h"
2 2
3 #include "core/anime_db.h" 3 #include "core/anime_db.h"
4 #include "gui/widgets/anime_button.h" 4 #include "gui/widgets/anime_button.h"
5 #include "gui/layouts/flow_layout.h"
6 5
7 #include <QVBoxLayout>
8 #include <QToolBar>
9 #include <QFrame> 6 #include <QFrame>
10 #include <QListWidget> 7 #include <QListWidget>
11 #include <QListWidgetItem> 8 #include <QListWidgetItem>
12 #include <QMenu> 9 #include <QMenu>
10 #include <QToolBar>
13 #include <QToolButton> 11 #include <QToolButton>
12 #include <QVBoxLayout>
14 13
15 SeasonsPage::SeasonsPage(QWidget* parent) : QWidget(parent) { 14 SeasonsPage::SeasonsPage(QWidget* parent) : QWidget(parent) {
16 QVBoxLayout* full_layout = new QVBoxLayout(this); 15 QVBoxLayout* full_layout = new QVBoxLayout(this);
17 16
18 { 17 {
35 action->setIcon(QIcon(":/icons/16x16/calendar-next.png")); 34 action->setIcon(QIcon(":/icons/16x16/calendar-next.png"));
36 action->setToolTip(tr("Next season")); 35 action->setToolTip(tr("Next season"));
37 toolbar->addAction(action); 36 toolbar->addAction(action);
38 } 37 }
39 38
40 toolbar->addAction(QIcon(":/icons/16x16/calendar.png"), "Fall 2024"); // this must be named the name of the season 39 toolbar->addAction(QIcon(":/icons/16x16/calendar.png"),
40 "Fall 2024"); // this must be named the name of the season
41 } 41 }
42 42
43 toolbar->addSeparator(); 43 toolbar->addSeparator();
44 44
45 { 45 { toolbar->addAction(QIcon(":/icons/16x16/arrow-circle-315.png"), tr("Refresh data")); }
46 toolbar->addAction(QIcon(":/icons/16x16/arrow-circle-315.png"), tr("Refresh data"));
47 }
48 46
49 toolbar->addSeparator(); 47 toolbar->addSeparator();
50 48
51 { 49 {
52 QToolButton* button = new QToolButton(toolbar); 50 QToolButton* button = new QToolButton(toolbar);