[Foo2zjs-commits] r61 - download-gui
white at alioth.debian.org
white at alioth.debian.org
Wed Sep 26 08:23:20 UTC 2007
Author: white
Date: 2007-09-26 08:23:20 +0000 (Wed, 26 Sep 2007)
New Revision: 61
Modified:
download-gui/gui.cpp
download-gui/gui.h
download-gui/main.cpp
Log:
Add all the needed buttons for the current firmwares supported by foo2zjs
Modified: download-gui/gui.cpp
===================================================================
--- download-gui/gui.cpp 2007-09-25 15:08:24 UTC (rev 60)
+++ download-gui/gui.cpp 2007-09-26 08:23:20 UTC (rev 61)
@@ -13,19 +13,70 @@
}
qDebug()<<check;
- setWindowTitle(tr("Firmware download"));
+ setWindowTitle(tr("Foo2zjs firmware downloader"));
QVBoxLayout *mainLayout = new QVBoxLayout;
- QPushButton *hpButton = new QPushButton(tr("Download HP-blablabla"));
- QPushButton *firmButton = new QPushButton(tr("Download really-non-free-blablabla"));
+ QPushButton *hp2600Button = new QPushButton(tr("Download firmware for HP2600"));
+ QPushButton *hp1600Button = new QPushButton(tr("Download firmware for HP1600"));
+ QPushButton *hp1020Button = new QPushButton(tr("Download firmware for HP1020"));
+ QPushButton *hp1018Button = new QPushButton(tr("Download firmware for HP1018"));
+ QPushButton *hp1005Button = new QPushButton(tr("Download firmware for HP1005"));
+ QPushButton *hp1000Button = new QPushButton(tr("Download firmware for HP1000"));
+ QPushButton *minolta2530Button = new QPushButton(tr("Download firmware for Minolta 2530"));
+ QPushButton *minolta2490Button = new QPushButton(tr("Download firmware for Minolta 2490"));
+ QPushButton *minolta2480Button = new QPushButton(tr("Download firmware for Minolta 2480"));
+ QPushButton *minolta2430Button = new QPushButton(tr("Download firmware for Minolta 2430"));
+ QPushButton *minolta2300Button = new QPushButton(tr("Download firmware for Minolta 2300"));
+ QPushButton *minolta2200Button = new QPushButton(tr("Download firmware for Minolta 2200"));
+ QPushButton *minoltaproButton = new QPushButton(tr("Download firmware for Minolta PageWorks/Pro L"));
+ QPushButton *samsung3160Button = new QPushButton(tr("Download firmware for Samsung CLX-3160"));
+ QPushButton *samsung600Button = new QPushButton(tr("Download firmware for Samsung CLP-600"));
+ QPushButton *samsung300Button = new QPushButton(tr("Download firmware for Samsung CLP-300"));
+ QPushButton *xerox6115Button = new QPushButton(tr("Download firmware for Xerox Phaser 6115"));
+ QPushButton *xerox6110Button = new QPushButton(tr("Download firmware for Xerox Phaser 6110"));
+ QPushButton *allButton = new QPushButton(tr("Download all mentioned firmwares"));
QPushButton *exitButton = new QPushButton(tr("Exit"));
- hpButton->setFont(QFont("Times", 18));
- firmButton->setFont(QFont("Times", 18));
+ hp2600Button->setFont(QFont("Times", 18));
+ hp1600Button->setFont(QFont("Times", 18));
+ hp1020Button->setFont(QFont("Times", 18));
+ hp1018Button->setFont(QFont("Times", 18));
+ hp1005Button->setFont(QFont("Times", 18));
+ hp1000Button->setFont(QFont("Times", 18));
+ minolta2530Button->setFont(QFont("Times", 18));
+ minolta2490Button->setFont(QFont("Times", 18));
+ minolta2480Button->setFont(QFont("Times", 18));
+ minolta2430Button->setFont(QFont("Times", 18));
+ minolta2300Button->setFont(QFont("Times", 18));
+ minolta2200Button->setFont(QFont("Times", 18));
+ minoltaproButton->setFont(QFont("Times", 18));
+ samsung3160Button->setFont(QFont("Times", 18));
+ samsung600Button->setFont(QFont("Times", 18));
+ samsung300Button->setFont(QFont("Times", 18));
+ xerox6115Button->setFont(QFont("Times", 18));
+ xerox6110Button->setFont(QFont("Times", 18));
+ allButton->setFont(QFont("Times", 18));
exitButton->setFont(QFont("Times", 18));
- mainLayout->addWidget(hpButton, 0, 0);
- mainLayout->addWidget(firmButton, 1, 0);
- mainLayout->addWidget(exitButton, 2, 0);
+ mainLayout->addWidget(hp2600Button, 0, 0);
+ mainLayout->addWidget(hp1600Button, 1, 0);
+ mainLayout->addWidget(hp1020Button, 2, 0);
+ mainLayout->addWidget(hp1018Button, 3, 0);
+ mainLayout->addWidget(hp1005Button, 4, 0);
+ mainLayout->addWidget(hp1000Button, 5, 0);
+ mainLayout->addWidget(minolta2530Button, 6, 0);
+ mainLayout->addWidget(minolta2490Button, 7, 0);
+ mainLayout->addWidget(minolta2480Button, 8, 0);
+ mainLayout->addWidget(minolta2430Button, 9, 0);
+ mainLayout->addWidget(minolta2300Button, 10, 0);
+ mainLayout->addWidget(minolta2200Button, 11, 0);
+ mainLayout->addWidget(minoltaproButton, 12, 0);
+ mainLayout->addWidget(samsung3160Button, 13, 0);
+ mainLayout->addWidget(samsung600Button, 14, 0);
+ mainLayout->addWidget(samsung300Button, 15, 0);
+ mainLayout->addWidget(xerox6115Button, 16, 0);
+ mainLayout->addWidget(xerox6110Button, 17, 0);
+ mainLayout->addWidget(allButton, 18, 0);
+ mainLayout->addWidget(exitButton, 3, 0);
setMinimumSize(400, 200);
setLayout(mainLayout);
Modified: download-gui/gui.h
===================================================================
--- download-gui/gui.h 2007-09-25 15:08:24 UTC (rev 60)
+++ download-gui/gui.h 2007-09-26 08:23:20 UTC (rev 61)
@@ -6,9 +6,7 @@
#include <QVBoxLayout>
#include <QPushButton>
#include <QMessageBox>
-#include <QAction>
#include <QApplication>
-#include <QAbstractButton>
#include <QDebug>
Modified: download-gui/main.cpp
===================================================================
--- download-gui/main.cpp 2007-09-25 15:08:24 UTC (rev 60)
+++ download-gui/main.cpp 2007-09-26 08:23:20 UTC (rev 61)
@@ -1,4 +1,3 @@
-#include <QApplication>
#include "gui.h"
int main(int argc, char *argv[])
More information about the Foo2zjs-commits
mailing list