Fix incorrectly renamed strings

pull/1/head
Slávek Banko 10 years ago
parent 6fb322cbb4
commit 9d34e5cf6d

@ -117,10 +117,10 @@ KviFrame::KviFrame()
m_pActiveContext = 0; m_pActiveContext = 0;
m_pDockExtension = 0; m_pDockExtension = 0;
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter"); m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
// m_pSplitter->setFrameShape(TQFrame::NoFrame); // m_pSplitter->setFrameShape(TQFrame::NoFrame);
setCentralWidget(m_pSplitter); setCentralWidget(m_pSplitter);
setUsesBigPixmaps(KVI_OPTION_BOOL(KviOption_boolUseBigIcons)); setUsesBigPixmaps(KVI_OPTION_BOOL(KviOption_boolUseBigIcons));
@ -215,7 +215,7 @@ KviFrame::~KviFrame()
while(m_pWinList->first()) while(m_pWinList->first())
closeWindow(m_pWinList->first()); closeWindow(m_pWinList->first());
delete m_pWinList; delete m_pWinList;
delete m_pAccel; delete m_pAccel;
g_pFrame = 0; g_pFrame = 0;
} }
@ -544,7 +544,7 @@ void KviFrame::saveWindowProperties(KviWindow * wnd,const char * szSection)
// KviWindow * top = g_pActiveWindow; // KviWindow * top = g_pActiveWindow;
// if(!top)top = wnd; // if(!top)top = wnd;
// g_pWinPropertiesConfig->writeEntry("IsMaximized",top->isMaximized()); // g_pWinPropertiesConfig->writeEntry("IsMaximized",top->isMaximized());
g_pWinPropertiesConfig->writeEntry("WinRect",wnd->externalGeometry()); g_pWinPropertiesConfig->writeEntry("WinRect",wnd->externalGeometry());
wnd->saveProperties(g_pWinPropertiesConfig); wnd->saveProperties(g_pWinPropertiesConfig);
@ -591,7 +591,7 @@ void KviFrame::closeWindow(KviWindow *wnd)
pCandidate = m_pWinList->first(); pCandidate = m_pWinList->first();
if(pCandidate == wnd)pCandidate = 0; if(pCandidate == wnd)pCandidate = 0;
} }
if(pCandidate) if(pCandidate)
childWindowActivated(pCandidate); childWindowActivated(pCandidate);
// else { m_pActiveWindow = 0; m_pActiveContext = 0; }; // else { m_pActiveWindow = 0; m_pActiveContext = 0; };
@ -637,19 +637,19 @@ void KviFrame::addWindow(KviWindow *wnd,bool bShow)
{ {
wnd->loadProperties(g_pWinPropertiesConfig); // load it anyway (will set defaults if windows don't remember properties) wnd->loadProperties(g_pWinPropertiesConfig); // load it anyway (will set defaults if windows don't remember properties)
if(KVI_OPTION_BOOL(KviOption_boolWindowsRememberProperties)) if(KVI_OPTION_BOOL(KviOption_boolWindowsRememberProperties))
{ {
bool bDocked = g_pWinPropertiesConfig->readBoolEntry("IsDocked",true); bool bDocked = g_pWinPropertiesConfig->readBoolEntry("IsDocked",true);
//bool bMaximized = g_pWinPropertiesConfig->readBoolEntry("IsMaximized",false); //bool bMaximized = g_pWinPropertiesConfig->readBoolEntry("IsMaximized",false);
bool bMaximized; bool bMaximized;
if(KVI_OPTION_BOOL(KviOption_boolMdiManagerInSdiMode)) if(KVI_OPTION_BOOL(KviOption_boolMdiManagerInSdiMode))
{ {
bMaximized = true; bMaximized = true;
//KVI_OPTION_BOOL(KviOption_boolMdiManagerInSdiMode) = false; //KVI_OPTION_BOOL(KviOption_boolMdiManagerInSdiMode) = false;
} else bMaximized = false; } else bMaximized = false;
TQRect rect = g_pWinPropertiesConfig->readRectEntry("WinRect",TQRect(10,10,500,380)); TQRect rect = g_pWinPropertiesConfig->readRectEntry("WinRect",TQRect(10,10,500,380));
if(bDocked) if(bDocked)
@ -687,7 +687,7 @@ void KviFrame::addWindow(KviWindow *wnd,bool bShow)
goto docking_done; goto docking_done;
} }
} }
default_docking: default_docking:
{ {
KviMdiChild * lpC = dockWindow(wnd,false); //cascade it KviMdiChild * lpC = dockWindow(wnd,false); //cascade it
@ -880,10 +880,10 @@ void KviFrame::childWindowActivated(KviWindow *wnd)
m_pTaskBar->setActiveItem(wnd->taskBarItem()); m_pTaskBar->setActiveItem(wnd->taskBarItem());
//wnd->gainedActiveWindowStatus(); // <-- atm unused //wnd->gainedActiveWindowStatus(); // <-- atm unused
if(g_pActiveWindow->view()) if(g_pActiveWindow->view())
g_pActiveWindow->view()->clearUnreaded(); g_pActiveWindow->view()->clearUnreaded();
emit activeWindowChanged(); emit activeWindowChanged();
if(bActiveContextChanged)emit activeContextChanged(); if(bActiveContextChanged)emit activeContextChanged();
@ -966,7 +966,7 @@ void KviFrame::closeEvent(TQCloseEvent *e)
if(KVI_OPTION_BOOL(KviOption_boolConfirmCloseWhenThereAreConnections)) if(KVI_OPTION_BOOL(KviOption_boolConfirmCloseWhenThereAreConnections))
{ {
// check for running connections // check for running connections
bool bGotRunningConnection = false; bool bGotRunningConnection = false;
for(KviWindow * w = m_pWinList->first();w;w = m_pWinList->next()) for(KviWindow * w = m_pWinList->first();w;w = m_pWinList->next())
{ {
@ -979,14 +979,14 @@ void KviFrame::closeEvent(TQCloseEvent *e)
} }
} }
} }
if(bGotRunningConnection) if(bGotRunningConnection)
{ {
TQString txt = "<p>"; TQString txt = "<p>";
txt += __tr2qs("There are active connections, are you sure you wish to "); txt += __tr2qs("There are active connections, are you sure you wish to ");
txt += __tr2qs("quit KVIrc?"); txt += __tr2qs("quit KVIrc?");
txt += "</p>"; txt += "</p>";
switch(TQMessageBox::warning(this,__tr2qs("Confirmation - KVIrc"),txt,__tr2qs("&Yes"),__tr2qs("&Always"),__tr2qs("&No"),2,2)) switch(TQMessageBox::warning(this,__tr2qs("Confirmation - KVIrc"),txt,__tr2qs("&Yes"),__tr2qs("&Always"),__tr2qs("&No"),2,2))
{ {
case 0: case 0:
@ -1045,7 +1045,7 @@ void KviFrame::applyOptions()
m_pMdi->update(); m_pMdi->update();
for(KviWindow * wnd = m_pWinList->first();wnd;wnd = m_pWinList->next())wnd->applyOptions(); for(KviWindow * wnd = m_pWinList->first();wnd;wnd = m_pWinList->next())wnd->applyOptions();
updateCaption(); updateCaption();
m_pTaskBar->applyOptions(); m_pTaskBar->applyOptions();
} }
@ -1144,7 +1144,7 @@ void KviFrame::toolbarsPopupSelected(int id)
if(!o->inherits("KviTalPopupMenu"))return; if(!o->inherits("KviTalPopupMenu"))return;
const KviTalPopupMenu * p = (const KviTalPopupMenu *)o; const KviTalPopupMenu * p = (const KviTalPopupMenu *)o;
int idext = p->itemParameter(id); int idext = p->itemParameter(id);
KviCustomToolBarDescriptor * dd = KviCustomToolBarManager::instance()->findDescriptorByInternalId(idext); KviCustomToolBarDescriptor * dd = KviCustomToolBarManager::instance()->findDescriptorByInternalId(idext);
if(dd) if(dd)
{ {
@ -1175,7 +1175,7 @@ bool KviFrame::focusNextPrevChild(bool next)
#endif #endif
//TQVariant v = w->property("KviProperty_FocusOwner"); //TQVariant v = w->property("KviProperty_FocusOwner");
//if(v.isValid())return false; // Do NOT change the focus widget! //if(v.isValid())return false; // Do NOT change the focus widget!
if(w->parent()) if(w->parent())
{ {
TQVariant v = w->parent()->property("KviProperty_ChildFocusOwner"); TQVariant v = w->parent()->property("KviProperty_ChildFocusOwner");
@ -1220,9 +1220,9 @@ void KviFrame::restoreToolBarPositions()
g_pApp->getLocalKvircDirectory(szTemp,KviApp::Config,KVI_CONFIGFILE_TOOLBARS); g_pApp->getLocalKvircDirectory(szTemp,KviApp::Config,KVI_CONFIGFILE_TOOLBARS);
TQFile f(szTemp); TQFile f(szTemp);
bool bNeedDefaults = false; bool bNeedDefaults = false;
if(f.open(IO_ReadOnly)) if(f.open(IO_ReadOnly))
{ {
#ifdef COMPILE_USE_QT4 #ifdef COMPILE_USE_QT4
@ -1250,11 +1250,11 @@ void KviFrame::restoreToolBarPositions()
{ {
// nope.... need to move it // nope.... need to move it
a->removeDockWindow(m_pTaskBar,true,false); a->removeDockWindow(m_pTaskBar,true,false);
//int iMaxWidth = m_pTaskBar->maximumWidth(); //int iMaxWidth = m_pTaskBar->maximumWidth();
leftDock()->moveDockWindow(m_pTaskBar); leftDock()->moveDockWindow(m_pTaskBar);
//m_pTaskBar->setMaximumWidth(iMaxWidth); //m_pTaskBar->setMaximumWidth(iMaxWidth);
//m_pTaskBar->setOrientationQt::Vertical); //m_pTaskBar->setOrientationVertical);
} }
// ensure that it is not too wide // ensure that it is not too wide
if(m_pTaskBar->width() > 600) if(m_pTaskBar->width() > 600)
@ -1336,7 +1336,7 @@ void KviFrame::recreateTaskBar()
// the class changed... // the class changed...
// make sure that the tree task bar is in the left or right dock // make sure that the tree task bar is in the left or right dock
// and the classic one is in the top or bottom on // and the classic one is in the top or bottom on
TQt::Dock dock; TQt::Dock dock;
int index; int index;
bool nl; bool nl;
@ -1399,14 +1399,14 @@ void KviFrame::hideEvent ( TQHideEvent * e)
{ {
if(e->spontaneous()) if(e->spontaneous())
{ {
if(!dockExtension()) if(!dockExtension())
{ {
executeInternalCommand(KVI_INTERNALCOMMAND_DOCKWIDGET_SHOW); executeInternalCommand(KVI_INTERNALCOMMAND_DOCKWIDGET_SHOW);
} }
TQTimer::singleShot( 0, this, TQT_SLOT(hide()) ); TQTimer::singleShot( 0, this, TQT_SLOT(hide()) );
} }
} }
} }

@ -99,7 +99,7 @@ KviMdiManager::KviMdiManager(TQWidget * parent,KviFrame * pFrm,const char * name
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQ_NoFocus);
viewport()->setFocusPolicy(TQ_NoFocus); viewport()->setFocusPolicy(TQ_NoFocus);
#endif #endif
connect(g_pApp,TQT_SIGNAL(reloadImages()),this,TQT_SLOT(reloadImages())); connect(g_pApp,TQT_SIGNAL(reloadImages()),this,TQT_SLOT(reloadImages()));
} }
@ -210,11 +210,11 @@ void KviMdiManager::setTopChild(KviMdiChild *lpC,bool bSetFocus)
pOldTop->captionLabel()->setActive(false); pOldTop->captionLabel()->setActive(false);
if(pOldTop->m_state != KviMdiChild::Maximized)pMaximizedChild=0; if(pOldTop->m_state != KviMdiChild::Maximized)pMaximizedChild=0;
} }
m_pZ->setAutoDelete(true); m_pZ->setAutoDelete(true);
m_pZ->append(lpC); m_pZ->append(lpC);
if(pMaximizedChild)lpC->maximize(); //do not animate the change if(pMaximizedChild)lpC->maximize(); //do not animate the change
lpC->raise(); lpC->raise();
if(pMaximizedChild)pMaximizedChild->restore(); if(pMaximizedChild)pMaximizedChild->restore();
} }
@ -227,7 +227,7 @@ void KviMdiManager::setTopChild(KviMdiChild *lpC,bool bSetFocus)
/* /*
if(topLevelWidget()->isActiveWindow()) if(topLevelWidget()->isActiveWindow())
{ {
} }
*/ */
} }
@ -337,7 +337,7 @@ void KviMdiManager::maximizeChild(KviMdiChild * lpC)
// make sure that the child is focused // make sure that the child is focused
lpC->setFocus(); lpC->setFocus();
} }
// fixme: we could hide all the other children now! // fixme: we could hide all the other children now!
} }
@ -554,9 +554,9 @@ void KviMdiManager::enterSDIMode(KviMdiChild *lpC)
if(!m_pSdiCloseButton) if(!m_pSdiCloseButton)
{ {
KviMenuBar * b = m_pFrm->mainMenuBar(); KviMenuBar * b = m_pFrm->mainMenuBar();
TQWidget * pButtonParent; TQWidget * pButtonParent;
#ifdef COMPILE_USE_QT4 #ifdef COMPILE_USE_QT4
m_pSdiControls = new KviTalHBox(b); m_pSdiControls = new KviTalHBox(b);
m_pSdiControls->setMargin(0); m_pSdiControls->setMargin(0);
@ -601,7 +601,7 @@ void KviMdiManager::enterSDIMode(KviMdiChild *lpC)
m_pSdiCloseButton->show(); m_pSdiCloseButton->show();
#endif #endif
emit enteredSdiMode(); emit enteredSdiMode();
setVScrollBarMode(KviTalScrollView::AlwaysOff); setVScrollBarMode(KviTalScrollView::AlwaysOff);
setHScrollBarMode(KviTalScrollView::AlwaysOff); setHScrollBarMode(KviTalScrollView::AlwaysOff);
} }
@ -707,17 +707,17 @@ void KviMdiManager::fillWindowPopup()
int ids[KVI_NUM_TILE_METHODS]; int ids[KVI_NUM_TILE_METHODS];
ids[KVI_TILE_METHOD_ANODINE] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Anodine's Full Grid"))); ids[KVI_TILE_METHOD_ANODINE] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Anodine's Full Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_ANODINE],KVI_TILE_METHOD_ANODINE); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_ANODINE],KVI_TILE_METHOD_ANODINE);
ids[KVI_TILE_METHOD_PRAGMA4HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Horizontal 4-Grid"))); ids[KVI_TILE_METHOD_PRAGMA4HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Horizontal 4-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA4HOR],KVI_TILE_METHOD_PRAGMA4HOR); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA4HOR],KVI_TILE_METHOD_PRAGMA4HOR);
ids[KVI_TILE_METHOD_PRAGMA4VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Vertical 4-Grid"))); ids[KVI_TILE_METHOD_PRAGMA4VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Vertical 4-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA4VER],KVI_TILE_METHOD_PRAGMA4VER); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA4VER],KVI_TILE_METHOD_PRAGMA4VER);
ids[KVI_TILE_METHOD_PRAGMA6HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Horizontal 6-Grid"))); ids[KVI_TILE_METHOD_PRAGMA6HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Horizontal 6-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA6HOR],KVI_TILE_METHOD_PRAGMA6HOR); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA6HOR],KVI_TILE_METHOD_PRAGMA6HOR);
ids[KVI_TILE_METHOD_PRAGMA6VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Vertical 6-Grid"))); ids[KVI_TILE_METHOD_PRAGMA6VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Vertical 6-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA6VER],KVI_TILE_METHOD_PRAGMA6VER); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA6VER],KVI_TILE_METHOD_PRAGMA6VER);
ids[KVI_TILE_METHOD_PRAGMA9HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Horizontal 9-Grid"))); ids[KVI_TILE_METHOD_PRAGMA9HOR] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Horizontal 9-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA9HOR],KVI_TILE_METHOD_PRAGMA9HOR); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA9HOR],KVI_TILE_METHOD_PRAGMA9HOR);
ids[KVI_TILE_METHOD_PRAGMA9VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma'sQt::Vertical 9-Grid"))); ids[KVI_TILE_METHOD_PRAGMA9VER] = m_pTileMethodPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_TILEWINDOWS)),(__tr2qs("Pragma's Vertical 9-Grid")));
m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA9VER],KVI_TILE_METHOD_PRAGMA9VER); m_pTileMethodPopup->setItemParameter(ids[KVI_TILE_METHOD_PRAGMA9VER],KVI_TILE_METHOD_PRAGMA9VER);
if(KVI_OPTION_UINT(KviOption_uintTileMethod) >= KVI_NUM_TILE_METHODS)KVI_OPTION_UINT(KviOption_uintTileMethod) = KVI_TILE_METHOD_PRAGMA9HOR; if(KVI_OPTION_UINT(KviOption_uintTileMethod) >= KVI_NUM_TILE_METHODS)KVI_OPTION_UINT(KviOption_uintTileMethod) = KVI_TILE_METHOD_PRAGMA9HOR;
@ -831,7 +831,7 @@ void KviMdiManager::cascadeMaximized()
updateScrollBars(); updateScrollBars();
g_pApp->sendPostedEvents(); g_pApp->sendPostedEvents();
if(g_pApp->closingDown())return; if(g_pApp->closingDown())return;
int idx=0; int idx=0;
KviPointerList<KviMdiChild> list(*m_pZ); KviPointerList<KviMdiChild> list(*m_pZ);
@ -863,7 +863,7 @@ void KviMdiManager::expandVertical()
updateScrollBars(); updateScrollBars();
g_pApp->sendPostedEvents(); g_pApp->sendPostedEvents();
if(g_pApp->closingDown())return; if(g_pApp->closingDown())return;
KviPointerList<KviMdiChild> list(*m_pZ); KviPointerList<KviMdiChild> list(*m_pZ);
list.setAutoDelete(false); list.setAutoDelete(false);
while(!list.isEmpty()) while(!list.isEmpty())
@ -889,7 +889,7 @@ void KviMdiManager::expandHorizontal()
updateScrollBars(); updateScrollBars();
g_pApp->sendPostedEvents(); g_pApp->sendPostedEvents();
if(g_pApp->closingDown())return; if(g_pApp->closingDown())return;
KviPointerList<KviMdiChild> list(*m_pZ); KviPointerList<KviMdiChild> list(*m_pZ);
list.setAutoDelete(false); list.setAutoDelete(false);
while(!list.isEmpty()) while(!list.isEmpty())

Loading…
Cancel
Save