tdemditaskbar.cpp
54 The button text becomes red when new output is shown in the window and it is not the active one.<br>
179 TQObject::connect( b, TQT_SIGNAL( clicked( KMdiChildView* ) ), this, TQT_SLOT( setActiveButton( KMdiChildView* ) ) );
180 TQObject::connect( b, TQT_SIGNAL( leftMouseButtonClicked( KMdiChildView* ) ), m_pFrm, TQT_SLOT( activateView( KMdiChildView* ) ) );
181 TQObject::connect( b, TQT_SIGNAL( rightMouseButtonClicked( KMdiChildView* ) ), m_pFrm, TQT_SLOT( taskbarButtonRightClicked( KMdiChildView* ) ) );
182 TQObject::connect( b, TQT_SIGNAL( buttonTextChanged( int ) ), this, TQT_SLOT( layoutTaskBar( int ) ) );
345 int buttonAreaWidth = taskBarWidth - tbHandlePixel - style().pixelMetric( TQStyle::PM_DefaultFrameWidth, this ) - 5;
void fitText(const TQString &, int newWidth)
Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new b...
Definition: tdemditaskbar.cpp:105
KMdiTaskBarButton * getNextWindowButton(bool bRight, KMdiChildView *win_ptr)
Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight s...
Definition: tdemditaskbar.cpp:252
void resizeEvent(TQResizeEvent *)
Reimplemented from its base class to call layoutTaskBar, additionally.
Definition: tdemditaskbar.cpp:382
KMdiTaskBarButton * getButton(KMdiChildView *win_ptr)
Get the button belonging to the MDI view given as parameter.
Definition: tdemditaskbar.cpp:242
void buttonTextChanged(int)
Emitted when the button text has changed.
TQString actualText() const
text() returns the possibly abbreviated text including the dots in it.
Definition: tdemditaskbar.cpp:136
const TQString & tabCaption() const
Returns the caption of the button on the taskbar.
Definition: tdemdichildview.h:237
void setText(const TQString &)
Sets the text and avoids any abbreviation.
Definition: tdemditaskbar.cpp:99
void leftMouseButtonClicked(KMdiChildView *)
Internally connected with KMdiMainFrm::activateView.
TQLabel * m_pStretchSpace
A stretchable widget used as 'space' at the end of a half filled taskbar.
Definition: tdemditaskbar.h:209
void removeWinButton(KMdiChildView *win_ptr, bool haveToLayoutTaskBar=true)
Removes a KMdiTaskBarButton and deletes it.
Definition: tdemditaskbar.cpp:202
KMdiTaskBar(KMdiMainFrm *parent, TQMainWindow::ToolBarDock dock)
Constructor (NoFocus, minimum width = 1, an internal TQPtrList of taskbar buttons (autodelete)) ...
Definition: tdemditaskbar.cpp:147
void setActiveButton(KMdiChildView *win_ptr)
Pushes the desired taskbar button down (switch on), the old one is released (switched off)...
Definition: tdemditaskbar.cpp:289
KMdiTaskBarButton * addWinButton(KMdiChildView *win_ptr)
Add a new KMdiTaskBarButton .
Definition: tdemditaskbar.cpp:168
void mousePressEvent(TQMouseEvent *)
Reimplemented from its base class to catch right and left mouse button clicks.
Definition: tdemditaskbar.cpp:76
void layoutTaskBar(int taskBarWidth=0)
Checks if all buttons fits into this.
Definition: tdemditaskbar.cpp:310
KMdiMainFrm * m_pFrm
The belonging MDI mainframe (parent widget of this)
Definition: tdemditaskbar.h:201
void rightMouseButtonClicked(KMdiChildView *)
Internally connected with KMdiMainFrm::taskbarButtonRightClicked.
KMdiTaskBarButton(KMdiTaskBar *pTaskBar, KMdiChildView *win_ptr)
Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus. ...
Definition: tdemditaskbar.cpp:62
TQPtrList< KMdiTaskBarButton > * m_pButtonList
A list of taskbar buttons.
Definition: tdemditaskbar.h:197
const TQString & caption() const
Returns the caption of the child window (different from the caption on the button in the taskbar) ...
Definition: tdemdichildview.h:232
KMdiChildView * m_pCurrentFocusedWindow
The MDI view belonging to the currently pressed taskbar button.
Definition: tdemditaskbar.h:205
TQString m_actualText
Internally we must remember the real text because the button text can be abbreviated.
Definition: tdemditaskbar.h:114