Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
0e88337f
Commit
0e88337f
authored
Jul 20, 2011
by
Dominik Haumann
Browse files
add activeDocumentUrl dbus call
BUG: 101628
parent
b9cad132
Changes
2
Hide whitespace changes
Inline
Side-by-side
kate/app/katemainwindowadaptor.cpp
View file @
0e88337f
/* This file is part of the KDE project
Copyright (C) 20
03 Ian Reinhart Geiser <geiseri@
kde
.
org>
Copyright (C) 20
11 Dominik Haumann <dhaumann
kde
org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
...
...
@@ -25,5 +25,15 @@ KateMainWindowAdaptor::KateMainWindowAdaptor (KateMainWindow *w)
//((QString("KateMainWindow#%1").arg(w->mainWindowNumber())).toLatin1()), m_w (w)
{
}
// kate: space-indent on; indent-width 2; replace-tabs on;
QString
KateMainWindowAdaptor
::
activeDocumentUrl
()
const
{
return
m_w
->
activeDocumentUrl
().
url
();
}
uint
KateMainWindowAdaptor
::
mainWindowNumber
()
const
{
return
m_w
->
mainWindowNumber
();
}
// kate: space-indent on; indent-width 2; replace-tabs on;
kate/app/katemainwindowadaptor.h
View file @
0e88337f
/* This file is part of the KDE project
Copyright (C) 20
03 Ian Reinhart Geiser <geiseri@
kde
.
org>
Copyright (C) 20
11 Dominik Haumann <dhaumann
kde
org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
...
...
@@ -18,6 +18,7 @@
#ifndef _katemainwindow_adaptor_h_
#define _katemainwindow_adaptor_h_
#include <QtDBus/QtDBus>
class
KateMainWindow
;
...
...
@@ -30,6 +31,10 @@ class KateMainWindowAdaptor : public QDBusAbstractAdaptor
public:
KateMainWindowAdaptor
(
KateMainWindow
*
w
);
public
Q_SLOTS
:
QString
activeDocumentUrl
()
const
;
uint
mainWindowNumber
()
const
;
private:
KateMainWindow
*
m_w
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment