Skip to content
GitLab
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
5dba1648
Commit
5dba1648
authored
Apr 28, 2010
by
hjk
Browse files
fakevim: add IsKeyword configuration option
parent
53445215
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimactions.cpp
View file @
5dba1648
...
...
@@ -204,6 +204,11 @@ FakeVimSettings *theFakeVimSettings()
item
->
setSettingsKey
(
group
,
_
(
"Backspace"
));
instance
->
insertItem
(
ConfigBackspace
,
item
,
_
(
"backspace"
),
_
(
"bs"
));
item
=
new
SavedAction
(
instance
);
item
->
setDefaultValue
(
_
(
"@,48-57,_,192-255"
));
item
->
setSettingsKey
(
group
,
_
(
"IsKeyword"
));
instance
->
insertItem
(
ConfigIsKeyword
,
item
,
_
(
"iskeyword"
),
_
(
"isk"
));
item
=
new
SavedAction
(
instance
);
item
->
setText
(
QCoreApplication
::
translate
(
"FakeVim::Internal"
,
"FakeVim properties..."
));
...
...
src/plugins/fakevim/fakevimactions.h
View file @
5dba1648
...
...
@@ -60,6 +60,9 @@ enum FakeVimSettingsCode
// stop once at the start of insert.
ConfigBackspace
,
// @,48-57,_,192-255
ConfigIsKeyword
,
// other actions
SettingsDialog
,
};
...
...
src/plugins/fakevim/fakevimhandler.cpp
View file @
5dba1648
...
...
@@ -687,11 +687,11 @@ FakeVimHandler::Private::Mappings FakeVimHandler::Private::m_mappings;
FakeVimHandler
::
Private
::
Private
(
FakeVimHandler
*
parent
,
QWidget
*
widget
)
{
//
static PythonHighlighterRules pythonRules;
static
PythonHighlighterRules
pythonRules
;
q
=
parent
;
m_textedit
=
qobject_cast
<
QTextEdit
*>
(
widget
);
m_plaintextedit
=
qobject_cast
<
QPlainTextEdit
*>
(
widget
);
//
new Highlighter(EDITOR(document()), &pythonRules);
new
Highlighter
(
EDITOR
(
document
()),
&
pythonRules
);
init
();
}
...
...
src/plugins/fakevim/fakevimoptions.ui
View file @
5dba1648
...
...
@@ -163,6 +163,16 @@
<widget
class=
"QLineEdit"
name=
"lineEditBackspace"
/>
</item>
<item
row=
"9"
column=
"0"
>
<widget
class=
"QLabel"
name=
"labelIsKeyword"
>
<property
name=
"text"
>
<string>
Keyword characters:
</string>
</property>
</widget>
</item>
<item
row=
"9"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLineEdit"
name=
"lineEditIsKeyword"
/>
</item>
<item
row=
"10"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -178,7 +188,7 @@
</property>
</spacer>
</item>
<item
row=
"1
0
"
column=
"0"
colspan=
"3"
>
<item
row=
"1
1
"
column=
"0"
colspan=
"3"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QPushButton"
name=
"pushButtonCopyTextEditorSettings"
>
...
...
src/plugins/fakevim/fakevimplugin.cpp
View file @
5dba1648
...
...
@@ -176,6 +176,8 @@ QWidget *FakeVimOptionPage::createPage(QWidget *parent)
m_ui
.
spinBoxTabStop
);
m_group
.
insert
(
theFakeVimSetting
(
ConfigBackspace
),
m_ui
.
lineEditBackspace
);
m_group
.
insert
(
theFakeVimSetting
(
ConfigIsKeyword
),
m_ui
.
lineEditIsKeyword
);
m_group
.
insert
(
theFakeVimSetting
(
ConfigAutoIndent
),
m_ui
.
checkBoxAutoIndent
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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