~ubuntu-branches/ubuntu/quantal/kdevplatform/quantal-proposed

« back to all changes in this revision

Viewing changes to plugins/contextbrowser/contextbrowser.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-24 00:06:18 UTC
  • mfrom: (0.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101024000618-7otebin77mfcmt3b
Tags: 1.1.0-0ubuntu1
* New upstream release
  - Bump build-dependencies
  - Build against libboost-serialization1.42-dev
  - Update kdevplatform1-libs.install
  - Update kdevplatform-dev.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
  core()->uiController()->addToolView(i18n("Code Browser"), m_viewFactory);
176
176
 
177
177
  connect( core()->documentController(), SIGNAL( textDocumentCreated( KDevelop::IDocument* ) ), this, SLOT( textDocumentCreated( KDevelop::IDocument* ) ) );
178
 
  connect( core()->documentController(), SIGNAL( documentClosed( KDevelop::IDocument* ) ), this, SLOT( documentClosed( KDevelop::IDocument* ) ) );
179
 
  connect( core()->documentController(), SIGNAL( documentActivated( KDevelop::IDocument* ) ), this, SLOT( documentActivated( KDevelop::IDocument* ) ) );
180
178
  connect( core()->languageController()->backgroundParser(), SIGNAL(parseJobFinished(KDevelop::ParseJob*)), this, SLOT(parseJobFinished(KDevelop::ParseJob*)));
181
179
 
182
180
  connect( DUChain::self(), SIGNAL( declarationSelected(DeclarationPointer) ), this, SLOT( declarationSelectedInUI(DeclarationPointer) ) );
813
811
{
814
812
  Q_ASSERT(document->textDocument());
815
813
 
816
 
  connect( document->textDocument(), SIGNAL(destroyed( QObject* )), this, SLOT( documentDestroyed( QObject* ) ) );
817
814
  connect( document->textDocument(), SIGNAL( viewCreated( KTextEditor::Document* , KTextEditor::View* ) ), this, SLOT( viewCreated( KTextEditor::Document*, KTextEditor::View* ) ) );
818
815
 
819
816
  foreach( View* view, document->textDocument()->views() )
826
823
    registerAsRangeWatcher( chain );
827
824
}
828
825
 
829
 
void ContextBrowserPlugin::documentClosed( KDevelop::IDocument* /*document*/ )
830
 
{
831
 
}
832
 
 
833
826
void ContextBrowserPlugin::documentActivated( IDocument* doc )
834
827
{
835
828
  if (doc->textDocument() && doc->textDocument()->activeView())
838
831
  }
839
832
}
840
833
 
841
 
void ContextBrowserPlugin::documentDestroyed( QObject* /*obj*/ )
842
 
{
843
 
}
844
 
 
845
834
void ContextBrowserPlugin::viewDestroyed( QObject* obj )
846
835
{
847
836
  m_highlightedDeclarations.remove(static_cast<KTextEditor::View*>(obj));