summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_mdimanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_mdimanager.cpp')
-rw-r--r--src/kvirc/ui/kvi_mdimanager.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kvirc/ui/kvi_mdimanager.cpp b/src/kvirc/ui/kvi_mdimanager.cpp
index 9163595..9d6fa18 100644
--- a/src/kvirc/ui/kvi_mdimanager.cpp
+++ b/src/kvirc/ui/kvi_mdimanager.cpp
@@ -38,7 +38,7 @@
#include "kvi_tal_popupmenu.h"
#include <tqmenubar.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
#include <math.h>
#include <tqcursor.h>
@@ -199,7 +199,7 @@ void KviMdiManager::setTopChild(KviMdiChild *lpC,bool bSetFocus)
return; // no such child ?
}
- // disable the labels of all the other tqchildren
+ // disable the labels of all the other children
//for(KviMdiChild *pC=m_pZ->first();pC;pC=m_pZ->next())
//{
// pC->captionLabel()->setActive(false);
@@ -225,7 +225,7 @@ void KviMdiManager::setTopChild(KviMdiChild *lpC,bool bSetFocus)
{
lpC->setFocus();
/*
- if(tqtopLevelWidget()->isActiveWindow())
+ if(topLevelWidget()->isActiveWindow())
{
}
@@ -284,8 +284,8 @@ TQPoint KviMdiManager::getCascadePoint(int indexOfWindow)
if(indexOfWindow==0)return pnt;
KviMdiChild *lpC=m_pZ->first();
int step=(lpC ? (lpC->captionLabel()->heightHint()+KVI_MDICHILD_BORDER) : 20);
- int availableHeight=viewport()->height()-(lpC ? lpC->tqminimumSize().height() : KVI_MDICHILD_MIN_HEIGHT);
- int availableWidth=viewport()->width()-(lpC ? lpC->tqminimumSize().width() : KVI_MDICHILD_MIN_WIDTH);
+ int availableHeight=viewport()->height()-(lpC ? lpC->minimumSize().height() : KVI_MDICHILD_MIN_HEIGHT);
+ int availableWidth=viewport()->width()-(lpC ? lpC->minimumSize().width() : KVI_MDICHILD_MIN_WIDTH);
int ax=0;
int ay=0;
for(int i=0;i<indexOfWindow;i++)
@@ -313,7 +313,7 @@ void KviMdiManager::childMoved(KviMdiChild *)
void KviMdiManager::maximizeChild(KviMdiChild * lpC)
{
- // the tqchildren must be moved once by the means of TQScrollView::moveChild()
+ // the children must be moved once by the means of TQScrollView::moveChild()
// so the TQScrollView internal structures get updated with the negative
// position of the widget, otherwise, when restoring with moveChild()
// it will refuse to move it back to the original position
@@ -338,14 +338,14 @@ void KviMdiManager::maximizeChild(KviMdiChild * lpC)
lpC->setFocus();
}
- // fixme: we could hide all the other tqchildren now!
+ // fixme: we could hide all the other children now!
}
void KviMdiManager::resizeEvent(TQResizeEvent *e)
{
- //If we have a maximized tqchildren at the top , adjust its size
+ //If we have a maximized children at the top , adjust its size
KviTalScrollView::resizeEvent(e);
KviMdiChild *lpC=m_pZ->last();
if(lpC)
@@ -431,7 +431,7 @@ void KviMdiManager::focusTopChild()
if(!lpC->isVisible())return;
// if(lpC->state()==KviMdiChild::Minimized)return;
// debug("Focusing top child %s",lpC->name());
- //disable the labels of all the other tqchildren
+ //disable the labels of all the other children
for(KviMdiChild *pC=m_pZ->first();pC;pC=m_pZ->next())
{
if(pC != lpC)
@@ -591,7 +591,7 @@ void KviMdiManager::enterSDIMode(KviMdiChild *lpC)
// This is an obscure, undocumented and internal function in QT4 TQMenuBar
// I won't be surprised if this disappears....
b->setCornerWidget(m_pSdiControls,TQt::TopRightCorner);
- // The show below SHOULD force a re-tqlayout of the menubar..
+ // The show below SHOULD force a re-layout of the menubar..
// but it doesn't work when the KviFrame is still hidden (at startup)
// We handle this BUG in showEvent()
m_pSdiControls->show();
@@ -611,7 +611,7 @@ void KviMdiManager::enterSDIMode(KviMdiChild *lpC)
void KviMdiManager::relayoutMenuButtons()
{
#ifdef COMPILE_USE_QT4
- // force a re-tqlayout of the menubar in TQt4 (see the note in enterSDIMode())
+ // force a re-layout of the menubar in TQt4 (see the note in enterSDIMode())
// by resetting the corner widget
if(m_pSdiControls)
{
@@ -662,7 +662,7 @@ void KviMdiManager::leaveSDIMode()
}
if(m_pSdiIconButton)
{
- m_pSdiIconButton->hide(); // this will force a TQMenuBar retqlayout
+ m_pSdiIconButton->hide(); // this will force a TQMenuBar relayout
delete m_pSdiIconButton;
m_pSdiIconButton = 0;
}
@@ -814,7 +814,7 @@ void KviMdiManager::cascadeWindows()
{
TQPoint p = getCascadePoint(idx);
moveChild(lpC,p.x(),p.y());
- lpC->resize(lpC->tqsizeHint());
+ lpC->resize(lpC->sizeHint());
idx++;
}
list.removeFirst();
@@ -844,8 +844,8 @@ void KviMdiManager::cascadeMaximized()
TQPoint pnt(getCascadePoint(idx));
moveChild(lpC,pnt.x(),pnt.y());
TQSize curSize(viewport()->width() - pnt.x(),viewport()->height() - pnt.y());
- if((lpC->tqminimumSize().width() > curSize.width()) ||
- (lpC->tqminimumSize().height() > curSize.height()))lpC->resize(lpC->tqminimumSize());
+ if((lpC->minimumSize().width() > curSize.width()) ||
+ (lpC->minimumSize().height() > curSize.height()))lpC->resize(lpC->minimumSize());
else lpC->resize(curSize);
idx++;
}
@@ -1007,13 +1007,13 @@ void KviMdiManager::tileAllInternal(int maxWnds,bool bHorizontal)
int numToHandle=((numVisible > maxWnds) ? maxWnds : numVisible);
int xQuantum=viewport()->width()/pColstable[numToHandle-1];
- if(xQuantum < ((lpTop->tqminimumSize().width() > KVI_MDICHILD_MIN_WIDTH) ? lpTop->tqminimumSize().width() : KVI_MDICHILD_MIN_WIDTH)){
+ if(xQuantum < ((lpTop->minimumSize().width() > KVI_MDICHILD_MIN_WIDTH) ? lpTop->minimumSize().width() : KVI_MDICHILD_MIN_WIDTH)){
if(pColrecall[numToHandle-1]==0)debug("Tile : Not enouh space");
else tileAllInternal(pColrecall[numToHandle-1],bHorizontal);
return;
}
int yQuantum=viewport()->height()/pRowstable[numToHandle-1];
- if(yQuantum < ((lpTop->tqminimumSize().height() > KVI_MDICHILD_MIN_HEIGHT) ? lpTop->tqminimumSize().height() : KVI_MDICHILD_MIN_HEIGHT)){
+ if(yQuantum < ((lpTop->minimumSize().height() > KVI_MDICHILD_MIN_HEIGHT) ? lpTop->minimumSize().height() : KVI_MDICHILD_MIN_HEIGHT)){
if(pRowrecall[numToHandle-1]==0)debug("Tile : Not enough space");
else tileAllInternal(pRowrecall[numToHandle-1],bHorizontal);
return;
@@ -1073,7 +1073,7 @@ void KviMdiManager::tileAnodine()
int numVisible=getVisibleChildCount(); // count visible windows
if(numVisible<1)return;
int numCols=int(sqrt((double)numVisible)); // set columns to square root of visible count
- // create an array to form grid tqlayout
+ // create an array to form grid layout
int *numRows=new int[numCols];
int numCurCol=0;
while(numCurCol<numCols)