Skip to content

Commit

Permalink
Merge 6d6470a into 04dbdcd
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Apr 23, 2019
2 parents 04dbdcd + 6d6470a commit 023ad15
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ set(PLUGINS
support/CellMLSupport
support/COMBINESupport
support/PMRSupport
support/QScintillaSupport
support/SEDMLSupport
support/SimulationSupport
support/StandardSupport
Expand All @@ -929,6 +928,7 @@ set(PLUGINS
widget/EditorWidget
widget/GraphPanelWidget
widget/MathMLViewerWidget
widget/QScintillaWidget
widget/WebViewerWidget
)

Expand Down
2 changes: 1 addition & 1 deletion doc/downloads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var jsonData = { "versions": [
}
],
"changes": [
{ "change": "<strong>General:</strong> now rely on <a href=\"https://visualstudio.microsoft.com/downloads/\">Visual Studio 2017 Update 9</a> to build OpenCOR on <a href=\"https://en.wikipedia.org/wiki/Microsoft_Windows\">Windows</a> (see issue <a href=\"https://github.com/opencor/opencor/issues/2041\">#2041</a>). Upgraded our minimum requirement to <a href=\"https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_18.04_LTS_(Bionic_Beaver)\">Ubuntu 18.04 LTS</a> on Linux (see issue <a href=\"https://github.com/opencor/opencor/issues/2050\">#2050</a>)." },
{ "change": "<strong>General:</strong> now rely on <a href=\"https://visualstudio.microsoft.com/downloads/\">Visual Studio 2017 Update 9</a> to build OpenCOR on <a href=\"https://en.wikipedia.org/wiki/Microsoft_Windows\">Windows</a> (see issue <a href=\"https://github.com/opencor/opencor/issues/2041\">#2041</a>). Upgraded our minimum requirement to <a href=\"https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_18.04_LTS_(Bionic_Beaver)\">Ubuntu 18.04 LTS</a> on Linux (see issue <a href=\"https://github.com/opencor/opencor/issues/2050\">#2050</a>). Renamed QScintillaSupport to QScintillaWidget (see issue <a href=\"https://github.com/opencor/opencor/issues/2066\">#2066</a>)." },
{ "change": "<strong>PMR Workspaces window:</strong> first list changed files and then show the user's comment (in the synchronisation dialog; see issue <a href=\"https://github.com/opencor/opencor/issues/2065\">#2065</a>)." },
{ "change": "<strong>Third-party libraries:</strong> upgraded <a href=\"http://www.llvm.org/\">LLVM</a>+<a href=\"http://clang.llvm.org/\">Clang</a> to version 8.0.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2040\">#2040</a>). Upgraded <a href=\"https://github.com/fbergmann/libSEDML/\">libSEDML</a> to version 0.4.4 (see issue <a href=\"https://github.com/opencor/opencor/issues/2042\">#2042</a>). Upgraded <a href=\"https://www.mesa3d.org/\">Mesa</a> to version 18.3.5 (see issue <a href=\"https://github.com/opencor/opencor/issues/2044\">#2044</a>). Upgraded <a href=\"http://sbml.org/Software/libSBML/\">libSBML</a> to version 5.18.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2064\">#2064</a>). Upgraded <a href=\"https://jquery.com/\">jQuery</a> to version 3.4.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2068\">#2068</a>). Upgraded <a href=\"https://www.mesa3d.org/\">Mesa</a> to version 19.0.2 (see issue <a href=\"https://github.com/opencor/opencor/issues/2070\">#2070</a>)." }
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void CellmlTextViewLexer::styleText(int pBytesStart, int pBytesEnd)
mFullText = editor()->text();
mFullTextUtf8 = mFullText.toUtf8();

mEolString = qobject_cast<QScintillaSupport::QScintillaWidget *>(editor())->eolString();
mEolString = qobject_cast<QScintillaWidget::QScintillaWidget *>(editor())->eolString();

styleText(pBytesStart, pBytesEnd, text, false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ bool CellmlTextViewParser::tokenType(QDomNode &pDomNode,
QString foundString = mScanner.string();

if (mScanner.token() != CellmlTextViewScanner::Token::Eof) {
foundString = QString("'%1'").arg(QScintillaSupport::QScintillaWidget::specials(foundString));
foundString = QString("'%1'").arg(QScintillaWidget::QScintillaWidget::specials(foundString));
}

addUnexpectedTokenErrorMessage(pExpectedString, foundString);
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/editing/CellMLTextView/src/cellmltextviewwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ namespace EditorWidget {

//==============================================================================

namespace QScintillaSupport {
namespace QScintillaWidget {
class QScintillaWidget;
} // namespace QScintillaSupport
} // namespace QScintillaWidget

//==============================================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The following plugins are available:
- LLVMClang: the plugin is loaded and fully functional.
- MathMLViewerWidget: the plugin is loaded and fully functional.
- QScintilla: the plugin is loaded and fully functional.
- QScintillaSupport: the plugin is loaded and fully functional.
- QScintillaWidget: the plugin is loaded and fully functional.
- Qwt: the plugin is loaded and fully functional.
- Sample: the plugin is loaded and fully functional.
- SampleTools: the plugin is loaded and fully functional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ The following plugins are available:
- LLVMClang: the plugin is loaded and fully functional.
- MathMLViewerWidget: the plugin is loaded and fully functional.
- QScintilla: the plugin is loaded and fully functional.
- QScintillaSupport: the plugin is loaded and fully functional.
- QScintillaWidget: the plugin is loaded and fully functional.
- Qwt: the plugin is loaded and fully functional.
- StandardSupport: the plugin is loaded and fully functional.

This file was deleted.

2 changes: 1 addition & 1 deletion src/plugins/widget/EditorWidget/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ add_plugin(EditorWidget
UIS
src/editorwidgetfindreplacewidget.ui
PLUGINS
QScintillaSupport
QScintillaWidget
)
24 changes: 12 additions & 12 deletions src/plugins/widget/EditorWidget/src/editorwidgeteditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace EditorWidget {
EditorWidgetEditorWidget::EditorWidgetEditorWidget(QsciLexer *pLexer,
EditorWidgetFindReplaceWidget *pFindReplace,
EditorWidget *pParent) :
QScintillaSupport::QScintillaWidget(pLexer, pParent),
QScintillaWidget::QScintillaWidget(pLexer, pParent),
mOwner(pParent),
mFindReplace(pFindReplace),
mReadOnlyStyles(QIntList()),
Expand Down Expand Up @@ -110,7 +110,7 @@ void EditorWidgetEditorWidget::keyPressEvent(QKeyEvent *pEvent)

// Default handling of the event

QScintillaSupport::QScintillaWidget::keyPressEvent(pEvent);
QScintillaWidget::QScintillaWidget::keyPressEvent(pEvent);

// Update our highlighting all if our find/replace widget is visible and
// has some find text and we didn't press one of the navigation keys,
Expand Down Expand Up @@ -161,7 +161,7 @@ void EditorWidgetEditorWidget::mouseDoubleClickEvent(QMouseEvent *pEvent)
{
// Default handling of the event

QScintillaSupport::QScintillaWidget::mouseDoubleClickEvent(pEvent);
QScintillaWidget::QScintillaWidget::mouseDoubleClickEvent(pEvent);

// Check whether something has been selected and, if so, highlight all of
// its occurrences
Expand All @@ -184,7 +184,7 @@ void EditorWidgetEditorWidget::mousePressEvent(QMouseEvent *pEvent)
{
// Default handling of the event

QScintillaSupport::QScintillaWidget::mousePressEvent(pEvent);
QScintillaWidget::QScintillaWidget::mousePressEvent(pEvent);

// Clear any highlighting that we might have, if our find/replace widget is
// not visible
Expand All @@ -200,7 +200,7 @@ void EditorWidgetEditorWidget::setReadOnly(bool pReadOnly)
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::setReadOnly(pReadOnly);
QScintillaWidget::QScintillaWidget::setReadOnly(pReadOnly);

// Update our background colour

Expand Down Expand Up @@ -481,7 +481,7 @@ void EditorWidgetEditorWidget::replace()
mFindReplace->isCaseSensitive()?
QRegularExpression::NoPatternOption:
QRegularExpression::CaseInsensitiveOption).match(selectedText()).hasMatch()) {
QScintillaSupport::QScintillaWidget::replace(mFindReplace->replaceText());
QScintillaWidget::QScintillaWidget::replace(mFindReplace->replaceText());
}
} else {
// The find/replace is done using a simple match, which may be case
Expand All @@ -507,7 +507,7 @@ void EditorWidgetEditorWidget::replace()
mFindReplace->isCaseSensitive()?
Qt::CaseSensitive:
Qt::CaseInsensitive) == 0) {
QScintillaSupport::QScintillaWidget::replace(mFindReplace->replaceText());
QScintillaWidget::QScintillaWidget::replace(mFindReplace->replaceText());
}
}
}
Expand Down Expand Up @@ -552,7 +552,7 @@ void EditorWidgetEditorWidget::cut()
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::cut();
QScintillaWidget::QScintillaWidget::cut();

// Update our highlighting all if our find/replace widget is visible and
// has some find text
Expand All @@ -568,7 +568,7 @@ void EditorWidgetEditorWidget::paste()
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::paste();
QScintillaWidget::QScintillaWidget::paste();

// Update our highlighting all if our find/replace widget is visible and
// has some find text
Expand All @@ -584,7 +584,7 @@ void EditorWidgetEditorWidget::del()
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::del();
QScintillaWidget::QScintillaWidget::del();

// Update our highlighting all if our find/replace widget is visible and
// has some find text
Expand All @@ -600,7 +600,7 @@ void EditorWidgetEditorWidget::undo()
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::undo();
QScintillaWidget::QScintillaWidget::undo();

// Update our highlighting all if our find/replace widget is visible and
// has some find text
Expand All @@ -616,7 +616,7 @@ void EditorWidgetEditorWidget::redo()
{
// Default handling of the method

QScintillaSupport::QScintillaWidget::redo();
QScintillaWidget::QScintillaWidget::redo();

// Update our highlighting all if our find/replace widget is visible and
// has some find text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EditorWidgetScrollBar;

//==============================================================================

class EDITORWIDGET_EXPORT EditorWidgetEditorWidget : public QScintillaSupport::QScintillaWidget
class EDITORWIDGET_EXPORT EditorWidgetEditorWidget : public QScintillaWidget::QScintillaWidget
{
Q_OBJECT

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/widget/EditorWidget/src/editorwidgetplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PLUGININFO_FUNC EditorWidgetPluginInfo()
descriptions.insert("fr", QString::fromUtf8("une extension pour éditer et afficher du texte."));

return new PluginInfo(PluginInfo::Category::Widget, false, false,
QStringList() << "QScintillaSupport",
QStringList() << "QScintillaWidget",
descriptions);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
project(QScintillaSupportPlugin)
project(QScintillaWidgetPlugin)

# Add the plugin

add_plugin(QScintillaSupport
add_plugin(QScintillaWidget
SOURCES
../../plugininfo.cpp

src/qscintillasupportplugin.cpp
src/qscintillawidgetplugin.cpp
src/qscintillawidget.cpp
PLUGINS
Core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//==============================================================================

namespace OpenCOR {
namespace QScintillaSupport {
namespace QScintillaWidget {

//==============================================================================

Expand Down Expand Up @@ -836,7 +836,7 @@ void QScintillaWidget::updateCursorPosition(int pLine, int pColumn)

//==============================================================================

} // namespace QScintillaSupport
} // namespace QScintillaWidget
} // namespace OpenCOR

//==============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "qscintillasupportglobal.h"
#include "qscintillawidgetglobal.h"

//==============================================================================

Expand All @@ -51,11 +51,11 @@ class QWheelEvent;
//==============================================================================

namespace OpenCOR {
namespace QScintillaSupport {
namespace QScintillaWidget {

//==============================================================================

class QSCINTILLASUPPORT_EXPORT QScintillaWidget : public QsciScintilla
class QSCINTILLAWIDGET_EXPORT QScintillaWidget : public QsciScintilla
{
Q_OBJECT

Expand Down Expand Up @@ -161,7 +161,7 @@ private slots:

//==============================================================================

} // namespace QScintillaSupport
} // namespace QScintillaWidget
} // namespace OpenCOR

//==============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/

//==============================================================================
// QScintilla support global
// QScintilla widget global
//==============================================================================

#pragma once

//==============================================================================

#ifdef QScintillaSupport_PLUGIN
#define QSCINTILLASUPPORT_EXPORT Q_DECL_EXPORT
#ifdef QScintillaWidget_PLUGIN
#define QSCINTILLAWIDGET_EXPORT Q_DECL_EXPORT
#else
#define QSCINTILLASUPPORT_EXPORT Q_DECL_IMPORT
#define QSCINTILLAWIDGET_EXPORT Q_DECL_IMPORT
#endif

//==============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/

//==============================================================================
// QScintilla support plugin
// QScintilla widget plugin
//==============================================================================

#include "qscintillasupportplugin.h"
#include "qscintillawidgetplugin.h"

//==============================================================================

namespace OpenCOR {
namespace QScintillaSupport {
namespace QScintillaWidget {

//==============================================================================

PLUGININFO_FUNC QScintillaSupportPluginInfo()
PLUGININFO_FUNC QScintillaWidgetPluginInfo()
{
Descriptions descriptions;

descriptions.insert("en", QString::fromUtf8("a plugin to support <a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\">QScintilla</a>."));
descriptions.insert("fr", QString::fromUtf8("une extension pour supporter <a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\">QScintilla</a>."));

return new PluginInfo(PluginInfo::Category::Support, false, false,
return new PluginInfo(PluginInfo::Category::Widget, false, false,
QStringList() << "Core" << "QScintilla",
descriptions);
}

//==============================================================================

} // namespace QScintillaSupport
} // namespace QScintillaWidget
} // namespace OpenCOR

//==============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/

//==============================================================================
// QScintilla support plugin
// QScintilla widget plugin
//==============================================================================

#pragma once
Expand All @@ -30,24 +30,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//==============================================================================

namespace OpenCOR {
namespace QScintillaSupport {
namespace QScintillaWidget {

//==============================================================================

PLUGININFO_FUNC QScintillaSupportPluginInfo();
PLUGININFO_FUNC QScintillaWidgetPluginInfo();

//==============================================================================

class QScintillaSupportPlugin : public QObject
class QScintillaWidgetPlugin : public QObject
{
Q_OBJECT

Q_PLUGIN_METADATA(IID "OpenCOR.QScintillaSupportPlugin" FILE "qscintillasupportplugin.json")
Q_PLUGIN_METADATA(IID "OpenCOR.QScintillaWidgetPlugin" FILE "qscintillawidgetplugin.json")
};

//==============================================================================

} // namespace QScintillaSupport
} // namespace QScintillaWidget
} // namespace OpenCOR

//==============================================================================
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Keys": [ "QScintillaWidgetPlugin" ]
}

0 comments on commit 023ad15

Please sign in to comment.