1 /***************************************************************************
2 Copyright 2006 David Nolden <david.nolden.kdevelop@art-master.de>
3 ***************************************************************************/
5 /***************************************************************************
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************/
14 #ifndef MESSAGESENDMANAGER_H
15 #define MESSAGESENDMANAGER_H
19 #include "ui_kdevteamwork_interface.h"
20 #include <ktexteditor/range.h>
26 namespace KTextEditor
{
31 /**This cares about the "send message"-tab in the kdevteamwork user-interface by updating it, according to the current selection in the current document.
33 class MessageSendManager
: public QObject
{
36 MessageSendManager( Ui::Teamwork
& widgets
);
39 void documentActivated( KDevelop::IDocument
* document
);
40 void documentClosed( KDevelop::IDocument
* document
);
41 void documentDestroyed( QObject
* obj
);
42 void selectionChanged( KTextEditor::View
* );
43 void viewCreated( KTextEditor::Document
* , KTextEditor::View
* );
45 void connectView( KTextEditor::View
* view
);
46 void connectDocument( KDevelop::IDocument
* );
47 void disconnectDocument();
48 Ui::Teamwork
& m_widgets
;
49 KDevelop::IDocument
* m_lastDocument
;
51 KTextEditor::View
* view();
53 KUrl m_currentFile
; ///Currently edited file
54 KTextEditor::Range m_currentSelection
; ///Current selection within that file
59 // kate: space-indent on; indent-width 2; tab-width 2; replace-tabs on