<table><tr><td style="">dhaumann created this revision.<br />dhaumann added a reviewer: cullmann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />dhaumann requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23824">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch adds one public function to KTextEditor::Editor:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">void addVariableExpansion(const QVector<QWidget*>& widgets,
const QStringList& variables = QStringList()) const;</pre></div>
<p>Once called for QLineEdits (QTextEdit support still pending),<br />
QLineEdits will get an action that opens an variable expansion<br />
dialog that allows the user to insert variables from a list<br />
view.</p>
<p>What is still missing:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">add support for QTextEdits</li>
<li class="remarkup-list-item">use for backup prefix/suffix (bug 403583)</li>
<li class="remarkup-list-item">use in External Tools plugin (bug 299248)</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>make && make test</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>add-variables-dialog</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23824">https://phabricator.kde.org/D23824</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/CMakeLists.txt<br />
src/include/ktexteditor/editor.h<br />
src/utils/kateglobal.cpp<br />
src/utils/kateglobal.h<br />
src/utils/katemacroexpander.cpp<br />
src/utils/katemacroexpander.h<br />
src/utils/katevariableexpansionhelpers.h<br />
src/utils/katevariableexpansionmanager.cpp<br />
src/utils/katevariableexpansionmanager.h<br />
src/utils/ktexteditor.cpp<br />
src/utils/variable.cpp<br />
src/utils/variable.h</div></div></div><br /><div><strong>To: </strong>dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>