|
|
@ -158,12 +158,12 @@ void KTechlab::setupToolDocks()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
TQPixmap pm;
|
|
|
|
TQPixmap pm;
|
|
|
|
KIconLoader * loader = TDEGlobal::iconLoader();
|
|
|
|
TDEIconLoader * loader = TDEGlobal::iconLoader();
|
|
|
|
KateMDI::ToolView * tv = 0l;
|
|
|
|
KateMDI::ToolView * tv = 0l;
|
|
|
|
|
|
|
|
|
|
|
|
tv = createToolView( ProjectManager::toolViewIdentifier(),
|
|
|
|
tv = createToolView( ProjectManager::toolViewIdentifier(),
|
|
|
|
KMultiTabBar::Left,
|
|
|
|
KMultiTabBar::Left,
|
|
|
|
loader->loadIcon( "attach", KIcon::Small ),
|
|
|
|
loader->loadIcon( "attach", TDEIcon::Small ),
|
|
|
|
i18n("Project") );
|
|
|
|
i18n("Project") );
|
|
|
|
ProjectManager::self( this, tv );
|
|
|
|
ProjectManager::self( this, tv );
|
|
|
|
|
|
|
|
|
|
|
@ -203,20 +203,20 @@ void KTechlab::setupToolDocks()
|
|
|
|
|
|
|
|
|
|
|
|
tv = createToolView( ContextHelp::toolViewIdentifier(),
|
|
|
|
tv = createToolView( ContextHelp::toolViewIdentifier(),
|
|
|
|
KMultiTabBar::Right,
|
|
|
|
KMultiTabBar::Right,
|
|
|
|
loader->loadIcon( "contents", KIcon::Small ),
|
|
|
|
loader->loadIcon( "contents", TDEIcon::Small ),
|
|
|
|
i18n("Context Help") );
|
|
|
|
i18n("Context Help") );
|
|
|
|
ContextHelp::self(tv);
|
|
|
|
ContextHelp::self(tv);
|
|
|
|
|
|
|
|
|
|
|
|
tv = createToolView( LanguageManager::toolViewIdentifier(),
|
|
|
|
tv = createToolView( LanguageManager::toolViewIdentifier(),
|
|
|
|
KMultiTabBar::Bottom,
|
|
|
|
KMultiTabBar::Bottom,
|
|
|
|
loader->loadIcon( "log", KIcon::Small ),
|
|
|
|
loader->loadIcon( "log", TDEIcon::Small ),
|
|
|
|
i18n("Messages") );
|
|
|
|
i18n("Messages") );
|
|
|
|
LanguageManager::self( tv, this );
|
|
|
|
LanguageManager::self( tv, this );
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NO_GPSIM
|
|
|
|
#ifndef NO_GPSIM
|
|
|
|
tv = createToolView( SymbolViewer::toolViewIdentifier(),
|
|
|
|
tv = createToolView( SymbolViewer::toolViewIdentifier(),
|
|
|
|
KMultiTabBar::Right,
|
|
|
|
KMultiTabBar::Right,
|
|
|
|
loader->loadIcon( "blockdevice", KIcon::Small ),
|
|
|
|
loader->loadIcon( "blockdevice", TDEIcon::Small ),
|
|
|
|
i18n("Symbol Viewer") );
|
|
|
|
i18n("Symbol Viewer") );
|
|
|
|
SymbolViewer::self(tv);
|
|
|
|
SymbolViewer::self(tv);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -555,10 +555,10 @@ void KTechlab::slotTabReceivedDropEvent( TQWidget *widget, TQDropEvent *e )
|
|
|
|
e->accept(true);
|
|
|
|
e->accept(true);
|
|
|
|
|
|
|
|
|
|
|
|
TDEPopupMenu dropMenu;
|
|
|
|
TDEPopupMenu dropMenu;
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "goto", KIcon::Small ), i18n("&Insert Into"), 0 );
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "goto", TDEIcon::Small ), i18n("&Insert Into"), 0 );
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "editcopy", KIcon::Small ), i18n("&Copy Into"), 1 );
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "editcopy", TDEIcon::Small ), i18n("&Copy Into"), 1 );
|
|
|
|
dropMenu.insertSeparator();
|
|
|
|
dropMenu.insertSeparator();
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "stop", KIcon::Small ), i18n("C&ancel"), 2 );
|
|
|
|
dropMenu.insertItem( TDEGlobal::iconLoader()->loadIcon( "stop", TDEIcon::Small ), i18n("C&ancel"), 2 );
|
|
|
|
|
|
|
|
|
|
|
|
connect( &dropMenu, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(slotDragContextActivated(int)) );
|
|
|
|
connect( &dropMenu, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(slotDragContextActivated(int)) );
|
|
|
|
// dropMenu.exec(e->pos() + widget->pos() );
|
|
|
|
// dropMenu.exec(e->pos() + widget->pos() );
|
|
|
@ -1007,7 +1007,7 @@ KURL::List KTechlab::getFileURLs()
|
|
|
|
void KTechlab::slotDocModifiedChanged()
|
|
|
|
void KTechlab::slotDocModifiedChanged()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//BEGIN Set tab icons
|
|
|
|
//BEGIN Set tab icons
|
|
|
|
KIconLoader *loader = TDEGlobal::iconLoader();
|
|
|
|
TDEIconLoader *loader = TDEGlobal::iconLoader();
|
|
|
|
const ViewContainerList::iterator vcEnd = m_viewContainerList.end();
|
|
|
|
const ViewContainerList::iterator vcEnd = m_viewContainerList.end();
|
|
|
|
for ( ViewContainerList::iterator it = m_viewContainerList.begin(); it != vcEnd; ++it )
|
|
|
|
for ( ViewContainerList::iterator it = m_viewContainerList.begin(); it != vcEnd; ++it )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1046,7 +1046,7 @@ void KTechlab::slotDocModifiedChanged()
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tabWidget()->setTabIconSet( vc, loader->loadIcon( iconName, KIcon::Small ) );
|
|
|
|
tabWidget()->setTabIconSet( vc, loader->loadIcon( iconName, TDEIcon::Small ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//END Set tab icons
|
|
|
|
//END Set tab icons
|
|
|
|
}
|
|
|
|
}
|
|
|
|