|
AlbumShaper 1.0a3
|
Columnview of all subalbums in album. More...
#include <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. | |
| Q3IconViewItem * | 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 (Q3IconViewItem *item) |
| respond to user clicking collection icons | |
| void | reorder () |
| relayout collectionicons after a create/delete refresh | |
Private Member Functions | |
| void | selectFirstCollection () |
| Select specified subalbum. | |
| void | selectCollection (Q3IconViewItem *item) |
| select specified collection | |
Private Attributes | |
| SubalbumsIconView * | collections |
| list of subalbums | |
| Q3IconViewItem * | 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. | |
Columnview of all subalbums in album.
Definition at line 31 of file subalbumsWidget.h.
| SubalbumsWidget::SubalbumsWidget | ( | QWidget * | parent = 0, |
| const char * | name = 0 ) |
Creates layout.
Definition at line 39 of file subalbumsWidget.cpp.
References collections, createAction(), createButton, currentSelection, deleteAction(), deleteButton, handleSelectionAttempt(), IMAGE_PATH, layout, and reorder().
|
signal |
Referenced by selectCollection().
|
privateslot |
create a new collection
Definition at line 126 of file subalbumsWidget.cpp.
References Album::appendSubalbum(), collections, deleteButton, TitleWidget::getAlbum(), Album::getNumSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, and selectCollection().
Referenced by SubalbumsWidget().
|
privateslot |
deletes the currently selected collection
Definition at line 142 of file subalbumsWidget.cpp.
References collections, deleteButton, TitleWidget::getAlbum(), Window::getTitle(), LayoutWidget::getWindow(), layout, Album::removeSubalbum(), selectCollection(), and TitleWidget::updateMenus().
Referenced by SubalbumsWidget().
| Q3IconViewItem * SubalbumsWidget::getCurrentSelection | ( | ) |
Returns current selection.
Definition at line 235 of file subalbumsWidget.cpp.
References currentSelection.
Referenced by TitleWidget::setSubalbumImage(), and TitleWidget::unsetSubalbumImage().
| LayoutWidget * SubalbumsWidget::getParent | ( | ) |
| Subalbum * SubalbumsWidget::getSelectedSubalbum | ( | ) |
Returns the currently selected subalbum.
Definition at line 237 of file subalbumsWidget.cpp.
References currentSelection.
Referenced by TitleWidget::storeAnnotations().
|
privateslot |
respond to user clicking collection icons
Definition at line 276 of file subalbumsWidget.cpp.
References TitleWidget::getBusy(), Window::getTitle(), LayoutWidget::getWindow(), layout, and selectCollection().
Referenced by SubalbumsWidget().
| void SubalbumsWidget::refreshCollectionsList | ( | ) |
Refreshes list of collections, selecting first by default.
Definition at line 242 of file subalbumsWidget.cpp.
References collections, currentSelection, TitleWidget::getAlbum(), Album::getFirstSubalbum(), Subalbum::getNext(), Window::getTitle(), LayoutWidget::getWindow(), layout, and selectFirstCollection().
Referenced by LayoutWidget::refresh().
|
slot |
Definition at line 196 of file subalbumsWidget.cpp.
References currentSelection.
Referenced by LayoutWidget::refreshSelectedCollectionIconName().
|
privateslot |
relayout collectionicons after a create/delete refresh
Definition at line 208 of file subalbumsWidget.cpp.
References collections, TitleWidget::getAlbum(), Window::getTitle(), LayoutWidget::getWindow(), layout, and Album::syncSubalbumList().
Referenced by SubalbumsWidget().
|
private |
select specified collection
Definition at line 288 of file subalbumsWidget.cpp.
References collections, collectionSelected(), and currentSelection.
Referenced by createAction(), deleteAction(), handleSelectionAttempt(), and selectFirstCollection().
|
private |
Select specified subalbum.
select first collection
Definition at line 283 of file subalbumsWidget.cpp.
References collections, and selectCollection().
Referenced by refreshCollectionsList().
| void SubalbumsWidget::updateButtons | ( | bool | enable | ) |
Activates/Deactives create/delete buttons.
Definition at line 219 of file subalbumsWidget.cpp.
References buttonsState, createButton, and deleteButton.
Referenced by SubalbumWidget::addImageAction(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), TitleWidget::loadAlbum(), SubalbumWidget::removeImageAction(), SubalbumWidget::rotate270ImageAction(), SubalbumWidget::rotate90ImageAction(), TitleWidget::saveAlbum(), and TitleWidget::saveAsAlbum().
|
slot |
Definition at line 202 of file subalbumsWidget.cpp.
References currentSelection.
Referenced by LayoutWidget::updateSubalbumImage().
|
private |
Cached enabled/disabled state of buttons.
Definition at line 80 of file subalbumsWidget.h.
Referenced by updateButtons().
|
private |
list of subalbums
Definition at line 65 of file subalbumsWidget.h.
Referenced by createAction(), deleteAction(), refreshCollectionsList(), reorder(), selectCollection(), selectFirstCollection(), and SubalbumsWidget().
|
private |
Create collection button.
Definition at line 71 of file subalbumsWidget.h.
Referenced by SubalbumsWidget(), and updateButtons().
|
private |
Definition at line 68 of file subalbumsWidget.h.
Referenced by getCurrentSelection(), getSelectedSubalbum(), refreshCollectionsList(), refreshSelectedCollectionName(), selectCollection(), SubalbumsWidget(), and updatedSelectedCollectionImage().
|
private |
Delete collection button.
Definition at line 74 of file subalbumsWidget.h.
Referenced by createAction(), deleteAction(), SubalbumsWidget(), and updateButtons().
|
private |
Pointer to layoutwidget this widget is in.
Definition at line 77 of file subalbumsWidget.h.
Referenced by createAction(), deleteAction(), getParent(), handleSelectionAttempt(), refreshCollectionsList(), reorder(), and SubalbumsWidget().