MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ViewPartTitleBar Class Reference

#include <rcp/ViewPartTitleBar.h>

Inheritance diagram for ViewPartTitleBar:
Inheritance graph
[legend]

Public Slots

void onFloating ()
 

Public Member Functions

 ViewPartTitleBar (QWidget *parent=0)
 
void setHighlight (bool on)
 enables/disables highlighted title bar More...
 
void update ()
 updates the TitleBar (e.g. necessary after the title was changed) More...
 
QWidget * takeRightButtons ()
 Returns a widget containing all buttons of the title bars right side. More...
 
void putBackRightButtons ()
 Puts back the right buttons, that were taken using the above method. More...
 
QWidget * takeLeftButtons ()
 Returns a widget containing all buttons of the title bars left side. More...
 
void putBackLeftButtons ()
 Puts back the left buttons, that were taken using the above method. More...
 
void insertRightButton (QToolButton *button, int index=0)
 Inserts the specified button within the right button group at the given index. More...
 
void insertLeftButton (QToolButton *button, int index=-1)
 Inserts the specified button within the left button group at the given index. More...
 
QMenu * getMenu ()
 Returns the menu of the menu button in order to add new items to the menu. More...
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 
void paintEvent (QPaintEvent *)
 
void resizeEvent (QResizeEvent *)
 
void updateBackground ()
 

Protected Attributes

QDockWidget * mParent
 
QHBoxLayout * mLayout
 
QHBoxLayout * mLeftLayout
 
QHBoxLayout * mRightLayout
 
QToolButton * mMenuBtn
 
QToolButton * mClose
 
QToolButton * mDock
 
QToolButton * mUndock
 
QToolButton * mMaximize
 
QToolButton * mMinimize
 
QToolButton * mRestore
 
QWidget * mLeftButtons
 
QWidget * mRightButtons
 
QMenu * mMenu
 
QPixmap * mBackground
 
bool mIsHighlighted
 

Friends

class ViewPart
 

Constructor & Destructor Documentation

ViewPartTitleBar ( QWidget *  parent = 0)

Member Function Documentation

void onFloating ( )
slot
void setHighlight ( bool  on)
inherited

enables/disables highlighted title bar

void update ( )
inherited

updates the TitleBar (e.g. necessary after the title was changed)

QWidget* takeRightButtons ( )
inherited

Returns a widget containing all buttons of the title bars right side.

The widget can be placed somewhere else and later put back using putBackRightButtons(). This is useful, when the icons should be placed into a different widget than this title bar, e.g. when the window is maximized and the title bar is hidden.

void putBackRightButtons ( )
inherited

Puts back the right buttons, that were taken using the above method.

QWidget* takeLeftButtons ( )
inherited

Returns a widget containing all buttons of the title bars left side.

The widget can be placed somewhere else and late put back using putBackLeftButtons(). This is useful, when the icons should be placed into a different widget than this title bar, e.g. when the window is maximized and the title bar is hidden.

void putBackLeftButtons ( )
inherited

Puts back the left buttons, that were taken using the above method.

void insertRightButton ( QToolButton *  button,
int  index = 0 
)
inherited

Inserts the specified button within the right button group at the given index.

The default index is 0 which will add the button on the left side. Note that the parent of the button will be changed to the right button group widget.

void insertLeftButton ( QToolButton *  button,
int  index = -1 
)
inherited

Inserts the specified button within the left button group at the given index.

The default index is -1 which will add the button on the right side. Note that the parent of the button will be changed to the left button group widget.

QMenu* getMenu ( )
inherited

Returns the menu of the menu button in order to add new items to the menu.

Calling this method also makes the menu button visible.

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedinherited
void paintEvent ( QPaintEvent *  )
protectedinherited
void resizeEvent ( QResizeEvent *  )
protectedinherited
void updateBackground ( )
protectedinherited

Friends And Related Function Documentation

friend class ViewPart
friend

Member Data Documentation

QDockWidget* mParent
protected
QHBoxLayout* mLayout
protectedinherited
QHBoxLayout* mLeftLayout
protectedinherited
QHBoxLayout* mRightLayout
protectedinherited
QToolButton* mMenuBtn
protectedinherited
QToolButton* mClose
protectedinherited
QToolButton* mDock
protectedinherited
QToolButton* mUndock
protectedinherited
QToolButton* mMaximize
protectedinherited
QToolButton* mMinimize
protectedinherited
QToolButton* mRestore
protectedinherited
QWidget* mLeftButtons
protectedinherited
QWidget* mRightButtons
protectedinherited
QMenu* mMenu
protectedinherited
QPixmap* mBackground
protectedinherited
bool mIsHighlighted
protectedinherited

The documentation for this class was generated from the following file: