[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: [kate] kate/app: views are responsible for their buttons, wire viewChanged signal to snippetview
From:       Christoph Cullmann <cullmann () absint ! com>
Date:       2013-04-21 11:01:16
Message-ID: 1475420967.184962.1366542076865.JavaMail.root () absint ! com
[Download RAW message or body]

Hi,

I think that needs to go to kate.git addons/kate/snippets.
Else we now have the "Snippets" twice, we let the plugin still handle that to allow \
users to turn snippets off.

Greetings
Christoph

----- Ursprüngliche Mail -----
> Git commit fe48f6b95d069adcee45f708f4bbb83e7eb9a4aa by Joseph Wenninger.
> Committed on 12/11/2012 at 13:19.
> Pushed by jowenn into branch 'master'.
> 
> views are responsible for their buttons, wire viewChanged signal to
> snippetviews
> 
> M  +12   -0    kate/app/katemainwindow.cpp
> 
> http://commits.kde.org/kate/fe48f6b95d069adcee45f708f4bbb83e7eb9a4aa
> 
> diff --git a/kate/app/katemainwindow.cpp b/kate/app/katemainwindow.cpp
> index fda1e7e..ef874e2 100644
> --- a/kate/app/katemainwindow.cpp
> +++ b/kate/app/katemainwindow.cpp
> @@ -255,6 +255,18 @@ void KateMainWindow::setupMainWindow ()
> 
> m_bottomViewBarContainer=new QWidget(centralWidget());
> m_bottomContainerStack = new
> KateContainerStackedLayout(m_bottomViewBarContainer);
> +
> +  // use snippets widget provided by editor component, if any
> +  if (QWidget *snippets =
> KateDocManager::self()->editor()->property("snippetWidget").value<QWidget*>())
> {
> +    // Toolview for snippets
> +    QWidget *toolView = mainWindow()->createToolView
> (0,"kate_private_snippets", Kate::MainWindow::Right,
> SmallIcon("document-new"), i18n("Snippets"));
> +
> +
> +    connect(m_viewManager,SIGNAL(viewChanged(KTextEditor::View*)),snippets,
> SLOT(setCurrentEditorView(KTextEditor::View*)));
> +
> +    // add snippets widget
> +    snippets->setParent (toolView);
> +  }
> }
> 
> void KateMainWindow::setupActions()
> 
> 

-- 
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann@AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic