#include <subalbumsWidget.h>
Inheritance diagram for SubalbumsWidget:
Definition at line 29 of file subalbumsWidget.h.
Public Slots | |
void | updatedSelectedCollectionImage (QPixmap *val) |
void | refreshSelectedCollectionName () |
Signals | |
void | collectionSelected (Subalbum *) |
Public Member Functions | |
SubalbumsWidget (QWidget *parent=0, const char *name=0) | |
Creates layout. | |
void | refreshCollectionsList () |
Refreshes list of collections, selecting first by default. | |
LayoutWidget * | getParent () |
Returns parent. | |
void | updateButtons (bool enable) |
Activates/Deactives create/delete buttons. | |
QIconViewItem * | getCurrentSelection () |
Returns current selection. | |
Subalbum * | getSelectedSubalbum () |
Returns the currently selected subalbum. | |
Private Slots | |
void | createAction () |
create a new collection | |
void | deleteAction () |
deletes the currently selected collection | |
void | handleSelectionAttempt (QIconViewItem *item) |
respond to user clicking collection icons | |
void | reorder () |
relayout collectionicons after a create/delete refresh | |
Private Member Functions | |
void | selectFirstCollection () |
select first collection | |
void | selectCollection (QIconViewItem *item) |
select specified collection | |
Private Attributes | |
SubalbumsIconView * | collections |
list of subalbums | |
QIconViewItem * | currentSelection |
QToolButton * | createButton |
Create collection button. | |
QToolButton * | deleteButton |
Delete collection button. | |
LayoutWidget * | layout |
Pointer to layoutwidget this widget is in. | |
bool | buttonsState |
Cached enabled/disabled state of buttons. |
|
Creates layout.
Definition at line 36 of file subalbumsWidget.cpp. References collections, createAction(), createButton, currentSelection, deleteAction(), deleteButton, handleSelectionAttempt(), IMAGE_PATH, layout, reorder(), and SubalbumsWidget(). Referenced by SubalbumsWidget().
|
|
Referenced by selectCollection(). |
|
create a new collection
Definition at line 123 of file subalbumsWidget.cpp. References Album::appendSubalbum(), collections, deleteButton, TitleWidget::getAlbum(), Album::getNumSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, and selectCollection(). Referenced by SubalbumsWidget().
|
|
deletes the currently selected collection
Definition at line 139 of file subalbumsWidget.cpp. References collections, deleteButton, TitleWidget::getAlbum(), Window::getTitle(), LayoutWidget::getWindow(), layout, Album::removeSubalbum(), selectCollection(), and TitleWidget::updateMenus(). Referenced by SubalbumsWidget().
|
|
Returns current selection.
Definition at line 232 of file subalbumsWidget.cpp. References currentSelection. Referenced by TitleWidget::setSubalbumImage(), and TitleWidget::unsetSubalbumImage().
|
|
Returns parent.
Definition at line 231 of file subalbumsWidget.cpp. References layout.
|
|
Returns the currently selected subalbum.
Definition at line 234 of file subalbumsWidget.cpp. References currentSelection. Referenced by TitleWidget::storeAnnotations().
|
|
respond to user clicking collection icons
Definition at line 273 of file subalbumsWidget.cpp. References TitleWidget::getBusy(), Window::getTitle(), LayoutWidget::getWindow(), handleSelectionAttempt(), layout, and selectCollection(). Referenced by handleSelectionAttempt(), and SubalbumsWidget().
|
|
Refreshes list of collections, selecting first by default.
Definition at line 239 of file subalbumsWidget.cpp. References collections, currentSelection, TitleWidget::getAlbum(), Album::getFirstSubalbum(), Subalbum::getNext(), Window::getTitle(), LayoutWidget::getWindow(), layout, and selectFirstCollection(). Referenced by LayoutWidget::refresh().
|
|
Definition at line 193 of file subalbumsWidget.cpp. References currentSelection. Referenced by LayoutWidget::refreshSelectedCollectionIconName().
|
|
relayout collectionicons after a create/delete refresh
Definition at line 205 of file subalbumsWidget.cpp. References collections, TitleWidget::getAlbum(), Window::getTitle(), LayoutWidget::getWindow(), layout, and Album::syncSubalbumList(). Referenced by SubalbumsWidget().
|
|
select specified collection
Definition at line 285 of file subalbumsWidget.cpp. References collections, collectionSelected(), currentSelection, and selectCollection(). Referenced by createAction(), deleteAction(), handleSelectionAttempt(), selectCollection(), and selectFirstCollection().
|
|
select first collection
Definition at line 280 of file subalbumsWidget.cpp. References collections, and selectCollection(). Referenced by refreshCollectionsList().
|
|
Activates/Deactives create/delete buttons.
Definition at line 216 of file subalbumsWidget.cpp. References buttonsState, createButton, deleteButton, and updateButtons(). Referenced by SubalbumWidget::addImageAction(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), TitleWidget::loadAlbum(), SubalbumWidget::removeImageAction(), SubalbumWidget::rotate270ImageAction(), SubalbumWidget::rotate90ImageAction(), TitleWidget::saveAlbum(), TitleWidget::saveAsAlbum(), and updateButtons().
|
|
Definition at line 199 of file subalbumsWidget.cpp. References currentSelection, and updatedSelectedCollectionImage(). Referenced by updatedSelectedCollectionImage(), and LayoutWidget::updateSubalbumImage().
|
|
Cached enabled/disabled state of buttons.
Definition at line 78 of file subalbumsWidget.h. Referenced by updateButtons(). |
|
list of subalbums
Definition at line 63 of file subalbumsWidget.h. Referenced by createAction(), deleteAction(), refreshCollectionsList(), reorder(), selectCollection(), selectFirstCollection(), and SubalbumsWidget(). |
|
Create collection button.
Definition at line 69 of file subalbumsWidget.h. Referenced by SubalbumsWidget(), and updateButtons(). |
|
Definition at line 66 of file subalbumsWidget.h. Referenced by getCurrentSelection(), getSelectedSubalbum(), refreshCollectionsList(), refreshSelectedCollectionName(), selectCollection(), SubalbumsWidget(), and updatedSelectedCollectionImage(). |
|
Delete collection button.
Definition at line 72 of file subalbumsWidget.h. Referenced by createAction(), deleteAction(), SubalbumsWidget(), and updateButtons(). |
|
Pointer to layoutwidget this widget is in.
Definition at line 75 of file subalbumsWidget.h. Referenced by createAction(), deleteAction(), getParent(), handleSelectionAttempt(), refreshCollectionsList(), reorder(), and SubalbumsWidget(). |