[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/classview
From: Alexander Dymo <cloudtemple () mksat ! net>
Date: 2003-08-06 20:31:51
[Download RAW message or body]
CVS commit by dymo:
namespace/class/function combos polishing
M +5 -2 classviewpart.cpp 1.34
--- kdevelop/parts/classview/classviewpart.cpp #1.33:1.34
@@ -134,5 +134,4 @@ ClassViewPart::~ClassViewPart()
void ClassViewPart::slotProjectOpened( )
{
- refresh();
connect( languageSupport(), SIGNAL(updatedSourceInfo()), this, SLOT(refresh()) \
); }
@@ -171,4 +170,5 @@ void ClassViewPart::setupActions( )
actionCollection(), "view_popup");
m_popupAction->setToolTip(i18n("Class Browser Actions"));
+ m_popupAction->setDelayed(false);
KPopupMenu *popup = m_popupAction->popupMenu();
//TODO: check if language support has namespaces, classes, etc.
@@ -180,5 +180,6 @@ void ClassViewPart::setupActions( )
//TODO: not applicable to c++ but can be useful for ada and pascal where \
namespace is contained //in a single compilation unit
- popup->insertItem(i18n("Go to Namespace Declaration"), this, \
SLOT(goToNamespaceDeclaration())); + //FIXME: commented out till the time when it \
be needed +// popup->insertItem(i18n("Go to Namespace Declaration"), this, \
SLOT(goToNamespaceDeclaration()));
bool hasAddMethod = langHasFeature(KDevLanguageSupport::AddMethod);
@@ -205,4 +206,5 @@ void ClassViewPart::refreshNamespaces( )
NamespaceItem *global_item = new NamespaceItem( this, \
m_namespaces->view()->listView(), i18n("(Global Namespace)"), \
codeModel()->globalNamespace() ); + global_item->setPixmap( 0, \
UserIcon("CVnamespace", KIcon::DefaultState, instance()) );
NamespaceList namespaces = codeModel()->globalNamespace()->namespaceList();
for (NamespaceList::const_iterator it = namespaces.begin(); it != \
namespaces.end(); ++it) @@ -212,4 +214,5 @@ void ClassViewPart::refreshNamespaces( )
processNamespace(item);
}
+ qWarning("ClassViewPart: setCurrentActiveItem(global_item)");
m_namespaces->view()->setCurrentActiveItem(global_item);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic