diff options
author | Brian Helfrich <helfrich9000@gmail.com> | 2007-12-11 19:05:52 +0000 |
---|---|---|
committer | Brian Helfrich <helfrich9000@gmail.com> | 2007-12-11 19:05:52 +0000 |
commit | 2216fbcbfdfe44a006f684d6df3c3518f42b2d2d (patch) | |
tree | 50ebacabf60da654ce10b68424b83490fb780280 | |
parent | f8ce9ad7ed3c38a200b5fe5d0ec188aed497b063 (diff) | |
download | nanoengineer-theirix-2216fbcbfdfe44a006f684d6df3c3518f42b2d2d.tar.gz nanoengineer-theirix-2216fbcbfdfe44a006f684d6df3c3518f42b2d2d.zip |
Application stub.
-rw-r--r-- | cad/plugins/NanoVision-1/src/KDevelop/Doxyfile | 283 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/KDevelop/nv1.kdevelop | 216 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/KDevelop/nv1.pro | 5 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/KDevelop/templates/cpp | 1 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/KDevelop/templates/h | 1 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/application.qrc | 5 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/filenew.xpm | 216 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/main.cpp | 15 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/nv1.cpp | 154 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/nv1.h | 54 | ||||
-rw-r--r-- | cad/plugins/NanoVision-1/src/src.pro | 9 |
11 files changed, 959 insertions, 0 deletions
diff --git a/cad/plugins/NanoVision-1/src/KDevelop/Doxyfile b/cad/plugins/NanoVision-1/src/KDevelop/Doxyfile new file mode 100644 index 000000000..fb2548513 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/KDevelop/Doxyfile @@ -0,0 +1,283 @@ +# Doxyfile 1.5.1-KDevelop + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = nv1 +PROJECT_NUMBER = 0.1.0 +OUTPUT_DIRECTORY = +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = /home/bh/ +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +BUILTIN_STL_SUPPORT = NO +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = NO +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = /home/bh/11Nano/SVN-D/cad/plugins/NanoVision-1/src/KDevelop +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.d \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.py \ + *.C \ + *.CC \ + *.C++ \ + *.II \ + *.I++ \ + *.H \ + *.HH \ + *.H++ \ + *.CS \ + *.PHP \ + *.PHP3 \ + *.M \ + *.MM \ + *.PY \ + *.C \ + *.H \ + *.tlh \ + *.diff \ + *.patch \ + *.moc \ + *.xpm \ + *.dox +RECURSIVE = yes +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = * +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +REFERENCES_LINK_SOURCE = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = NO +TOC_EXPAND = NO +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = YES +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = yes +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = nv1.tag +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +CALLER_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 1000 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff --git a/cad/plugins/NanoVision-1/src/KDevelop/nv1.kdevelop b/cad/plugins/NanoVision-1/src/KDevelop/nv1.kdevelop new file mode 100644 index 000000000..c3250f833 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/KDevelop/nv1.kdevelop @@ -0,0 +1,216 @@ +<?xml version = '1.0'?> +<kdevelop> + <general> + <author>Brian Helfrich</author> + <email>helfrich@nanorex.com</email> + <version>0.1.0</version> + <projectmanagement>KDevTrollProject</projectmanagement> + <primarylanguage>C++</primarylanguage> + <keywords> + <keyword>Qt</keyword> + </keywords> + <versioncontrol>kdevsubversion</versioncontrol> + <ignoreparts/> + <projectname>nv1</projectname> + <projectdirectory>.</projectdirectory> + <absoluteprojectpath>false</absoluteprojectpath> + <description></description> + <defaultencoding></defaultencoding> + </general> + <kdevfileview> + <groups> + <group pattern="*.cpp;*.cxx;*.h" name="Sources" /> + <group pattern="*.ui" name="User Interface" /> + <group pattern="*.png" name="Icons" /> + <group pattern="*" name="Others" /> + <hidenonprojectfiles>false</hidenonprojectfiles> + <hidenonlocation>false</hidenonlocation> + </groups> + <tree> + <hidenonprojectfiles>false</hidenonprojectfiles> + <hidepatterns>*.o,*.lo,CVS</hidepatterns> + </tree> + </kdevfileview> + <kdevcppsupport> + <qt> + <used>true</used> + <version>4</version> + <includestyle>4</includestyle> + <designerintegration>ExternalDesigner</designerintegration> + <qmake>/usr/lib/qt4/bin/qmake</qmake> + <designer>/usr/lib/qt4/bin/designer</designer> + <root>/usr/lib/qt4</root> + <designerpluginpaths/> + </qt> + <references/> + <codecompletion> + <automaticCodeCompletion>false</automaticCodeCompletion> + <automaticArgumentsHint>true</automaticArgumentsHint> + <automaticHeaderCompletion>true</automaticHeaderCompletion> + <codeCompletionDelay>250</codeCompletionDelay> + <argumentsHintDelay>400</argumentsHintDelay> + <headerCompletionDelay>250</headerCompletionDelay> + <showOnlyAccessibleItems>false</showOnlyAccessibleItems> + <completionBoxItemOrder>0</completionBoxItemOrder> + <howEvaluationContextMenu>true</howEvaluationContextMenu> + <showCommentWithArgumentHint>true</showCommentWithArgumentHint> + <statusBarTypeEvaluation>false</statusBarTypeEvaluation> + <namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases> + <processPrimaryTypes>true</processPrimaryTypes> + <processFunctionArguments>false</processFunctionArguments> + <preProcessAllHeaders>false</preProcessAllHeaders> + <parseMissingHeadersExperimental>false</parseMissingHeadersExperimental> + <resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental> + <alwaysParseInBackground>true</alwaysParseInBackground> + <usePermanentCaching>true</usePermanentCaching> + <alwaysIncludeNamespaces>false</alwaysIncludeNamespaces> + <includePaths>.;</includePaths> + </codecompletion> + <creategettersetter> + <prefixGet></prefixGet> + <prefixSet>set</prefixSet> + <prefixVariable>m_,_</prefixVariable> + <parameterName>theValue</parameterName> + <inlineGet>true</inlineGet> + <inlineSet>true</inlineSet> + </creategettersetter> + <splitheadersource> + <enabled>false</enabled> + <synchronize>true</synchronize> + <orientation>Vertical</orientation> + </splitheadersource> + </kdevcppsupport> + <kdevdoctreeview> + <ignoretocs> + <toc>bash</toc> + <toc>bash_bugs</toc> + <toc>clanlib</toc> + <toc>fortran_bugs_gcc</toc> + <toc>gnome1</toc> + <toc>gnustep</toc> + <toc>gtk</toc> + <toc>gtk_bugs</toc> + <toc>haskell</toc> + <toc>haskell_bugs_ghc</toc> + <toc>java_bugs_gcc</toc> + <toc>java_bugs_sun</toc> + <toc>kde2book</toc> + <toc>opengl</toc> + <toc>pascal_bugs_fp</toc> + <toc>php</toc> + <toc>php_bugs</toc> + <toc>perl</toc> + <toc>perl_bugs</toc> + <toc>python</toc> + <toc>python_bugs</toc> + <toc>qt-kdev3</toc> + <toc>ruby</toc> + <toc>ruby_bugs</toc> + <toc>sdl</toc> + <toc>stl</toc> + <toc>sw</toc> + <toc>w3c-dom-level2-html</toc> + <toc>w3c-svg</toc> + <toc>w3c-uaag10</toc> + <toc>wxwidgets_bugs</toc> + </ignoretocs> + <ignoredoxygen> + <toc>KDE Libraries (Doxygen)</toc> + </ignoredoxygen> + </kdevdoctreeview> + <kdevdebugger> + <general> + <dbgshell></dbgshell> + <breakpoints/> + <programargs/> + <gdbpath>/usr/bin/gdb</gdbpath> + <breakonloadinglibs>true</breakonloadinglibs> + <separatetty>false</separatetty> + <floatingtoolbar>false</floatingtoolbar> + <configGdbScript></configGdbScript> + <runShellScript></runShellScript> + <runGdbScript></runGdbScript> + <raiseGDBOnStart>false</raiseGDBOnStart> + </general> + <display> + <staticmembers>false</staticmembers> + <demanglenames>true</demanglenames> + <outputradix>10</outputradix> + </display> + <breakpoints/> + </kdevdebugger> + <kdevtrollproject> + <run> + <mainprogram>/home/bh/11Nano/SVN-D/cad/plugins/NanoVision-1/src/KDevelop</mainprogram> + <programargs></programargs> + <directoryradio>executable</directoryradio> + <globaldebugarguments></globaldebugarguments> + <globalcwd>/home/bh/11Nano/SVN-D/cad/plugins/NanoVision-1/src/KDevelop</globalcwd> + <useglobalprogram>false</useglobalprogram> + <terminal>false</terminal> + <autocompile>false</autocompile> + <autoinstall>false</autoinstall> + <autokdesu>false</autokdesu> + <envvars/> + </run> + <general> + <activedir>..</activedir> + </general> + <make> + <abortonerror>true</abortonerror> + <runmultiplejobs>false</runmultiplejobs> + <numberofjobs>1</numberofjobs> + <dontact>false</dontact> + <makebin></makebin> + <prio>0</prio> + <envvars/> + </make> + <qmake> + <savebehaviour>2</savebehaviour> + <replacePaths>false</replacePaths> + <disableDefaultOpts>true</disableDefaultOpts> + <enableFilenamesOnly>false</enableFilenamesOnly> + </qmake> + </kdevtrollproject> + <workspace> + <openfiles/> + </workspace> + <kdevfilecreate> + <filetypes/> + <useglobaltypes> + <type ext="ui" /> + <type ext="qrc" /> + <type ext="cpp" /> + <type ext="h" /> + <type ext="ts" /> + </useglobaltypes> + </kdevfilecreate> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>nv1.tag</docurl> + <usermanualurl/> + </projectdoc> + </kdevdocumentation> + <substmap> + <APPNAME>nv1</APPNAME> + <APPNAMELC>nv1</APPNAMELC> + <APPNAMESC>Nv1</APPNAMESC> + <APPNAMEUC>NV1</APPNAMEUC> + <AUTHOR>Brian Helfrich</AUTHOR> + <DESIGNER>/usr/lib/qt4/bin/designer</DESIGNER> + <EMAIL>helfrich@nanorex.com</EMAIL> + <LICENSE>GPL</LICENSE> + <LICENSEFILE>COPYING</LICENSEFILE> + <QMAKE>/usr/lib/qt4/bin/qmake</QMAKE> + <VERSION>0.1.0</VERSION> + <YEAR>2007</YEAR> + <dest>/home/bh/11Nano/SVN-D/cad/plugins/NanoVision-1/src/KDevelop</dest> + </substmap> + <cppsupportpart> + <filetemplates> + <interfacesuffix>.h</interfacesuffix> + <implementationsuffix>.cpp</implementationsuffix> + </filetemplates> + </cppsupportpart> +</kdevelop> diff --git a/cad/plugins/NanoVision-1/src/KDevelop/nv1.pro b/cad/plugins/NanoVision-1/src/KDevelop/nv1.pro new file mode 100644 index 000000000..16f725511 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/KDevelop/nv1.pro @@ -0,0 +1,5 @@ +SUBDIRS += ../../src +TEMPLATE = subdirs +CONFIG += warn_on \ + qt \ + thread diff --git a/cad/plugins/NanoVision-1/src/KDevelop/templates/cpp b/cad/plugins/NanoVision-1/src/KDevelop/templates/cpp new file mode 100644 index 000000000..19e06ebb7 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/KDevelop/templates/cpp @@ -0,0 +1 @@ +// Copyright 2007 Nanorex, Inc. See LICENSE file for details. diff --git a/cad/plugins/NanoVision-1/src/KDevelop/templates/h b/cad/plugins/NanoVision-1/src/KDevelop/templates/h new file mode 100644 index 000000000..19e06ebb7 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/KDevelop/templates/h @@ -0,0 +1 @@ +// Copyright 2007 Nanorex, Inc. See LICENSE file for details. diff --git a/cad/plugins/NanoVision-1/src/application.qrc b/cad/plugins/NanoVision-1/src/application.qrc new file mode 100644 index 000000000..da5c5e113 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/application.qrc @@ -0,0 +1,5 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource> + <file>fileopen.xpm</file> +</qresource> +</RCC> diff --git a/cad/plugins/NanoVision-1/src/filenew.xpm b/cad/plugins/NanoVision-1/src/filenew.xpm new file mode 100644 index 000000000..85efceb22 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/filenew.xpm @@ -0,0 +1,216 @@ +/* XPM */ +static char *filenew[] = { +/* columns rows colors chars-per-pixel */ +"32 32 178 2", +" c black", +". c #191000", +"X c #221700", +"o c #452E00", +"O c #4A3100", +"+ c #4E3400", +"@ c #553800", +"# c #604000", +"$ c #6A4600", +"% c #6D4800", +"& c #704A00", +"* c #724C00", +"= c #744C00", +"- c #764E00", +"; c #785000", +": c #805500", +"> c #815500", +", c #835700", +"< c #865900", +"1 c #875A00", +"2 c #8A5B00", +"3 c #8A5C00", +"4 c #8B5C00", +"5 c #8C5D00", +"6 c #8D5D00", +"7 c #8F5E00", +"8 c #805911", +"9 c #905F00", +"0 c #906000", +"q c #926000", +"w c #946200", +"e c #956300", +"r c #966400", +"t c #976400", +"y c #956913", +"u c #926C22", +"i c #9B7732", +"p c #B18D48", +"a c #B28E49", +"s c #B4904A", +"d c #BAA373", +"f c #A1A195", +"g c #ABAB9F", +"h c #ADADAB", +"j c #AFAFAB", +"k c #B3B3A6", +"l c #BCBCB8", +"z c #BFBFBC", +"x c #CBB489", +"c c #CBB58A", +"v c #CDB78B", +"b c #CAB891", +"n c #C9BB9E", +"m c #CEBEA2", +"M c #C6C6BC", +"N c #D9C8A8", +"B c #E8E1BA", +"V c #E8E1BB", +"C c #FEFFA1", +"Z c #FFFFA0", +"A c #FEFFA3", +"S c #FEFFA4", +"D c #FEFFA6", +"F c #FEFFA8", +"G c #FEFFA9", +"H c #FFFFA8", +"J c #FEFFAA", +"K c #FEFFAB", +"L c #FFFFAB", +"P c #FEFFAC", +"I c #FFFFAC", +"U c #FEFFAE", +"Y c #FEFFAF", +"T c #FEFFB0", +"R c #FEFFB1", +"E c #FFFFB0", +"W c #FEFFB4", +"Q c #FEFFB5", +"! c #FFFFB4", +"~ c #FEFFB8", +"^ c #FEFFB9", +"/ c #FFFFB8", +"( c #FFFFB9", +") c #FEFFBB", +"_ c #FFFFBA", +"` c #FEFFBD", +"' c #FFFFBD", +"] c #FEFFBE", +"[ c #FFFFBE", +"{ c #C8C8C1", +"} c #CACAC4", +"| c #CBCBC6", +" . c #DBD2C1", +".. c #DEDFCF", +"X. c #D4D4D1", +"o. c #E1D5C1", +"O. c #E3D9C3", +"+. c #E5DCCC", +"@. c #E8E8D3", +"#. c #ECECD7", +"$. c #F0EBDA", +"%. c #FEFFC2", +"&. c #FEFFC3", +"*. c #FFFFC2", +"=. c #FEFFC7", +"-. c #FFFFC7", +";. c #FEFFCB", +":. c #FEFFCC", +">. c #FFFFCC", +",. c #FEFFCE", +"<. c #FEFFD0", +"1. c #FEFFD1", +"2. c #FFFFD0", +"3. c #FFFFD1", +"4. c #FFFFD3", +"5. c #FEFFD5", +"6. c #FFFFD5", +"7. c #FEFFD6", +"8. c #FEFFD7", +"9. c #FFFFD6", +"0. c #FFFFD8", +"q. c #FEFFDA", +"w. c #FFFFDA", +"e. c #FFFFDB", +"r. c #FFFFDC", +"t. c #FEFFDE", +"y. c #FEFFDF", +"u. c #FFFFDE", +"i. c #FFFFDF", +"p. c #E9E9E7", +"a. c #F3F3E9", +"s. c #F3F3EB", +"d. c #F5F5E8", +"f. c #F8F8E3", +"g. c #FEFFE0", +"h. c LightYellow", +"j. c #FFFFE1", +"k. c #FEFFE3", +"l. c #FFFFE3", +"z. c #FDFEE7", +"x. c #FEFFE4", +"c. c #FEFFE5", +"v. c #FFFFE4", +"b. c #FBFBE9", +"n. c #FEFFE8", +"m. c #FFFFE8", +"M. c #FFFFE9", +"N. c #FFFFEA", +"B. c #FEFFEC", +"V. c #FEFFED", +"C. c #FFFFEC", +"Z. c #FFFFED", +"A. c #FEFFEF", +"S. c #F4F4F0", +"D. c #F4F4F3", +"F. c #F5F5F4", +"G. c #F8F8F6", +"H. c ivory", +"J. c #FFFFF1", +"K. c #FEFFF3", +"L. c #FFFFF3", +"P. c #FEFFF4", +"I. c #FFFFF4", +"U. c #FEFFF7", +"Y. c #FFFFF6", +"T. c #FFFFF7", +"R. c #FBFBFB", +"E. c #FFFFF8", +"W. c #FFFFF9", +"Q. c #FFFFFA", +"!. c #FFFFFB", +"~. c gray99", +"^. c #FEFFFD", +"/. c #FFFFFC", +"(. c #FFFFFD", +"). c #FFFFFE", +"_. c gray100", +"`. c None", +/* pixels */ +"`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.`.w 2 1 w 4 4 4 6 w 9 6 - `.`.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.r s p p c c c c N O.+.o.y # `.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.r ).).).).).).).).F.p.). .& o `.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w ).E.).E.).E.E.E.S.X.).R.n $ + `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w E.Y.Y.E.Y.E.E.E.a.| ).).D.m % `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w E.Y.Y.J.Y.J.Y.Y.a.| ).).).D.> `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w Y.J.J.J.J.J.J.J.a.M l h h { ; `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w Y.B.B.B.N.N.B.B.b...k f h } ; `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w J.N.N.N.N.N.N.N.l.f.#.@.#.a.> `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w J.l.l.l.l.l.l.l.l.l.l.l.l.J.> `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w J.r.l.l.r.l.r.l.r.l.r.l.r.J.1 `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w B.r.r.q.q.q.q.q.q.r.q.q.r.B.> `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w N.5.5.5.5.q.5.5.5.5.5.5.5.B., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w N.<.<.<.<.<.<.<.5.<.<.<.<.N., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w l.,.;.;.;.,.;.,.;.,.;.;.;.l., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w l.-.-.-.-.-.-.;.-.-.-.-.;.l.> `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w l.-.%.%.%.%.%.%.%.%.%.%.%.l., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w r.' ' ' ' ' ) ' ' ' ' ' ' r., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w r.) ) W ) ) ) ) ) ) W ) ) q., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w q.W W W W W W W W W W W W q., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w 5.Y Y W Y Y Y Y Y Y Y Y Y 5., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w 5.J J J Y J Y Y J Y J J Y q., `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w 5.J J D J J D J D J W ) ,.$.- `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w <.Z D D Z D J Y ' ,.B b i - O `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w <.Z Z Z Y ) <.B d u & @ X `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w ,.J ) ,.B d y & o . `.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.w Y.V d u & o . `.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`.1 4 & o . `.`.`.`.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`. `.`.`.`.`.`.`.`.`.`.`.`.`.`.", +"`.`.`.`.`.`.`.`. `.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`." +}; diff --git a/cad/plugins/NanoVision-1/src/main.cpp b/cad/plugins/NanoVision-1/src/main.cpp new file mode 100644 index 000000000..5e9ea2304 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/main.cpp @@ -0,0 +1,15 @@ +// Copyright 2007 Nanorex, Inc. See LICENSE file for details. + + +#include <QApplication> +#include "nv1.h" + +int main(int argc, char *argv[]) +{ + Q_INIT_RESOURCE(application); + QApplication app(argc, argv); + nv1 * mw = new nv1(); + mw->show(); + return app.exec(); +} + diff --git a/cad/plugins/NanoVision-1/src/nv1.cpp b/cad/plugins/NanoVision-1/src/nv1.cpp new file mode 100644 index 000000000..7c96c50cd --- /dev/null +++ b/cad/plugins/NanoVision-1/src/nv1.cpp @@ -0,0 +1,154 @@ +// Copyright 2007 Nanorex, Inc. See LICENSE file for details. + + +#include "nv1.h" + + +/* CONSTRUCTOR */ +nv1::nv1() { + QWidget* mdiArea = new QWidget(); + setCentralWidget(mdiArea); + + createActions(); + createMenus(); + createToolBars(); + createStatusBar(); + + readSettings(); + + setCurrentFile(""); +} + + +/* DESTRUCTOR */ +nv1::~nv1() { +} + + +/* FUNCTION: closeEvent */ +void nv1::closeEvent(QCloseEvent *event) { + writeSettings(); + event->accept(); +} + + +/* FUNCTION: open */ +void nv1::open() { + QString fileName = QFileDialog::getOpenFileName(this); + if (!fileName.isEmpty()) + loadFile(fileName); +} + + +/* FUNCTION: about */ +void nv1::about() { + QMessageBox::about(this, + tr("About NanoVision-1"), + tr("Nanorex NanoVision-1 0.1.0\n" + "Copyright 2007 Nanorex, Inc.\n" + "See LICENSE file for details.")); +} + + +/* FUNCTION: createActions */ +void nv1::createActions() { + + openAction = new QAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this); + openAction->setShortcut(tr("Ctrl+O")); + openAction->setStatusTip(tr("Open an existing file")); + connect(openAction, SIGNAL(triggered()), this, SLOT(open())); + + exitAction = new QAction(tr("E&xit"), this); + exitAction->setShortcut(tr("Ctrl+Q")); + exitAction->setStatusTip(tr("Exit NanoVision-1")); + connect(exitAction, SIGNAL(triggered()), this, SLOT(close())); + + aboutAction = new QAction(tr("&About"), this); + aboutAction->setStatusTip(tr("Show NanoVision-1's About box")); + connect(aboutAction, SIGNAL(triggered()), this, SLOT(about())); +} + + +/* FUNCTION: createMenus */ +void nv1::createMenus() { + fileMenu = menuBar()->addMenu(tr("&File")); + fileMenu->addAction(openAction); + fileMenu->addSeparator(); + fileMenu->addAction(exitAction); + + menuBar()->addSeparator(); + + helpMenu = menuBar()->addMenu(tr("&Help")); + helpMenu->addAction(aboutAction); +} + + +/* FUNCTION: createToolBars */ +void nv1::createToolBars() { + fileToolBar = addToolBar(tr("File")); + fileToolBar->addAction(openAction); +} + + +/* FUNCTION: createStatusBar */ +void nv1::createStatusBar() { + statusBar()->showMessage(tr("Ready")); +} + + +/* FUNCTION: readSettings */ +void nv1::readSettings() { + QSettings settings("Nanorex", "NanoVision-1"); + QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint(); + QSize size = settings.value("size", QSize(400, 400)).toSize(); + resize(size); + move(pos); +} + + +/* FUNCTION: writeSettings */ +void nv1::writeSettings() { + QSettings settings("Nanorex", "NanoVision-1"); + settings.setValue("pos", pos()); + settings.setValue("size", size()); +} + + +/* FUNCTION: loadFile */ +void nv1::loadFile(const QString &fileName) { + QFile file(fileName); + if (!file.open(QFile::ReadOnly | QFile::Text)) { + QMessageBox::warning(this, tr("NanoVision-1"), + tr("Cannot read file %1:\n%2.") + .arg(fileName) + .arg(file.errorString())); + return; + } + + QApplication::setOverrideCursor(Qt::WaitCursor); + // Read file + QApplication::restoreOverrideCursor(); + + setCurrentFile(fileName); + statusBar()->showMessage(tr("File loaded"), 2000); +} + + +/* FUNCTION: setCurrentFile */ +void nv1::setCurrentFile(const QString &fileName) { + curFile = fileName; + + QString shownName; + if (curFile.isEmpty()) + shownName = ""; + else + shownName = strippedName(curFile); + + setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("NanoVision-1"))); +} + + +/* FUNCTION: strippedName */ +QString nv1::strippedName(const QString &fullFileName) { + return QFileInfo(fullFileName).fileName(); +} diff --git a/cad/plugins/NanoVision-1/src/nv1.h b/cad/plugins/NanoVision-1/src/nv1.h new file mode 100644 index 000000000..18f8070e0 --- /dev/null +++ b/cad/plugins/NanoVision-1/src/nv1.h @@ -0,0 +1,54 @@ +// Copyright 2007 Nanorex, Inc. See LICENSE file for details. + + +#ifndef NV1_H +#define NV1_H + +#include <QtGui> +#include <QMainWindow> +#include <QFileDialog> +#include <QCloseEvent> +//#include <QMdiArea> + +//class QAction; +//class QMenu; + + +/* CLASS: nv1 */ +class nv1 : public QMainWindow { + Q_OBJECT + +public: + nv1(); + ~nv1(); + +protected: + void closeEvent (QCloseEvent *event); + +private slots: + void open(); + void about(); + +private: + void createActions(); + void createMenus(); + void createToolBars(); + void createStatusBar(); + void readSettings(); + void writeSettings(); + void loadFile (const QString &fileName); + void setCurrentFile ( const QString &fileName ); + QString strippedName ( const QString &fullFileName ); + + QString curFile; + + QMenu *fileMenu; + QMenu *helpMenu; + QToolBar *fileToolBar; + + QAction *openAction; + QAction *exitAction; + QAction *aboutAction; +}; + +#endif diff --git a/cad/plugins/NanoVision-1/src/src.pro b/cad/plugins/NanoVision-1/src/src.pro new file mode 100644 index 000000000..c2f2d428b --- /dev/null +++ b/cad/plugins/NanoVision-1/src/src.pro @@ -0,0 +1,9 @@ +SOURCES += nv1.cpp \ + main.cpp +HEADERS += nv1.h +TEMPLATE = app +CONFIG += warn_on \ + thread \ + qt +TARGET = ../bin/nv1 +RESOURCES = application.qrc |