Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

FrameBar Class Reference

#include <framebar.h>

Inheritance diagram for FrameBar:

Observer List of all members.

Public Slots

void frameSoundsChanged ()

Signals

void newActiveFrame (const QString &)
void newActiveFrame (int value)
void modelSizeChanged (int modelSize)

Public Member Functions

 FrameBar (QWidget *parent=0)
 ~FrameBar ()
void updateAdd (const vector< char * > &frames, unsigned int index, Frontend *frontend)
void updateRemove (unsigned int fromFrame, unsigned int toFrame)
void updateMove (unsigned int fromFrame, unsigned int toFrame, unsigned int movePosition)
void updateNewActiveFrame (int frameNumber)
void updateClear ()
void updatePlayFrame (int frameNumber)
void updateNewScene (int index)
void updateRemoveScene (int sceneNumber)
void updateMoveScene (int sceneNumber, int movePosition)
void updateNewActiveScene (int sceneNumber, vector< char * > framePaths, Frontend *frontend)
void updateAnimationChanged (int frameNumber)
void setSelecting (bool selecting)
bool isSelecting ()
void setSelection (int selectionFrame)
int getSelectionFrame ()
void setPreferencesMenu (FramePreferencesMenu *preferencesMenu)
void showPreferencesMenu ()
int getMovingScene ()
void setMovingScene (int movingScene)
void setOpeningScene (bool openingScene)
bool isOpeningScene ()

Protected Member Functions

void contentsDragEnterEvent (QDragEnterEvent *event)
void contentsDropEvent (QDropEvent *event)
void resizeEvent (QResizeEvent *event)

Detailed Description

The framebar widget for viewing the animation model.

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Constructor & Destructor Documentation

FrameBar::FrameBar QWidget *  parent = 0  ) 
 

Creates and sets up the framebar.

Parameters:
parent the parent widget

FrameBar::~FrameBar  ) 
 

Cleans up after the framebar.


Member Function Documentation

void FrameBar::contentsDragEnterEvent QDragEnterEvent *  event  )  [protected]
 

Overloaded event function for when when a drag enters the framebar

Parameters:
event information about the dragEnterEvent

void FrameBar::contentsDropEvent QDropEvent *  event  )  [protected]
 

Overloaded event function for when a drop event occur in the framebar.

Parameters:
event information about the dropEvent

void FrameBar::frameSoundsChanged  )  [slot]
 

Recieves notification when the sounds in a frame has been changed.

int FrameBar::getMovingScene  ) 
 

Retrieves the value of the movingScene property specifying which scene is currently being moved in the framebar.

Returns:
the value of the movingScene property.

int FrameBar::getSelectionFrame  ) 
 

Returns the current selectionFrame

Returns:
the current selectionFrame

bool FrameBar::isOpeningScene  ) 
 

Returns true if a scene is currently being opened.

Returns:
true if a scene is currently being opened.

bool FrameBar::isSelecting  ) 
 

Returns true if the user is currently selecting several thumbviews.

Returns:
true if the user is currently selecting several thumbviews.

void FrameBar::resizeEvent QResizeEvent *  event  )  [protected]
 

Overloaded event function for recieving resize event. These events cause the thumbviews to change size.

Parameters:
event information about the event.

void FrameBar::setMovingScene int  movingScene  ) 
 

Sets the value of the movingScene property specifying which scene is currently being moved in the framebar.

Parameters:
movingScene the new value of the movingScene property.

void FrameBar::setOpeningScene bool  openingScene  ) 
 

Sets whether the scene is currently opening so that close requests can be ignored while it is processing.

Parameters:
openingScene true if the scene is currently being opened. False if not.

void FrameBar::setPreferencesMenu FramePreferencesMenu preferencesMenu  ) 
 

Registers the frame preferences menu in the framebar.

Parameters:
preferencesMenu the frame preferences menu.

void FrameBar::setSelecting bool  selecting  ) 
 

Set whether the user is engaged selecting several frames or not (pressing shift).

Parameters:
selecting true if the user is currently selecting multiple pictures

void FrameBar::setSelection int  selectionFrame  ) 
 

Sets a selection of frames between (including) this frame and the activeFrame.

Todo:
change name to setSelectionFrame
Parameters:
selectionFrame the other border frame of the selection in addition to activeFrame

void FrameBar::showPreferencesMenu  ) 
 

Displays the frame preferences for the active frame.

void FrameBar::updateAdd const vector< char * > &  frames,
unsigned int  index,
Frontend frontend
[virtual]
 

Function to recieven notification when a frame is added.

Implements Observer.

void FrameBar::updateAnimationChanged int  frameNumber  )  [virtual]
 

Updates the framebar when an external program has altered the disk files.

Parameters:
frameNumber the frame whose disk representation has been changed.

Implements Observer.

void FrameBar::updateClear  )  [virtual]
 

Function to receive notification when the model is erased.

Implements Observer.

void FrameBar::updateMove unsigned int  fromFrame,
unsigned int  toFrame,
unsigned int  movePosition
[virtual]
 

Function to recieve notification when one or more frames are moved.

Implements Observer.

void FrameBar::updateMoveScene int  sceneNumber,
int  movePosition
[virtual]
 

Function which recieves notification when a scene in the animation has been moved and moves the icons in the framebar accordingly.

Parameters:
sceneNumber the scene which have been moved.
movePosition the position the scene has been moved to.

Implements Observer.

void FrameBar::updateNewActiveFrame int  frameNumber  )  [virtual]
 

Function to recieve notification when a new frame is selected.

Implements Observer.

void FrameBar::updateNewActiveScene int  sceneNumber,
vector< char * >  framePaths,
Frontend frontend
[virtual]
 

Function which recieves notification when a scene is selected as the active scene in the animationmodel.

Parameters:
sceneNumber the new scene to be set as the active scene in the framebar.
framePaths paths to the pictures in the scene.
frontend the frontend for getting a progressbar when adding opening the new active scene.

Implements Observer.

void FrameBar::updateNewScene int  index  )  [virtual]
 

Function to recieve notification when a new scene is added to the model.

Parameters:
index the index of the new scene.

Implements Observer.

void FrameBar::updatePlayFrame int  frameNumber  )  [virtual]
 

Function to recieve notification when a frame is to be played.

Parameters:
frameNumber the frame to be played

Implements Observer.

void FrameBar::updateRemove unsigned int  fromFrame,
unsigned int  toFrame
[virtual]
 

Function to recieve notification when one or more frames are deleted.

Parameters:
fromFrame the first frame in the selection
toFrame the last frame in the selection

Implements Observer.

void FrameBar::updateRemoveScene int  sceneNumber  )  [virtual]
 

Function to recieve notification when a scene is removed from the model.

Parameters:
sceneNumber the scene which has been removed from the model.

Implements Observer.


The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2