>
</File>
</Filter>
+ <File
+ RelativePath=".\ui\settings.ui"
+ >
+ </File>
</Files>
<Globals>
</Globals>
**
****************************************************************************/
+#include "windows.h"
#include <QApplication>
#include "mainwindow.h"
+#ifdef WIN32_DLL
+__declspec(dllimport) boolean MemTest;
+/*gvc.lib cgraph.lib*/
+#ifdef WITH_CGRAPH
+ #pragma comment( lib, "cgraph.lib" )
+#else
+ #pragma comment( lib, "graph.lib" )
+#endif
+ #pragma comment( lib, "gvc.lib" )
+#endif
+
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(mdi);
#include "mainwindow.h"
#include "mdichild.h"
+#include "csettings.h"
+
MainWindow::MainWindow()
{
connect(windowMapper, SIGNAL(mapped(QWidget*)),
this, SLOT(setActiveSubWindow(QWidget*)));
+ frmSettings= new CFrmSettings();
+
createActions();
createMenus();
createToolBars();
"document interface applications using Qt."));
}
+
+void MainWindow::settings()
+{
+ frmSettings->showSettings(activeMdiChild());
+
+}
+
+
+
+
void MainWindow::updateMenus()
{
bool hasMdiChild = (activeMdiChild() != 0);
separatorAct->setVisible(!windows.isEmpty());
for (int i = 0; i < windows.size(); ++i) {
- MdiChild *child = qobject_cast<MdiChild *>(windows.at(i)->widget());
-
- QString text;
- if (i < 9) {
- text = tr("&%1 %2").arg(i + 1)
+ if (typeid(windows.at(i)->widget()).name()=="MdiChild")
+ {
+ MdiChild *child = qobject_cast<MdiChild *>(windows.at(i)->widget());
+ QString text;
+ if (i < 9) {
+ text = tr("&%1 %2").arg(i + 1)
.arg(child->userFriendlyCurrentFile());
- } else {
- text = tr("%1 %2").arg(i + 1)
- .arg(child->userFriendlyCurrentFile());
- }
- QAction *action = windowMenu->addAction(text);
- action->setCheckable(true);
- action ->setChecked(child == activeMdiChild());
- connect(action, SIGNAL(triggered()), windowMapper, SLOT(map()));
- windowMapper->setMapping(action, windows.at(i));
+ } else {
+ text = tr("%1 %2").arg(i + 1)
+ .arg(child->userFriendlyCurrentFile());
+ }
+ QAction *action = windowMenu->addAction(text);
+ action->setCheckable(true);
+ action ->setChecked(child == activeMdiChild());
+ connect(action, SIGNAL(triggered()), windowMapper, SLOT(map()));
+ windowMapper->setMapping(action, windows.at(i));
+ }
}
}
MdiChild *MainWindow::createMdiChild()
{
MdiChild *child = new MdiChild;
+ child->parentFrm=this;
mdiArea->addSubWindow(child);
+
connect(child, SIGNAL(copyAvailable(bool)),
cutAct, SLOT(setEnabled(bool)));
aboutQtAct = new QAction(tr("About &Qt"), this);
aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+
+
+ settingsAct = new QAction(tr("Settings"), this);
+ settingsAct->setStatusTip(tr("Show Graphviz Settings"));
+ connect(settingsAct, SIGNAL(triggered()), this, SLOT(settings()));
+
+
+
+ layoutAct = new QAction(QIcon(":/images/cut.png"),tr("Layout"), this);
+ layoutAct->setStatusTip(tr("Layout the active graph"));
+ connect(layoutAct, SIGNAL(triggered()), this, SLOT(about()));
+
+
}
void MainWindow::createMenus()
editMenu->addAction(copyAct);
editMenu->addAction(pasteAct);
+ graphMenu = menuBar()->addMenu (tr("&Graph"));
+ graphMenu->addAction(settingsAct);
+ graphMenu->addAction(layoutAct);
+
windowMenu = menuBar()->addMenu(tr("&Window"));
updateWindowMenu();
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowMenu()));
editToolBar->addAction(cutAct);
editToolBar->addAction(copyAct);
editToolBar->addAction(pasteAct);
+
+ graphToolBar = addToolBar(tr("Graph"));
+ graphToolBar->addAction(settingsAct);
+ graphToolBar->addAction(layoutAct);
+
}
void MainWindow::createStatusBar()
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
+#include "ui_settings.h"
class MdiChild;
+class CFrmSettings;
QT_BEGIN_NAMESPACE
class QAction;
class QMenu;
public:
MainWindow();
+ QMdiArea *mdiArea;
protected:
void closeEvent(QCloseEvent *event);
MdiChild *createMdiChild();
void switchLayoutDirection();
void setActiveSubWindow(QWidget *window);
+ void settings();
private:
void createActions();
MdiChild *activeMdiChild();
QMdiSubWindow *findMdiChild(const QString &fileName);
- QMdiArea *mdiArea;
QSignalMapper *windowMapper;
+
+
QMenu *fileMenu;
QMenu *editMenu;
+ QMenu *graphMenu;
QMenu *windowMenu;
QMenu *helpMenu;
QToolBar *fileToolBar;
QToolBar *editToolBar;
+ QToolBar *graphToolBar;
QAction *newAct;
QAction *openAct;
QAction *saveAct;
QAction *separatorAct;
QAction *aboutAct;
QAction *aboutQtAct;
+
+ QAction *settingsAct;
+ QAction *layoutAct;
+
+
+ CFrmSettings* frmSettings;
};
#endif
Version="9.00"
Name="mdi"
ProjectGUID="{F493EC02-F24B-3211-8666-ABA635BA96CE}"
+ RootNamespace="mdi"
Keyword="Qt4VSv1.0"
TargetFrameworkVersion="0"
>
Name="VCCLCompilerTool"
AdditionalOptions="-Zm200 -w34100 -w34189"
Optimization="4"
- AdditionalIncludeDirectories=""$(QTDIR)\include\QtCore","$(QTDIR)\include\QtGui","$(QTDIR)\include","$(QTDIR)\include\ActiveQt","debug",..\..\..\..\Qt\4.7.0\mkspecs\default"
- PreprocessorDefinitions="_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_DLL,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT"
+ AdditionalIncludeDirectories=""$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtGui";"$(QTDIR)\include";"$(QTDIR)\include\ActiveQt";debug;..\..\..\..\Qt\4.7.0\mkspecs\default;.\GeneratedFiles;..\..\lib\common;..\..\lib\pathplan;..\..\lib\cdt;..\..\lib\graph;"$(SolutionDir)/";..\..\lib\gvc"
+ PreprocessorDefinitions="_WINDOWS;WIN32;_DEBUG;HAVE_CONFIG_H;WIN32_DLL;DEMAND_LOADING;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
GeneratePreprocessedFile="0"
ExceptionHandling="1"
RuntimeLibrary="3"
- BufferSecurityCheck="false"
+ BufferSecurityCheck="true"
TreatWChar_tAsBuiltInType="false"
RuntimeTypeInfo="true"
AssemblerListingLocation="debug\"
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalOptions=""/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'""
- AdditionalDependencies="qtmaind.lib QtGuid4.lib QtCored4.lib"
- OutputFile="debug\mdi.exe"
+ AdditionalDependencies="qtmaind.lib QtGuid4.lib QtCored4.lib "
+ OutputFile="c:/graphviz-ms/bin/$(ProjectName).exe"
SuppressStartupBanner="true"
- AdditionalLibraryDirectories="$(QTDIR)\lib"
+ AdditionalLibraryDirectories=""C:\graphviz-ms\bin";"$(QTDIR)\lib""
+ IgnoreDefaultLibraryNames=""
GenerateDebugInformation="true"
ProgramDatabaseFile=""
- SubSystem="2"
+ SubSystem="1"
LinkTimeCodeGeneration="0"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="-Zm200 -w34100 -w34189"
Optimization="2"
- AdditionalIncludeDirectories=""$(QTDIR)\include\QtCore","$(QTDIR)\include\QtGui","$(QTDIR)\include","$(QTDIR)\include\ActiveQt","release",..\..\..\..\Qt\4.7.0\mkspecs\default"
- PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_DLL,QT_NO_DEBUG,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,NDEBUG"
+ AdditionalIncludeDirectories=""$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtGui";"$(QTDIR)\include";"$(QTDIR)\include\ActiveQt";debug;..\..\..\..\Qt\4.7.0\mkspecs\default;.\GeneratedFiles;..\..\lib\common;..\..\lib\pathplan;..\..\lib\cdt;..\..\lib\graph;..\..\lib\gvc"
+ PreprocessorDefinitions="QT_NO_DEBUG;NDEBUG;_WINDOWS;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
GeneratePreprocessedFile="0"
ExceptionHandling="1"
RuntimeLibrary="2"
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalOptions=""/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'""
- AdditionalDependencies="qtmain.lib QtGui4.lib QtCore4.lib"
- OutputFile="release\mdi.exe"
+ AdditionalDependencies="qtmain.lib QtGuid4.lib QtCored4.lib gvc.lib graph.lib"
+ OutputFile="c:/graphviz-ms/bin/$(ProjectName).exe"
LinkIncremental="1"
SuppressStartupBanner="true"
- AdditionalLibraryDirectories="$(QTDIR)\lib"
+ AdditionalLibraryDirectories=""C:\graphviz-ms\bin";"$(QTDIR)\lib""
GenerateDebugInformation="false"
ProgramDatabaseFile=""
SubSystem="2"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
+ <File
+ RelativePath=".\csettings.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\imageviewer.cpp"
+ >
+ </File>
<File
RelativePath="main.cpp"
>
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
- RelativePath="mainwindow.h"
+ RelativePath=".\csettings.h"
>
<FileConfiguration
Name="Debug|Win32"
</FileConfiguration>
</File>
<File
- RelativePath="mdichild.h"
+ RelativePath=".\imageviewer.h"
>
<FileConfiguration
Name="Debug|Win32"
/>
</FileConfiguration>
</File>
+ <File
+ RelativePath="mainwindow.h"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Moc'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\moc.exe" -D_WINDOWS -DWIN32 -D_DEBUG -DHAVE_CONFIG_H -DWIN32_DLL -DDEMAND_LOADING -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include" "-I$(QTDIR)\include\ActiveQt" "-I.\debug" "-I.\..\..\..\..\Qt\4.7.0\mkspecs\default" "-I.\GeneratedFiles" "-I.\..\..\lib\common" "-I.\..\..\lib\pathplan" "-I.\..\..\lib\cdt" "-I.\..\..\lib\graph" "-I$(SolutionDir)\." "-I.\..\..\lib\gvc" "mainwindow.h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
"
+ AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)"
+ Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp""
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Moc'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\moc.exe" -DQT_NO_DEBUG -DNDEBUG -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include" "-I$(QTDIR)\include\ActiveQt" "-I.\debug" "-I.\..\..\..\..\Qt\4.7.0\mkspecs\default" "-I.\GeneratedFiles" "-I.\..\..\lib\common" "-I.\..\..\lib\pathplan" "-I.\..\..\lib\cdt" "-I.\..\..\lib\graph" "-I.\..\..\lib\gvc" "mainwindow.h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
"
+ AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)"
+ Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp""
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="mdichild.h"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Moc'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\moc.exe" -D_WINDOWS -DWIN32 -D_DEBUG -DHAVE_CONFIG_H -DWIN32_DLL -DDEMAND_LOADING -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include" "-I$(QTDIR)\include\ActiveQt" "-I.\debug" "-I.\..\..\..\..\Qt\4.7.0\mkspecs\default" "-I.\GeneratedFiles" "-I.\..\..\lib\common" "-I.\..\..\lib\pathplan" "-I.\..\..\lib\cdt" "-I.\..\..\lib\graph" "-I$(SolutionDir)\." "-I.\..\..\lib\gvc" "mdichild.h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
"
+ AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)"
+ Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp""
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Moc'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\moc.exe" -DQT_NO_DEBUG -DNDEBUG -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include" "-I$(QTDIR)\include\ActiveQt" "-I.\debug" "-I.\..\..\..\..\Qt\4.7.0\mkspecs\default" "-I.\GeneratedFiles" "-I.\..\..\lib\common" "-I.\..\..\lib\pathplan" "-I.\..\..\lib\cdt" "-I.\..\..\lib\graph" "-I.\..\..\lib\gvc" "mdichild.h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
"
+ AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)"
+ Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp""
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath=".\ui_settings.h"
+ >
+ </File>
</Filter>
<Filter
Name="Generated Files"
Filter="cpp;moc"
SourceControlFiles="false"
>
+ <File
+ RelativePath=".\GeneratedFiles\Debug\moc_csettings.cpp"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath=".\GeneratedFiles\Debug\moc_imageviewer.cpp"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
<File
RelativePath=".\GeneratedFiles\Debug\moc_mainwindow.cpp"
>
Filter="cpp;moc"
SourceControlFiles="false"
>
+ <File
+ RelativePath=".\GeneratedFiles\Release\moc_csettings.cpp"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath=".\GeneratedFiles\Release\moc_imageviewer.cpp"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
<File
RelativePath=".\GeneratedFiles\Release\moc_mainwindow.cpp"
>
</FileConfiguration>
</File>
</Filter>
+ <Filter
+ Name="Form Files"
+ Filter="ui"
+ UniqueIdentifier="{99349809-55BA-4b9d-BF79-8FDBB0286EB3}"
+ >
+ <File
+ RelativePath=".\ui\settings.ui"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Uic'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\uic.exe" -o ".\ui_$(InputName).h" "$(InputPath)"
"
+ AdditionalDependencies="$(QTDIR)\bin\uic.exe"
+ Outputs="\ui_frmsettings.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Uic'ing $(InputFileName)..."
+ CommandLine=""$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_$(InputName).h" "$(InputPath)"
"
+ AdditionalDependencies="$(QTDIR)\bin\uic.exe"
+ Outputs="".\GeneratedFiles\ui_$(InputName).h""
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
</Files>
<Globals>
<Global
<VisualStudioUserFile
ProjectType="Visual C++"
Version="9.00"
- ShowAllFiles="false"
+ ShowAllFiles="true"
>
<Configurations>
<Configuration
HttpUrl=""
PDBPath=""
SQLDebugging=""
- Environment="PATH=$(QTDIR)\bin;$(PATH)"
+ Environment="PATH=$(QTDIR)\bin;"$(QTDIR)\bin;$(PATH)"
EnvironmentMerge="true"
DebuggerFlavor=""
MPIRunCommand=""
HttpUrl=""
PDBPath=""
SQLDebugging=""
- Environment="PATH=$(QTDIR)\bin;$(PATH)"
+ Environment="PATH=$(QTDIR)\bin;"$(QTDIR)\bin;$(PATH)"
EnvironmentMerge="true"
DebuggerFlavor=""
MPIRunCommand=""
#include <QtGui>
#include "mdichild.h"
+#include "mainwindow.h"
MdiChild::MdiChild()
{
setAttribute(Qt::WA_DeleteOnClose);
isUntitled = true;
+ layoutIdx=0;
+ renderIdx=0;
+ preview=true;
+ applyCairo=false;
+ previewFrm=NULL;
}
void MdiChild::newFile()
{
return QFileInfo(fullFileName).fileName();
}
+
+void MdiChild::loadPreview(QString fileName)
+{
+ if (!this->previewFrm)
+ {
+ previewFrm=new ImageViewer();
+ parentFrm->mdiArea->addSubWindow(previewFrm);
+ }
+ previewFrm->open(fileName);
+ previewFrm->show();
+
+}
+
#define MDICHILD_H
#include <QTextEdit>
+#include "imageviewer.h"
+class MainWindow;
class MdiChild : public QTextEdit
{
bool saveFile(const QString &fileName);
QString userFriendlyCurrentFile();
QString currentFile() { return curFile; }
-
+ int layoutIdx;
+ int renderIdx;
+ QString outputFile;
+ bool preview;
+ bool applyCairo;
+ QString attributes;
+ ImageViewer* previewFrm;
+ MainWindow* parentFrm;
+ void loadPreview(QString fileName);
protected:
void closeEvent(QCloseEvent *event);
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>1076</width>
+ <height>839</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>MainWindow</string>
+ </property>
+ <widget class="QWidget" name="centralwidget">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <property name="spacing">
+ <number>1</number>
+ </property>
+ <property name="margin">
+ <number>1</number>
+ </property>
+ </layout>
+ </widget>
+ <widget class="QMenuBar" name="menubar">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>1076</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="menuFile">
+ <property name="title">
+ <string>File</string>
+ </property>
+ <addaction name="actionNew"/>
+ <addaction name="actionOpen"/>
+ <addaction name="separator"/>
+ <addaction name="actionSave"/>
+ <addaction name="actionSave_As"/>
+ <addaction name="actionExport"/>
+ <addaction name="separator"/>
+ <addaction name="actionQuit"/>
+ </widget>
+ <widget class="QMenu" name="menuGraph">
+ <property name="title">
+ <string>Graph</string>
+ </property>
+ <addaction name="actionLayout_Settings"/>
+ <addaction name="actionLayout"/>
+ </widget>
+ <widget class="QMenu" name="menuView">
+ <property name="title">
+ <string>View</string>
+ </property>
+ <addaction name="actionZoomout"/>
+ <addaction name="separator"/>
+ <addaction name="actionSwitchto3d"/>
+ <addaction name="actionSwitch_to_Fisheye_Layout"/>
+ </widget>
+ <widget class="QMenu" name="menuPlugins">
+ <property name="title">
+ <string>Plugins</string>
+ </property>
+ <addaction name="actionPlugin_Manager"/>
+ </widget>
+ <widget class="QMenu" name="menuWindows">
+ <property name="title">
+ <string>Windows</string>
+ </property>
+ <addaction name="actionMaximize"/>
+ <addaction name="actionTile"/>
+ <addaction name="actionCascade"/>
+ </widget>
+ <widget class="QMenu" name="menuHelp">
+ <property name="title">
+ <string>Help</string>
+ </property>
+ <addaction name="actionSmyrna_Help"/>
+ <addaction name="actionAbout"/>
+ </widget>
+ <addaction name="menuFile"/>
+ <addaction name="menuGraph"/>
+ <addaction name="menuView"/>
+ <addaction name="menuPlugins"/>
+ <addaction name="menuWindows"/>
+ <addaction name="menuHelp"/>
+ </widget>
+ <widget class="QStatusBar" name="statusbar"/>
+ <widget class="QToolBar" name="toolBar">
+ <property name="minimumSize">
+ <size>
+ <width>240</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>toolBar</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ <addaction name="actionNew"/>
+ <addaction name="actionOpen"/>
+ <addaction name="actionSave"/>
+ <addaction name="actionSave_As"/>
+ <addaction name="actionExport"/>
+ </widget>
+ <widget class="QToolBar" name="toolBar_2">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>34</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>toolBar_2</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>LeftToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ <addaction name="actionFitInScreen"/>
+ <addaction name="actionZoomin"/>
+ <addaction name="actionZoomout"/>
+ <addaction name="actionSwitchto3d"/>
+ <addaction name="actionSwitch_to_Fisheye_Layout"/>
+ </widget>
+ <widget class="QToolBar" name="toolBar_3">
+ <property name="windowTitle">
+ <string>toolBar_3</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ <addaction name="actionGraph_Settings"/>
+ <addaction name="actionAttributes"/>
+ <addaction name="actionScripts"/>
+ <addaction name="actionLayouts"/>
+ <addaction name="actionStatics"/>
+ </widget>
+ <action name="actionNew">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/New.gif</normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/New.gif</iconset>
+ </property>
+ <property name="text">
+ <string>New</string>
+ </property>
+ <property name="toolTip">
+ <string>Create A New Graph</string>
+ </property>
+ </action>
+ <action name="actionOpen">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/OpenDoc.gif</normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/OpenDoc.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Open</string>
+ </property>
+ <property name="toolTip">
+ <string>Open An Existing Graph</string>
+ </property>
+ </action>
+ <action name="actionSave">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/SaveC.gif</normaloff>../../../../../Qt/4.7.0/src/gui/styles/images/SaveC.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Save</string>
+ </property>
+ <property name="toolTip">
+ <string>Save Active Graph</string>
+ </property>
+ </action>
+ <action name="actionSave_As">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../../../../../Qt/4.7.0/src/gui/styles/images/standardbutton-save-as-32.png</normaloff>../../../../../../Qt/4.7.0/src/gui/styles/images/standardbutton-save-as-32.png</iconset>
+ </property>
+ <property name="text">
+ <string>Save As...</string>
+ </property>
+ <property name="toolTip">
+ <string>Save Active Graph Under A New Name</string>
+ </property>
+ </action>
+ <action name="actionExport">
+ <property name="icon">
+ <iconset resource="../../smyrna-qt/resource.qrc">
+ <normaloff>:/images/images/export.gif</normaloff>:/images/images/export.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Export</string>
+ </property>
+ <property name="toolTip">
+ <string>Export Graph To Different File Formats</string>
+ </property>
+ </action>
+ <action name="actionQuit">
+ <property name="text">
+ <string>Quit</string>
+ </property>
+ <property name="toolTip">
+ <string>Quit Application</string>
+ </property>
+ </action>
+ <action name="actionGraph_Settings">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../../../../../Qt/4.7.0/src/gui/styles/images/desktop-32.png</normaloff>../../../../../../Qt/4.7.0/src/gui/styles/images/desktop-32.png</iconset>
+ </property>
+ <property name="text">
+ <string>Graph Settings...</string>
+ </property>
+ </action>
+ <action name="actionAttributes">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/Sheet.gif</normaloff>../../smyrna-qt/images/Sheet.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Attributes</string>
+ </property>
+ <property name="toolTip">
+ <string>View / Modify Graph Attributes</string>
+ </property>
+ </action>
+ <action name="actionScripts">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/scripts.gif</normaloff>../../smyrna-qt/images/scripts.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Scripts</string>
+ </property>
+ <property name="toolTip">
+ <string>Open Script Manager</string>
+ </property>
+ </action>
+ <action name="actionLayouts">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/InsInst.gif</normaloff>../../smyrna-qt/images/InsInst.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Layouts</string>
+ </property>
+ </action>
+ <action name="actionStatics">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/BarGraph.gif</normaloff>../../smyrna-qt/images/BarGraph.gif</iconset>
+ </property>
+ <property name="text">
+ <string>Stats</string>
+ </property>
+ </action>
+ <action name="actionFitInScreen">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/cursor-sizef.png</normaloff>../../smyrna-qt/images/cursor-sizef.png</iconset>
+ </property>
+ <property name="text">
+ <string>Fit In Screen</string>
+ </property>
+ </action>
+ <action name="actionZoomin">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/zoom-in-32.png</normaloff>../../smyrna-qt/images/zoom-in-32.png</iconset>
+ </property>
+ <property name="text">
+ <string>Zoom In</string>
+ </property>
+ </action>
+ <action name="actionZoomout">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/zoom-out-32.png</normaloff>../../smyrna-qt/images/zoom-out-32.png</iconset>
+ </property>
+ <property name="text">
+ <string>Zoom Out</string>
+ </property>
+ </action>
+ <action name="actionSwitchto3d">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/3D-view.png</normaloff>../../smyrna-qt/images/3D-view.png</iconset>
+ </property>
+ <property name="text">
+ <string>Switch To 3D</string>
+ </property>
+ </action>
+ <action name="actionSwitch_to_Fisheye_Layout">
+ <property name="icon">
+ <iconset>
+ <normaloff>../../smyrna-qt/images/fisheye.png</normaloff>../../smyrna-qt/images/fisheye.png</iconset>
+ </property>
+ <property name="text">
+ <string>Switch to Fisheye Layout</string>
+ </property>
+ </action>
+ <action name="actionPlugin_Manager">
+ <property name="text">
+ <string>Plugin Manager</string>
+ </property>
+ </action>
+ <action name="actionMaximize">
+ <property name="text">
+ <string>Maximize</string>
+ </property>
+ </action>
+ <action name="actionTile">
+ <property name="text">
+ <string>Tile</string>
+ </property>
+ </action>
+ <action name="actionCascade">
+ <property name="text">
+ <string>Cascade</string>
+ </property>
+ </action>
+ <action name="actionSmyrna_Help">
+ <property name="text">
+ <string>Smyrna Help...</string>
+ </property>
+ </action>
+ <action name="actionAbout">
+ <property name="text">
+ <string>About</string>
+ </property>
+ </action>
+ <action name="actionLayout_Settings">
+ <property name="text">
+ <string>Layout Settings</string>
+ </property>
+ </action>
+ <action name="actionLayout">
+ <property name="text">
+ <string>Layout</string>
+ </property>
+ </action>
+ </widget>
+ <resources>
+ <include location="../../smyrna-qt/resource.qrc"/>
+ </resources>
+ <connections>
+ <connection>
+ <sender>actionNew</sender>
+ <signal>activated()</signal>
+ <receiver>MainWindow</receiver>
+ <slot>slotNewGraph()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>537</x>
+ <y>419</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+ <slots>
+ <slot>slotNewGraph()</slot>
+ </slots>
+</ui>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Dialog</class>
+ <widget class="QDialog" name="Dialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>405</width>
+ <height>512</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Dialog</string>
+ </property>
+ <widget class="QFrame" name="frame">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>401</width>
+ <height>181</height>
+ </rect>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="lineWidth">
+ <number>2</number>
+ </property>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>381</width>
+ <height>161</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_5">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="minimumSize">
+ <size>
+ <width>120</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Layout Engine</string>
+ </property>
+ <property name="margin">
+ <number>5</number>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbLayout">
+ <property name="minimumSize">
+ <size>
+ <width>150</width>
+ <height>0</height>
+ </size>
+ </property>
+ <item>
+ <property name="text">
+ <string>dot</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>circo</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>fdp</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>neato</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>nop</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>nop1</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>nop2</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>osage</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>patchwork</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>sfdp</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>twopi</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QLabel" name="label_3">
+ <property name="minimumSize">
+ <size>
+ <width>120</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Output file Type</string>
+ </property>
+ <property name="margin">
+ <number>5</number>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbExtension">
+ <property name="minimumSize">
+ <size>
+ <width>150</width>
+ <height>0</height>
+ </size>
+ </property>
+ <item>
+ <property name="text">
+ <string>png</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>jpg</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>ps</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>dot</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QLabel" name="label_2">
+ <property name="minimumSize">
+ <size>
+ <width>120</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Output File Name</string>
+ </property>
+ <property name="margin">
+ <number>5</number>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="leOutput">
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbOut">
+ <property name="maximumSize">
+ <size>
+ <width>50</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_4"/>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_11">
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="chbPreview">
+ <property name="text">
+ <string>Preview Output File</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_6">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="chbCairo">
+ <property name="text">
+ <string>Apply Cairo Filters</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_5">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QFrame" name="frame_2">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>180</y>
+ <width>401</width>
+ <height>71</height>
+ </rect>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Raised</enum>
+ </property>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>0</y>
+ <width>381</width>
+ <height>62</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_7">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="1,2,1,2">
+ <item>
+ <widget class="QLabel" name="label_5">
+ <property name="text">
+ <string>Scope</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbScope">
+ <item>
+ <property name="text">
+ <string>graph</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>node</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>edge</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="label_6">
+ <property name="text">
+ <string>Name</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbName">
+ <item>
+ <property name="text">
+ <string>color</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Font</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>fontname</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>fontcolor</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>bgcolor</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
+ <item>
+ <widget class="QLabel" name="label_7">
+ <property name="minimumSize">
+ <size>
+ <width>40</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>47</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Value</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="leValue"/>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QPushButton" name="pbAdd">
+ <property name="minimumSize">
+ <size>
+ <width>75</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Add</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>13</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pushButton_4">
+ <property name="minimumSize">
+ <size>
+ <width>75</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Help</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QFrame" name="frame_3">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>250</y>
+ <width>401</width>
+ <height>261</height>
+ </rect>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Raised</enum>
+ </property>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>7</x>
+ <y>6</y>
+ <width>391</width>
+ <height>251</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_4">
+ <item>
+ <widget class="QTextEdit" name="teAttributes"/>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_10">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_8">
+ <item>
+ <widget class="QPushButton" name="pbNew">
+ <property name="minimumSize">
+ <size>
+ <width>40</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>clear</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbOpen">
+ <property name="minimumSize">
+ <size>
+ <width>40</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>load</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbSave">
+ <property name="minimumSize">
+ <size>
+ <width>40</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>save</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_9">
+ <item>
+ <widget class="QPushButton" name="pbCancel">
+ <property name="text">
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="btnOK">
+ <property name="text">
+ <string>OK</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <action name="actionCSettingsOK">
+ <property name="text">
+ <string>CSettingsOK</string>
+ </property>
+ </action>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>