MIRA
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()

ViewPartTitleBar ( QWidget *  parent = 0)

Member Function Documentation

◆ onFloating

void onFloating ( )
slot

◆ setHighlight()

void setHighlight ( bool  on)
inherited

enables/disables highlighted title bar

◆ update()

void update ( )
inherited

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

◆ takeRightButtons()

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.

◆ putBackRightButtons()

void putBackRightButtons ( )
inherited

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

◆ takeLeftButtons()

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.

◆ putBackLeftButtons()

void putBackLeftButtons ( )
inherited

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

◆ insertRightButton()

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.

◆ insertLeftButton()

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.

◆ getMenu()

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.

◆ eventFilter()

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedinherited

◆ paintEvent()

void paintEvent ( QPaintEvent *  )
protectedinherited

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  )
protectedinherited

◆ updateBackground()

void updateBackground ( )
protectedinherited

Friends And Related Function Documentation

◆ ViewPart

friend class ViewPart
friend

Member Data Documentation

◆ mParent

QDockWidget* mParent
protected

◆ mLayout

QHBoxLayout* mLayout
protectedinherited

◆ mLeftLayout

QHBoxLayout* mLeftLayout
protectedinherited

◆ mRightLayout

QHBoxLayout* mRightLayout
protectedinherited

◆ mMenuBtn

QToolButton* mMenuBtn
protectedinherited

◆ mClose

QToolButton* mClose
protectedinherited

◆ mDock

QToolButton* mDock
protectedinherited

◆ mUndock

QToolButton* mUndock
protectedinherited

◆ mMaximize

QToolButton* mMaximize
protectedinherited

◆ mMinimize

QToolButton* mMinimize
protectedinherited

◆ mRestore

QToolButton* mRestore
protectedinherited

◆ mLeftButtons

QWidget* mLeftButtons
protectedinherited

◆ mRightButtons

QWidget* mRightButtons
protectedinherited

◆ mMenu

QMenu* mMenu
protectedinherited

◆ mBackground

QPixmap* mBackground
protectedinherited

◆ mIsHighlighted

bool mIsHighlighted
protectedinherited

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