Skip to content

Commit

Permalink
Allow opening directory structure.
Browse files Browse the repository at this point in the history
Support for MetaModelica & C files.
Syntax Highlighting of MetaModelica & C Files.
  • Loading branch information
adeas31 committed Jun 13, 2016
1 parent 8f881c3 commit 064f241
Show file tree
Hide file tree
Showing 110 changed files with 1,872 additions and 1,214 deletions.
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/BitmapAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "BitmapAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/BitmapAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef BITMAPANNOTATION_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/EllipseAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "EllipseAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/EllipseAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef ELLIPSEANNOTATION_H
Expand Down
4 changes: 1 addition & 3 deletions OMEdit/OMEditGUI/Annotations/LineAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "LineAnnotation.h"
Expand Down Expand Up @@ -1172,6 +1169,7 @@ ExpandableConnectorTreeView::ExpandableConnectorTreeView(CreateConnectionDialog
setItemDelegate(new ItemDelegate(this));
setTextElideMode(Qt::ElideMiddle);
setIndentation(Helper::treeIndentation);
setUniformRowHeights(true);
}

/*!
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/LineAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef LINEANNOTATION_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/PolygonAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "PolygonAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/PolygonAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef POLYGONANNOTATION_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/RectangleAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "RectangleAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/RectangleAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef RECTANGLEANNOTATION_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/ShapeAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "ShapeAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/ShapeAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef SHAPEANNOTATION_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/ShapePropertiesDialog.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include <limits>
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/ShapePropertiesDialog.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef SHAPEPROPERTIESDIALOG_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/TextAnnotation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "TextAnnotation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Annotations/TextAnnotation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef TEXTANNOTATION_H
Expand Down
9 changes: 3 additions & 6 deletions OMEdit/OMEditGUI/Component/Component.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "Component.h"
Expand Down Expand Up @@ -869,7 +866,7 @@ void Component::createClassComponents()
if (!mpLibraryTreeItem->isNonExisting()) {
if (!mpLibraryTreeItem->getModelWidget()) {
MainWindow *pMainWindow = mpGraphicsView->getModelWidget()->getModelWidgetContainer()->getMainWindow();
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, "", false);
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, false);
}
foreach (Component *pComponent, mpLibraryTreeItem->getModelWidget()->getIconGraphicsView()->getComponentsList()) {
mComponentsList.append(new Component(pComponent, this, getRootParentComponent()));
Expand Down Expand Up @@ -1215,7 +1212,7 @@ void Component::createClassInheritedComponents()
if (!mpLibraryTreeItem->isNonExisting()) {
if (!mpLibraryTreeItem->getModelWidget()) {
MainWindow *pMainWindow = mpGraphicsView->getModelWidget()->getModelWidgetContainer()->getMainWindow();
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, "", false);
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, false);
}
foreach (LibraryTreeItem *pLibraryTreeItem, mpLibraryTreeItem->getModelWidget()->getInheritedClassesList()) {
mInheritedComponentsList.append(new Component(pLibraryTreeItem, this));
Expand All @@ -1232,7 +1229,7 @@ void Component::createClassShapes()
if (!mpLibraryTreeItem->isNonExisting()) {
if (!mpLibraryTreeItem->getModelWidget()) {
MainWindow *pMainWindow = mpGraphicsView->getModelWidget()->getModelWidgetContainer()->getMainWindow();
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, "", false);
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(mpLibraryTreeItem, false);
}
GraphicsView *pGraphicsView = mpLibraryTreeItem->getModelWidget()->getIconGraphicsView();
if (mpLibraryTreeItem->isConnector() && mpGraphicsView->getViewType() == StringHandler::Diagram && mComponentType == Component::Root) {
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/Component.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef COMPONENT_H
Expand Down
5 changes: 1 addition & 4 deletions OMEdit/OMEditGUI/Component/ComponentProperties.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "ComponentProperties.h"
Expand Down Expand Up @@ -268,7 +265,7 @@ QString Parameter::getModifierValueFromDerivedClass(Component *pComponent, QStri
MainWindow *pMainWindow = pComponent->getGraphicsView()->getModelWidget()->getModelWidgetContainer()->getMainWindow();
OMCProxy *pOMCProxy = pMainWindow->getOMCProxy();
if (!pComponent->getLibraryTreeItem()->getModelWidget()) {
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(pComponent->getLibraryTreeItem(), "", false);
pMainWindow->getLibraryWidget()->getLibraryTreeModel()->showModelWidget(pComponent->getLibraryTreeItem(), false);
}
foreach (Component *pInheritedComponent, pComponent->getInheritedComponentsList()) {
if (!pOMCProxy->isBuiltinType(pInheritedComponent->getComponentInfo()->getClassName())) {
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/ComponentProperties.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef COMPONENTPROPERTIES_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/CornerItem.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "CornerItem.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/CornerItem.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef CORNERITEM_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/Transformation.cpp
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "Transformation.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Component/Transformation.h
Expand Up @@ -29,10 +29,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef TRANSFORMATION_H
Expand Down
5 changes: 1 addition & 4 deletions OMEdit/OMEditGUI/CrashReport/CrashReportDialog.cpp
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "CrashReportDialog.h"
Expand Down Expand Up @@ -61,7 +58,7 @@ CrashReportDialog::CrashReportDialog()
mpBugDescriptionTextBox = new QPlainTextEdit;
// files label and checkboxes
mpFilesDescriptionLabel = new Label(tr("Following selected files will be sent alongwith the crash report,"));
QString& tmpPath = OpenModelica::tempDirectory();
QString& tmpPath = Utilities::tempDirectory();
// omeditcommunication.log file checkbox
QFileInfo OMEditCommunicationLogFileInfo(QString("%1omeditcommunication.log").arg(tmpPath));
mpOMEditCommunicationLogFileCheckBox = new QCheckBox(OMEditCommunicationLogFileInfo.absoluteFilePath());
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/CrashReport/CrashReportDialog.h
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef CRASHREPORTDIALOG_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Debugger/Attach/AttachToProcessDialog.cpp
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include "AttachToProcessDialog.h"
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Debugger/Attach/AttachToProcessDialog.h
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef ATTACHTOPROCESSDIALOG_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Debugger/Attach/ProcessListModel.cpp
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#include <QLibrary>
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Debugger/Attach/ProcessListModel.h
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef PROCESSLISTMODEL_H
Expand Down
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Debugger/Breakpoints/BreakpointDialog.h
Expand Up @@ -28,10 +28,7 @@
*
*/
/*
*
* @author Adeel Asghar <adeel.asghar@liu.se>
*
*
*/

#ifndef BREAKPOINTDIALOG_H
Expand Down

0 comments on commit 064f241

Please sign in to comment.