3 #include <Q3GridLayout> 18 #ifndef GUI_PHOTODESCEDIT_H 19 #define GUI_PHOTODESCEDIT_H 35 #define DISAPPEARING 2 39 #include <qdatetime.h> 40 #include <q3textedit.h> 145 void keyPressEvent ( QKeyEvent* e );
146 void focusOutEvent ( QFocusEvent* );
147 Q3PopupMenu* createPopupMenu (
const QPoint& pos );
153 void contextMenuHiding();
159 #endif //GUI_PHOTODESCEDIT_H QPixmap * buffer
buffer we'll iteratively update and use for the label which shows the animation taking place ...
QWidget * staticFrame
frame which contains static widget
QImage * textRectangle
text area widget used to computing painting surface
int idealTextSize
ultimate text dimension
Q3GridLayout * staticGrid
Static Widgets
TextEdit * photoDesc
photo description
QImage * imageLarge
beginning and end pixmaps
int initDelay
Animation Stuff
void disappear()
this method is called by the acceptAndClose and rejectAndClose slots and actually initiates the closi...
QLabel * staticPhoto
photo being displayed
QLabel * animationLabel
Animating Widgets
int left
bounaries of entire animation
void animate()
this method is iteratively called and animates the opening/closing of the image
PhotoPreviewWidget * ppw
photo preview widget pointer
PhotoDescEdit(PhotoPreviewWidget *ppw, bool useAnimation, QWidget *parent=0, const char *name=0)
QPixmap * backgroundImage
this pixmap contains the screen contents for the entire region which we will be painting on top of ...
Q3PopupMenu * contextMenu
bool dropShadowsEnabled
are drop shadows enabled in windows (xp)?
bool useAnimation
actually animate the opening/closing process?