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