#include <mainwin.h>
Public Member Functions | |
MainWin (QWidget *=0) | |
Private Slots | |
void | newPicture () |
void | findNewPictures () |
void | saveData () |
void | about () |
void | zoomIn () |
void | zoomOut () |
void | zoomOriginal () |
void | fitWidth () |
void | fitHeight () |
void | newTag () |
void | displayPicture (const QString &) |
void | setDirty () |
void | search () |
void | newPictureList (const QStringList &) |
void | options () |
void | changeDefaultZoom (DisplayMode) |
Private Attributes | |
Ui::MainWindow | m_ui |
Template des Fensters vom Designer. | |
QGraphicsScene * | m_bild |
Hier wird das Bild angezeigt. | |
QString | m_bildname |
Name des aktuellen Bildes. | |
QString | m_path |
Pfad des Bildverzeichnises. | |
Datenbank * | m_datenbank |
Die Tagdatenbank. | |
Bildauswahl * | m_bildauswahl |
Verwaltungsleiste der Bilderliste. | |
bool | m_dirty |
Tags zu aktuellem Bild wurden geaendert. | |
Tagsuche * | m_tagsuche |
Fenster zur Suche nach bestimmten Tags. | |
DisplayMode | m_defaultDisplayMode |
Definition at line 37 of file mainwin.h.
MainWin::MainWin | ( | QWidget * | p = 0 |
) |
Constructor
Definition at line 35 of file mainwin.cpp.
References about(), displayPicture(), DM_ORIGINAL, findNewPictures(), fitHeight(), fitWidth(), Datenbank::getAllTags(), m_bild, m_bildauswahl, m_datenbank, m_defaultDisplayMode, m_dirty, m_path, m_tagsuche, m_ui, newPicture(), newTag(), options(), saveData(), search(), setDirty(), zoomIn(), zoomOriginal(), and zoomOut().
void MainWin::newPicture | ( | ) | [private, slot] |
load new pictures for tagging and viewing
Definition at line 112 of file mainwin.cpp.
References m_path, and newPictureList().
Referenced by MainWin().
void MainWin::findNewPictures | ( | ) | [private, slot] |
Sucht in einem Verzeichnis nach Bildern, die noch nicht in der Datenbank sind.
Definition at line 210 of file mainwin.cpp.
References Datenbank::getAllImages(), m_datenbank, m_path, and newPictureList().
Referenced by MainWin().
void MainWin::saveData | ( | ) | [private, slot] |
Write tags into database
Definition at line 258 of file mainwin.cpp.
References m_bildname, m_datenbank, m_dirty, m_ui, and Datenbank::writeTags().
Referenced by displayPicture(), and MainWin().
void MainWin::about | ( | ) | [private, slot] |
void MainWin::zoomIn | ( | ) | [private, slot] |
Increase picture display
Definition at line 293 of file mainwin.cpp.
References m_ui.
Referenced by MainWin().
void MainWin::zoomOut | ( | ) | [private, slot] |
Decrease picture display
Definition at line 303 of file mainwin.cpp.
References m_ui.
Referenced by MainWin().
void MainWin::zoomOriginal | ( | ) | [private, slot] |
Setzt die Matrix auf Einheitsmatrix zurueck
Definition at line 310 of file mainwin.cpp.
References m_ui.
Referenced by displayPicture(), and MainWin().
void MainWin::fitWidth | ( | ) | [private, slot] |
Passt die Bildbreite an die Fensterbreite an.
Definition at line 317 of file mainwin.cpp.
References m_ui.
Referenced by displayPicture(), and MainWin().
void MainWin::fitHeight | ( | ) | [private, slot] |
Passt die Bildhoehe an die Fensterhoehe an.
Definition at line 326 of file mainwin.cpp.
References m_ui.
Referenced by displayPicture(), and MainWin().
void MainWin::newTag | ( | ) | [private, slot] |
New tags entered
Definition at line 338 of file mainwin.cpp.
References m_ui, and setDirty().
Referenced by MainWin().
void MainWin::displayPicture | ( | const QString & | bildName | ) | [private, slot] |
New picture selected -> Display and update tags
bildName | Path to new picture |
Definition at line 125 of file mainwin.cpp.
References DM_HEIGHT, DM_MAXHEIGHT, DM_MAXWIDTH, DM_ORIGINAL, DM_WIDTH, fitHeight(), fitWidth(), Datenbank::getTags(), m_bild, m_bildname, m_datenbank, m_defaultDisplayMode, m_dirty, m_path, m_ui, saveData(), and zoomOriginal().
Referenced by MainWin().
void MainWin::setDirty | ( | ) | [private, slot] |
void MainWin::search | ( | ) | [private, slot] |
Search pictures with tags
Definition at line 369 of file mainwin.cpp.
References m_datenbank, m_tagsuche, and newPictureList().
Referenced by MainWin().
void MainWin::newPictureList | ( | const QStringList & | list | ) | [private, slot] |
Image list has changed
Definition at line 387 of file mainwin.cpp.
References m_bildauswahl, and Bildauswahl::setImageList().
Referenced by findNewPictures(), newPicture(), and search().
void MainWin::options | ( | ) | [private, slot] |
Definition at line 376 of file mainwin.cpp.
References changeDefaultZoom().
Referenced by MainWin().
void MainWin::changeDefaultZoom | ( | DisplayMode | newDM | ) | [private, slot] |
Aendert den voreingestellten Zoom fuer neu geladene Bilder.
newDM | ID fuer neuen Zoommodus |
Definition at line 397 of file mainwin.cpp.
References m_defaultDisplayMode.
Referenced by options().
Ui::MainWindow MainWin::m_ui [private] |
Template des Fensters vom Designer.
Definition at line 39 of file mainwin.h.
Referenced by displayPicture(), fitHeight(), fitWidth(), MainWin(), newTag(), saveData(), zoomIn(), zoomOriginal(), and zoomOut().
QGraphicsScene* MainWin::m_bild [private] |
Hier wird das Bild angezeigt.
Definition at line 40 of file mainwin.h.
Referenced by displayPicture(), and MainWin().
QString MainWin::m_bildname [private] |
Name des aktuellen Bildes.
Definition at line 41 of file mainwin.h.
Referenced by displayPicture(), and saveData().
QString MainWin::m_path [private] |
Pfad des Bildverzeichnises.
Definition at line 41 of file mainwin.h.
Referenced by displayPicture(), findNewPictures(), MainWin(), and newPicture().
Datenbank* MainWin::m_datenbank [private] |
Die Tagdatenbank.
Definition at line 43 of file mainwin.h.
Referenced by displayPicture(), findNewPictures(), MainWin(), saveData(), and search().
Bildauswahl* MainWin::m_bildauswahl [private] |
Verwaltungsleiste der Bilderliste.
Definition at line 44 of file mainwin.h.
Referenced by MainWin(), and newPictureList().
bool MainWin::m_dirty [private] |
Tags zu aktuellem Bild wurden geaendert.
Definition at line 45 of file mainwin.h.
Referenced by displayPicture(), MainWin(), saveData(), and setDirty().
Tagsuche* MainWin::m_tagsuche [private] |
DisplayMode MainWin::m_defaultDisplayMode [private] |
Definition at line 47 of file mainwin.h.
Referenced by changeDefaultZoom(), displayPicture(), and MainWin().