Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OMPlot 2D plotting tool. Uses Qwt for plotting. Plots .plt .csv and .…
…mat files. Supports plot, plotAll, and plotParametric. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8079 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Haris Kapidzic
committed
Mar 4, 2011
1 parent
8f9d63f
commit f9b5640
Showing
5 changed files
with
1,142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
############################################################################# | ||
# Makefile for building: PlotWidgetGUI | ||
# Generated by qmake (2.01a) (Qt 4.7.0) on: on 16. feb 13:08:02 2011 | ||
# Project: PlotWidgetGUI.pro | ||
# Template: lib | ||
# Command: c:\Qt\2010.05\qt\bin\qmake.exe -o Makefile PlotWidgetGUI.pro | ||
############################################################################# | ||
|
||
first: debug | ||
install: debug-install | ||
uninstall: debug-uninstall | ||
MAKEFILE = Makefile | ||
QMAKE = c:\Qt\2010.05\qt\bin\qmake.exe | ||
DEL_FILE = del | ||
CHK_DIR_EXISTS= if not exist | ||
MKDIR = mkdir | ||
COPY = copy /y | ||
COPY_FILE = $(COPY) | ||
COPY_DIR = xcopy /s /q /y /i | ||
INSTALL_FILE = $(COPY_FILE) | ||
INSTALL_PROGRAM = $(COPY_FILE) | ||
INSTALL_DIR = $(COPY_DIR) | ||
DEL_FILE = del | ||
SYMLINK = | ||
DEL_DIR = rmdir | ||
MOVE = move | ||
CHK_DIR_EXISTS= if not exist | ||
MKDIR = mkdir | ||
SUBTARGETS = \ | ||
debug \ | ||
release | ||
|
||
debug: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug | ||
debug-make_default: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug | ||
debug-make_first: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug first | ||
debug-all: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug all | ||
debug-clean: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug clean | ||
debug-distclean: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug distclean | ||
debug-install: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug install | ||
debug-uninstall: $(MAKEFILE).Debug FORCE | ||
$(MAKE) -f $(MAKEFILE).Debug uninstall | ||
release: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release | ||
release-make_default: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release | ||
release-make_first: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release first | ||
release-all: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release all | ||
release-clean: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release clean | ||
release-distclean: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release distclean | ||
release-install: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release install | ||
release-uninstall: $(MAKEFILE).Release FORCE | ||
$(MAKE) -f $(MAKEFILE).Release uninstall | ||
|
||
Makefile: PlotWidgetGUI.pro ../../../Qt/2010.05/qt/mkspecs/win32-g++/qmake.conf ../../../Qt/2010.05/qt/mkspecs/qconfig.pri \ | ||
../../../Qt/2010.05/qt/mkspecs/modules/qt_webkit_version.pri \ | ||
../../../Qt/2010.05/qt/mkspecs/features/qt_functions.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/qt_config.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/exclusive_builds.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/default_pre.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/default_pre.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/debug.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/debug_and_release.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/default_post.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/default_post.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/rtti.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/exceptions.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/stl.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/shared.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/dll.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/warn_on.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/qt.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/thread.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/moc.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/win32/windows.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/resources.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/uic.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/yacc.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/lex.prf \ | ||
../../../Qt/2010.05/qt/mkspecs/features/include_source_dir.prf | ||
$(QMAKE) -o Makefile PlotWidgetGUI.pro | ||
..\..\..\Qt\2010.05\qt\mkspecs\qconfig.pri: | ||
..\..\..\Qt\2010.05\qt\mkspecs\modules\qt_webkit_version.pri: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\qt_functions.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\qt_config.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\exclusive_builds.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\default_pre.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_pre.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\debug.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\debug_and_release.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\default_post.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_post.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\rtti.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\exceptions.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\stl.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\shared.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\dll.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\warn_on.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\qt.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\thread.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\moc.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\win32\windows.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\resources.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\uic.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\yacc.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\lex.prf: | ||
..\..\..\Qt\2010.05\qt\mkspecs\features\include_source_dir.prf: | ||
qmake: qmake_all FORCE | ||
@$(QMAKE) -o Makefile PlotWidgetGUI.pro | ||
|
||
qmake_all: FORCE | ||
|
||
make_default: debug-make_default release-make_default FORCE | ||
make_first: debug-make_first release-make_first FORCE | ||
all: debug-all release-all FORCE | ||
clean: debug-clean release-clean FORCE | ||
-$(DEL_FILE) ..\bin\libPlotWidgetGUI.a | ||
distclean: debug-distclean release-distclean FORCE | ||
-$(DEL_FILE) Makefile | ||
|
||
check: first | ||
|
||
debug-mocclean: $(MAKEFILE).Debug | ||
$(MAKE) -f $(MAKEFILE).Debug mocclean | ||
release-mocclean: $(MAKEFILE).Release | ||
$(MAKE) -f $(MAKEFILE).Release mocclean | ||
mocclean: debug-mocclean release-mocclean | ||
|
||
debug-mocables: $(MAKEFILE).Debug | ||
$(MAKE) -f $(MAKEFILE).Debug mocables | ||
release-mocables: $(MAKEFILE).Release | ||
$(MAKE) -f $(MAKEFILE).Release mocables | ||
mocables: debug-mocables release-mocables | ||
FORCE: | ||
|
||
$(MAKEFILE).Debug: Makefile | ||
$(MAKEFILE).Release: Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2011-02-01T16:47:11 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui | ||
|
||
TARGET = OMPlot | ||
TEMPLATE = app | ||
|
||
SOURCES += main.cpp\ | ||
plotwindow.cpp \ | ||
../../c_runtime/read_matlab4.c | ||
|
||
HEADERS +=\ | ||
plotwindow.h \ | ||
../../c_runtime/read_matlab4.h | ||
|
||
|
||
LIBS += -L $$(OMDEV)/lib/qwt-6.0.0-mingw/lib \ | ||
-lqwtd | ||
|
||
INCLUDEPATH += $$(OMDEV)/lib/qwt-6.0.0-mingw/include | ||
|
||
DESTDIR = ../bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* This file is part of OpenModelica. | ||
* | ||
* Copyright (c) 1998-CurrentYear, Linkoping University, | ||
* Department of Computer and Information Science, | ||
* SE-58183 Linkoping, Sweden. | ||
* | ||
* All rights reserved. | ||
* | ||
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 | ||
* AND THIS OSMC PUBLIC LICENSE (OSMC-PL). | ||
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S | ||
* ACCEPTANCE OF THE OSMC PUBLIC LICENSE. | ||
* | ||
* The OpenModelica software and the Open Source Modelica | ||
* Consortium (OSMC) Public License (OSMC-PL) are obtained | ||
* from Linkoping University, either from the above address, | ||
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or | ||
* http://www.openmodelica.org, and in the OpenModelica distribution. | ||
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This program is distributed WITHOUT ANY WARRANTY; without | ||
* even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH | ||
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS | ||
* OF OSMC-PL. | ||
* | ||
* See the full OSMC Public License conditions for more details. | ||
* | ||
* Main Authors 2010: Syed Adeel Asghar, Sonia Tariq | ||
* | ||
*/ | ||
|
||
#include "plotwindow.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QApplication a(argc, argv); | ||
|
||
try { | ||
QStringList arguments; | ||
for(int i = 0; i < argc; i++) | ||
arguments.append(argv[i]); | ||
|
||
PlotWindow w(arguments); | ||
w.show(); | ||
return a.exec(); | ||
} catch (PlotException &e) | ||
{ | ||
QMessageBox *msgBox = new QMessageBox(); | ||
msgBox->setWindowTitle(QString("PlotWidgetGUI")); | ||
msgBox->setIcon(QMessageBox::Warning); | ||
msgBox->setText(QString(e.what())); | ||
msgBox->setStandardButtons(QMessageBox::Ok); | ||
msgBox->setDefaultButton(QMessageBox::Ok); | ||
msgBox->exec(); | ||
|
||
return -1; | ||
} | ||
} |
Oops, something went wrong.