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
Marco Bubke
flatpak-qt-creator
Commits
2adb5d55
Commit
2adb5d55
authored
Oct 15, 2009
by
con
Browse files
QuickOpenManager --> LocatorManager
parent
a42c3c49
Changes
5
Show whitespace changes
Inline
Side-by-side
src/plugins/quickopen/
quickopen
manager.cpp
→
src/plugins/quickopen/
locator
manager.cpp
View file @
2adb5d55
...
...
@@ -27,7 +27,7 @@
**
**************************************************************************/
#include "
quickopen
manager.h"
#include "
locator
manager.h"
#include "locatorwidget.h"
#include <extensionsystem/pluginmanager.h>
...
...
@@ -36,22 +36,22 @@
using
namespace
QuickOpen
;
using
namespace
QuickOpen
::
Internal
;
QuickOpenManager
*
QuickOpen
Manager
::
m_instance
=
0
;
LocatorManager
*
Locator
Manager
::
m_instance
=
0
;
QuickOpenManager
::
QuickOpen
Manager
(
LocatorWidget
*
locatorWidget
)
LocatorManager
::
Locator
Manager
(
LocatorWidget
*
locatorWidget
)
:
QObject
(
locatorWidget
),
m_locatorWidget
(
locatorWidget
)
{
m_instance
=
this
;
}
QuickOpen
Manager
::~
QuickOpen
Manager
()
Locator
Manager
::~
Locator
Manager
()
{
ExtensionSystem
::
PluginManager
::
instance
()
->
removeObject
(
this
);
m_instance
=
0
;
}
void
QuickOpen
Manager
::
show
(
const
QString
&
text
,
void
Locator
Manager
::
show
(
const
QString
&
text
,
int
selectionStart
,
int
selectionLength
)
{
QTC_ASSERT
(
m_locatorWidget
,
return
);
...
...
src/plugins/quickopen/
quickopen
manager.h
→
src/plugins/quickopen/
locator
manager.h
View file @
2adb5d55
...
...
@@ -27,8 +27,8 @@
**
**************************************************************************/
#ifndef
QUICKOPEN
MANAGER_H
#define
QUICKOPEN
MANAGER_H
#ifndef
LOCATOR
MANAGER_H
#define
LOCATOR
MANAGER_H
#include "quickopen_global.h"
...
...
@@ -40,23 +40,23 @@ namespace Internal {
class
LocatorWidget
;
}
class
QUICKOPEN_EXPORT
QuickOpen
Manager
:
public
QObject
class
QUICKOPEN_EXPORT
Locator
Manager
:
public
QObject
{
Q_OBJECT
public:
QuickOpen
Manager
(
Internal
::
LocatorWidget
*
locatorWidget
);
~
QuickOpen
Manager
();
Locator
Manager
(
Internal
::
LocatorWidget
*
locatorWidget
);
~
Locator
Manager
();
static
QuickOpen
Manager
*
instance
()
{
return
m_instance
;
}
static
Locator
Manager
*
instance
()
{
return
m_instance
;
}
void
show
(
const
QString
&
text
,
int
selectionStart
=
-
1
,
int
selectionLength
=
0
);
private:
Internal
::
LocatorWidget
*
m_locatorWidget
;
static
QuickOpen
Manager
*
m_instance
;
static
Locator
Manager
*
m_instance
;
};
}
// namespace QuickOpen
#endif //
QUICKOPEN
MANAGER_H
#endif //
LOCATOR
MANAGER_H
src/plugins/quickopen/quickopen.pro
View file @
2adb5d55
...
...
@@ -12,7 +12,7 @@ HEADERS += quickopenplugin.h \
filesystemfilter
.
h
\
quickopenconstants
.
h
\
directoryfilter
.
h
\
quickopen
manager
.
h
\
locator
manager
.
h
\
basefilefilter
.
h
\
quickopen_global
.
h
SOURCES
+=
quickopenplugin
.
cpp
\
...
...
@@ -22,7 +22,7 @@ SOURCES += quickopenplugin.cpp \
filesystemfilter
.
cpp
\
settingspage
.
cpp
\
directoryfilter
.
cpp
\
quickopen
manager
.
cpp
\
locator
manager
.
cpp
\
basefilefilter
.
cpp
\
ilocatorfilter
.
cpp
FORMS
+=
settingspage
.
ui
\
...
...
src/plugins/quickopen/quickopenplugin.cpp
View file @
2adb5d55
...
...
@@ -30,7 +30,7 @@
#include "quickopenplugin.h"
#include "quickopenconstants.h"
#include "quickopenfiltersfilter.h"
#include "
quickopen
manager.h"
#include "
locator
manager.h"
#include "locatorwidget.h"
#include "opendocumentsfilter.h"
#include "filesystemfilter.h"
...
...
@@ -112,7 +112,7 @@ bool QuickOpenPlugin::initialize(const QStringList &, QString *)
Core
::
ActionContainer
*
mtools
=
core
->
actionManager
()
->
actionContainer
(
Core
::
Constants
::
M_TOOLS
);
mtools
->
addAction
(
cmd
);
addObject
(
new
QuickOpen
Manager
(
m_locatorWidget
));
addObject
(
new
Locator
Manager
(
m_locatorWidget
));
m_openDocumentsFilter
=
new
OpenDocumentsFilter
(
core
->
editorManager
());
addObject
(
m_openDocumentsFilter
);
...
...
src/plugins/texteditor/texteditoractionhandler.cpp
View file @
2adb5d55
...
...
@@ -33,7 +33,7 @@
#include "texteditorplugin.h"
#include "linenumberfilter.h"
#include <quickopen/
quickopen
manager.h>
#include <quickopen/
locator
manager.h>
#include <coreplugin/icore.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/uniqueidmanager.h>
...
...
@@ -360,7 +360,7 @@ void TextEditorActionHandler::updateCopyAction()
void
TextEditorActionHandler
::
gotoAction
()
{
QuickOpen
::
QuickOpen
Manager
*
quickopen
=
QuickOpen
::
QuickOpen
Manager
::
instance
();
QuickOpen
::
Locator
Manager
*
quickopen
=
QuickOpen
::
Locator
Manager
::
instance
();
QTC_ASSERT
(
quickopen
,
return
);
const
QString
shortcut
=
TextEditorPlugin
::
instance
()
->
lineNumberFilter
()
->
shortcutString
();
const
QString
text
=
tr
(
" <line number>"
);
...
...
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