From 8515d609c1b42c78a3ed36b540438184fe495d80 Mon Sep 17 00:00:00 2001 From: Isabell Pflug Date: Tue, 23 May 2023 21:37:22 +0200 Subject: [PATCH] :lipstick: Added some icons, added some initialisation functions --- assignments/06/ThinkPink/ThinkPink.pro | 3 + assignments/06/ThinkPink/icons/ThinkPink.png | Bin 0 -> 8254 bytes assignments/06/ThinkPink/icons/game.png | Bin 0 -> 15135 bytes assignments/06/ThinkPink/mainwindow.cpp | 28 +++++ assignments/06/ThinkPink/mainwindow.h | 5 + assignments/06/ThinkPink/mainwindow.ui | 112 ++++++++++++++++++- assignments/06/ThinkPink/thinkpink.qrc | 6 + 7 files changed, 148 insertions(+), 6 deletions(-) create mode 100755 assignments/06/ThinkPink/icons/ThinkPink.png create mode 100644 assignments/06/ThinkPink/icons/game.png create mode 100644 assignments/06/ThinkPink/thinkpink.qrc diff --git a/assignments/06/ThinkPink/ThinkPink.pro b/assignments/06/ThinkPink/ThinkPink.pro index b915c09..126c140 100644 --- a/assignments/06/ThinkPink/ThinkPink.pro +++ b/assignments/06/ThinkPink/ThinkPink.pro @@ -22,3 +22,6 @@ FORMS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + thinkpink.qrc diff --git a/assignments/06/ThinkPink/icons/ThinkPink.png b/assignments/06/ThinkPink/icons/ThinkPink.png new file mode 100755 index 0000000000000000000000000000000000000000..adbcb09e70bc97c41811b231b96657c928d3248e GIT binary patch literal 8254 zcmV-EAi>{>P)m| zW>23vC7Zm-m(PB}nR(jG{N`!DGH@CrcP}lI#mklqbvuRnaU}3XAP-Z0WvJUTRGhW~fC_#SaP|MXLl!R|J(SHEDo#rQkj2Z-1#TR4 z$bpit4^?}HlG9QEzf488@74rteZ!y z7&rIoY}S#CAr%0nYZLo=)pL!^)U#MiI$inovSj($8EeWQ8i&pFm_g$=N+`}o`BoWH z0T96te9AK}=et=cfAO;Ofsdt8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O8fJ}%HViSVM5#I@RHGOMoN5}$ zR)l6zvQI-hAR>E3aX?dQpHgbK;SBEj_@-ZG{3~E~IVl9d3NMejr2vfbpeCgPrJABt zpcIo*lqyl7n1;D1DHOr2AQvbET)^Nc%?gMWQ$7H6h98n63awWVFK`6t1?3gYBN}vz wXl+WP70eb;EkS72gx0)1tu>h*{$%0*0S=foMaJA$MF0Q*07*qoM6N<$g4^x?LI3~& literal 0 HcmV?d00001 diff --git a/assignments/06/ThinkPink/icons/game.png b/assignments/06/ThinkPink/icons/game.png new file mode 100644 index 0000000000000000000000000000000000000000..0fc89e3269d936ad2ca49c4c853dc16b7128cb2c GIT binary patch literal 15135 zcmeIZX;f2L^Di8*5og*56(tDW`iM;<(ufcl(@HCCE1)ujF+n3BLlO{~!Vqj!S~1X$ z%+QJiNPsX;Ap}8!%A~-7Ku7>VkU$cqB#@Bg9{RoS{rrCUe|XorVFByp)ZSIQc2%8S z^{eynilhDR9ojn}5XkO}zyEd(0#RMu{N1({{AP)C77za0dgGG)ZxH3?&p-5{XAsB_ zkc+>ab&1YdkVlPS0(@qb3`hL7SI2%_{rOtq#q_fV*Y13`f9Fq;zg7JB<=f-^Y^MwU zIvwUex$PS~d${W-^NJt-+;dKJC zEPaUH=b0a0M%f37@P9x5R|EgU8fYD|j1)j175^=AlavWua=mkX4(FNeg+LY!Qp*zF zNPjEvg^%`<1u*nU2xMZ%#?5^122@@A>(56uAdu3#^9ZfTuWB2UJdJ=$>JUiWQ)3}H zMbZw~`(IM8&`8a+f57qt)EvdYg%s zYx)VRZLL*5O{lQ+op-FQr01#nKHRqm33(Rmc;9)?XeFnn(Bfk1r!Os@$S$|iYR!TS)%1KH`aXu^`WiV7rAxwt{vzc_vh z@heCceP`g2WT&>K4|pSU?6qZ4pxOqm?>VUJ;&LB)RbYqg7{H%>xE%t?@t~8z%Sm42 z$~$mI-79p;T!$jXf_)vsp$WN=H5ed!5J%0UZ-+lvcJ?1Yj8h45d_+~)+|0XNRnL!|H`|69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-ZzhC(%+%RcX-M0ko`0O6xb`XMpJXUtt+!f?&6%jtrE@oyfi1zao+hkHk{ zd$Az_0uih<84Z1g%x4|Us><(TpBzPQw%=Vwf3dDO;`Zw9R}eruywnAq@*0jm-al-{ zoKRexGFv;g!c>V2^^fS}^%CWWv4Hy{@n)YvU+`rX0VDdz1Bfqf4h5Q8p1HDbvBEQ1 zTVqt+MWa-J$hAc0r9kb_$gA{HDS@bNRzyD#*OhnI`Y@}-`J8VSvBD?fybDyR znxPf=Hq8J1{7-3MO_b literal 0 HcmV?d00001 diff --git a/assignments/06/ThinkPink/mainwindow.cpp b/assignments/06/ThinkPink/mainwindow.cpp index 55eea55..f47116b 100644 --- a/assignments/06/ThinkPink/mainwindow.cpp +++ b/assignments/06/ThinkPink/mainwindow.cpp @@ -3,11 +3,39 @@ extern std::unique_ptr settings; +void MainWindow::initialiseAbout() { + QCoreApplication::setOrganizationName("Isabell Elise"); + QCoreApplication::setOrganizationDomain("https://liberapay.com/isabell-elise/"); + QCoreApplication::setApplicationName("ThinkPink"); +} + +void MainWindow::initialiseGameGrid() { + int n_rows = settings->value("size/rows", 9).toInt(); + int n_columns = settings->value("size/columns", 9).toInt(); + std::cout << "Number of rows: " << n_rows << std::endl; + std::cout << "Number of columns: " << n_columns << std::endl; +} + +void MainWindow::initialiseWindow() { + MainWindow::setWindowTitle("ThinkPink | SameGame in PINK by Isifluff"); + MainWindow::setWindowIcon(QIcon(":/icons/ThinkPink.png")); +} + +void MainWindow::initialiseMenuBar() { + ui->menuPlay->addAction(QIcon(":/icons/game.png"), "New Game"); + ui->menuPlay->addSeparator(); + //ui->menuPlay->addAction("Brag"); +} + MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); + initialiseAbout(); + initialiseGameGrid(); + initialiseWindow(); + initialiseMenuBar(); } MainWindow::~MainWindow() diff --git a/assignments/06/ThinkPink/mainwindow.h b/assignments/06/ThinkPink/mainwindow.h index 0cfdaa4..deae66a 100644 --- a/assignments/06/ThinkPink/mainwindow.h +++ b/assignments/06/ThinkPink/mainwindow.h @@ -1,6 +1,7 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include #include #include @@ -15,6 +16,10 @@ class MainWindow : public QMainWindow public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); + void initialiseAbout(); + void initialiseGameGrid(); + void initialiseWindow(); + void initialiseMenuBar(); private: Ui::MainWindow *ui; diff --git a/assignments/06/ThinkPink/mainwindow.ui b/assignments/06/ThinkPink/mainwindow.ui index de091fd..4484055 100644 --- a/assignments/06/ThinkPink/mainwindow.ui +++ b/assignments/06/ThinkPink/mainwindow.ui @@ -13,8 +13,109 @@ MainWindow - - + + + + + 0 + 0 + 801 + 441 + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + <html><head/><body><p><span style=" font-size:20pt;">Score</span></p></body></html> + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + false + + + 5 + + + QLCDNumber::Dec + + + QLCDNumber::Flat + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + 0 @@ -23,14 +124,13 @@ 26 - + - ThinkPink + Play - + - diff --git a/assignments/06/ThinkPink/thinkpink.qrc b/assignments/06/ThinkPink/thinkpink.qrc new file mode 100644 index 0000000..ddcea06 --- /dev/null +++ b/assignments/06/ThinkPink/thinkpink.qrc @@ -0,0 +1,6 @@ + + + icons/game.png + icons/ThinkPink.png + +