summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-09-05 18:04:34 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-09-05 18:04:34 +0000
commit7c2a67b93e0e2b80bb89985c92a5aafc6b2b3d65 (patch)
tree60f59ae8df7a8f6b895f226c8445a9b144826497 /shemov.cpp
parentb83db5872cc3ac45795fad67ad2b50d8f9994c96 (diff)
downloadSheMov-7c2a67b93e0e2b80bb89985c92a5aafc6b2b3d65.tar.gz
SheMov-7c2a67b93e0e2b80bb89985c92a5aafc6b2b3d65.tar.bz2
SheMov-7c2a67b93e0e2b80bb89985c92a5aafc6b2b3d65.zip
-started statistics. It compiles, but does nothing at all yet
-implemented aboutShemov and aboutQt git-svn-id: file:///var/svn/repos2/shemov/trunk@405 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index cf29262..4d6f4fc 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -195,6 +195,25 @@ void SheMov::setFsFree(){
mFsFree->setPixmap(QPixmap::fromImage(img));
}
+void SheMov::aboutShemov(){
+ QString aboutLabel = QString(tr("About %1")).arg(qApp->applicationName());
+ QString aboutText = QString(tr("<p>%1 is a little application to keep track of your pr0n movie collection, though it isn't limited to pr0n movies.</p>")).arg(qApp->applicationName());
+ aboutText.append("<table>");
+ aboutText.append(tr("<tr><td>Author<td></td>Sissy herself</td></tr>"));
+ aboutText.append(QString(tr("<tr><td>Organization</td><td>%1</td></tr>")).arg(qApp->organizationName()));
+ aboutText.append(QString(tr("<tr><td>Version</td><td>%1</td></tr>")).arg(qApp->applicationVersion()));
+ aboutText.append(tr("<tr><td>Dependencies</td><td><ul>"));
+ aboutText.append(tr("<li>Qt (thanks to Nokia for this great library)</li>"));
+ aboutText.append(tr("<li>cryptopp for hashing the movies (thanks)</li>"));
+ aboutText.append(tr("<li>libmagic for figuring out the file type</li>"));
+ aboutText.append("</ul></tr></table>");
+ QMessageBox::about(this, aboutLabel, aboutText);
+}
+
+void SheMov::showStatistics(){
+
+}
+
void SheMov::createStatusbar(){
QLabel *selSizeL = new QLabel(tr("Sel. Size"));
mSelectedSize = new QLabel(tr("nothing selected yet"));
@@ -326,6 +345,15 @@ void SheMov::createActions(){
mDeleteFromArchiveA = new QAction(tr("Delete from archive..."), this);
mAVWidget->fileView()->addAction(mDeleteFromArchiveA);
connect(mDeleteFromArchiveA, SIGNAL(triggered()), mAVWidget, SLOT(deleteFromArchive()));
+
+ //Help menu
+ QString aboutLabel = QString(tr("About %1...")).arg(qApp->applicationName());
+ mAboutShemovA = new QAction(aboutLabel, this);
+ connect(mAboutShemovA, SIGNAL(triggered()), this, SLOT(aboutShemov()));
+ mAboutQtA = new QAction(tr("About Qt..."), this);
+ connect(mAboutQtA, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+ mStatisticsA = new QAction(tr("Some statistics..."), this);
+ connect(mStatisticsA, SIGNAL(triggered()), this, SLOT(showStatistics()));
}
void SheMov::createMenus(){
@@ -372,6 +400,13 @@ void SheMov::createMenus(){
mEditFSMenuA = menuBar()->addMenu(mEditFSMenu);
mEditArchiveMenuA = menuBar()->addMenu(mEditArchiveMenu);
mEditArchiveMenuA->setVisible(false);
+
+ QMenu *helpMenu = new QMenu(tr("&Help"), this);
+ helpMenu->addAction(mAboutShemovA);
+ helpMenu->addAction(mAboutQtA);
+ helpMenu->addSeparator();
+ helpMenu->addAction(mStatisticsA);
+ menuBar()->addMenu(helpMenu);
}
void SheMov::createExtractMenu(){