python_code stringlengths 0 992k | repo_name stringlengths 8 46 | file_path stringlengths 5 162 |
|---|---|---|
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
unfinished.
"""
from basic import *
from basic import _self
# ==
class ImageChunk(InstanceOrExpr, DelegatingMixin):
"""
ImageChunk(widget2d) draws widget2d normally, but also captures an image to use
for faster redrawing. In som... | NanoCAD-master | cad/src/exprs/scratch/ImageChunk.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
random point in n-dim-simplex, as n+1 vertex weights:
- random point in n-cube
- sort the coords
- replace each one, and a final added 1, by itself minus the prior one.
evidence: each ordering of cube coords corrs to a simplicial region ... | NanoCAD-master | cad/src/exprs/scratch/Random.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
ArgList.py
$Id$
scratch file to be merged into attr_decl_macros.py and instance_helpers.py
ABANDONED (tentatively) on 070321 -- replaced by a new def ArgList in attr_decl_macros.py, and support features in ExprsMeta.py.
"""
def ArgList(type_expr):
... | NanoCAD-master | cad/src/exprs/scratch/ArgList.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
lambda_Expr.py
$Id$
scratch so far, coming out of discussion of a better syntax for testexpr_19f,
but it's likely to be made real.
"""
if 0: # excerpt from test.py
# later 070106: (syntax is a kluge; see also testexpr_26)
testexpr_19f = eval_... | NanoCAD-master | cad/src/exprs/scratch/lambda_Expr.py |
### THIS FILE IS NOT YET IN CVS
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
#e above:
# code for a formula expr, to eval it in an env and object, to a definite value (number or widget or widget expr),
# which no longer depends on env (since nothing in env is symbolic)
# but doing this might wel... | NanoCAD-master | cad/src/exprs/scratch/unclassified.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
code file on selection or region selection?
idea: a simple semantics for region selection,
if "touches all of the drawn stuff" or "any part of it" is too hard
(which it is, for most things except simple shapes),
is "touches all of (or any of) the ... | NanoCAD-master | cad/src/exprs/scratch/selection-scratch.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
demo_drag_2_scratch.py
$Id$
scratch file about how to rewrite demo_drag in a higher level way
"""
Vertex = DataType("Vertex",
Arg("pos", Position), # relative to what?
Option("guide", ModelObject)
)
# th... | NanoCAD-master | cad/src/exprs/scratch/demo_drag_2_scratch.py |
some proto is in scratch/NewInval, not sure if it's latest
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
| NanoCAD-master | cad/src/exprs/scratch/displists.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
SimpleInsertCommand(Cylinder) -> something to put in a toolbar which can insert a Cylinder
it queries Cylinder for its args etc, as name/type pairs
Cylinder(__fakeopt__ = True)._e_query_args() -> list of Arg etc exprs
for example, Arg(type, ... | NanoCAD-master | cad/src/exprs/scratch/editable-scratch.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
from exprs.basic import *
# stuff to set up the env... see what testdraw does
# a place to make instances, new ones have totally fresh state, but only keep one, or let caller supply index...
# ===
def find_or_make(cctype, mode):
"R... | NanoCAD-master | cad/src/exprs/scratch/cc_scratch.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
demo_create_shapes.py -- some demo commands for creating shapes in the model.
$Id$
"""
from demo_draw_on_surface import * # be really lazy for now -- but don't forget the _private names
#e PLAN: do more of the kind of thing now done in demo_draw_on_su... | NanoCAD-master | cad/src/exprs/scratch/demo_create_shapes.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
api_enforcement.py - utilities for API enforcement (experimental).
Provides def or class privateMethod, etc.
@author: Will
@version: $Id$
@copyright: 2006-2007 Nanorex, Inc. See LICENSE file for details.
History:
Experimental code by Will. May ... | NanoCAD-master | cad/src/scratch/api_enforcement.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
General directory view widget. Based on Qt/PyQt example dirview.py,
with modifications for use in MMKit.
Note: in Qt3 this was used in MMKit.py, but in Qt4 it's not used there.
$Id$
This file contains some code from the Qt/PyQt example dirview.py... | NanoCAD-master | cad/src/scratch/DirView.py |
"""
Prerequisite_ReferencePlaneIsSelected.py (scratch file)
a prerequisite for a command, which requires that a reference plane is selected.
$Id$
what is required?
a ref plane or equiv is selected
write some code to look at selection and determine that
given the model or model-with-selection
(an assy object?)
... | NanoCAD-master | cad/src/scratch/Prerequisite_ReferencePlaneIsSelected.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
Drawable.py - shared properties of all drawable objects
$Id$
[not yet used]
"""
from graphics.drawables.Selobj import Selobj_API
class Drawable(Selobj_API):
"""
Will wrote:
> To implement my Bauble class, I need to go into every mode... | NanoCAD-master | cad/src/scratch/Drawable.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
TransformState.py -- mutable transform classes, shared by TransformNodes
NOT YET USED as of 090204... declared a scratch file, bruce 090225;
see comments in TransformNode docstring for why.
@author: Bruce
@version: $Id$
@copyright: 2009 Nanorex, Inc. ... | NanoCAD-master | cad/src/scratch/TransformState.py |
#!/usr/bin/env python
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
this is just some drag & drop example code -- it's not part of our product.
note -- it runs in Qt3 but has not been ported to Qt4.
it comes with a test file 'butterfly.png' which needs to be next to it for it to work.
it's ... | NanoCAD-master | cad/src/scratch/canvas-b-3.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
TransformNode.py -- mutable transform classes, shared by TransformNodes
NOT YET USED as of 090204... declared obsolete as of bruce 090225:
- much of the specific code is obsolete, since we abandoned the idea of a
number-capped TransformControl object... | NanoCAD-master | cad/src/scratch/TransformNode.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
'''
buckyball.py -- Buckyball generator, for putting endcaps on nanotubes
The order of a buckyball is how many hexagons go between the
pentagons. This code fails for order 6 and higher, something in the
edges() method.
Orders 3 and 4 look like this:
h... | NanoCAD-master | cad/src/scratch/buckyball.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
2008-09-09: Moved common code from Rotarymotor and
LinearMotor_EditCommand to here.
TODO:
"""
from command_support.EditCommand import EditCom... | NanoCAD-master | cad/src/command_support/Motor_EditCommand.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
GeneratorController.py - subclass of GeneratorBaseClass, which can control
the interaction between a dialog and a plugin_generator
(supplied as constructor arguments)
@author: Bruce
@version: $Id$
@copyright: 2006-2007 Nanorex, Inc. See LICENSE fi... | NanoCAD-master | cad/src/command_support/GeneratorController.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
MotorPropertyManager.py
@author: Ninad
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
from PyQt4.Qt import QColorDialog
from PM.PM_GroupBox import PM_GroupBox
from PM.PM_SelectionListWidget import PM_S... | NanoCAD-master | cad/src/command_support/MotorPropertyManager.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
Command.py -- provides class basicCommand, superclass for commands
[see also baseCommand.py, once ongoing refactoring is completed]
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
bruce 071009 split mode... | NanoCAD-master | cad/src/command_support/Command.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
GraphicsMode_API.py -- API class for whatever is used as a GraphicsMode
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Bruce 071028 split this out of GraphicsMode.py, in which it was
called anyGraphicsM... | NanoCAD-master | cad/src/command_support/GraphicsMode_API.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
This is a superclass for the property managers of various command objects
@author: Ninad
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
2008-10-01 : Created this to make it a common superclass of all comm... | NanoCAD-master | cad/src/command_support/Command_PropertyManager.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
ParameterDialog.py -- generate dialogs for editing sets of parameters,
from descriptions of the parameters and of how to edit them,
encoded as data which can (in principle) be manipulated at a high level in python,
or which can be parsed from easily... | NanoCAD-master | cad/src/command_support/ParameterDialog.py |
NanoCAD-master | cad/src/command_support/__init__.py | |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
modes.py -- provides basicMode, the superclass for old modes
which haven't yet been split into subclasses of Command and GraphicsMode.
@author: Bruce
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
(For ... | NanoCAD-master | cad/src/command_support/modes.py |
# -*- coding: utf-8 -*-
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
# Form implementation generated from reading ui file 'JigPropDialog.ui'
#
# Created: Wed Sep 20 07:56:23 2006
# by: PyQt4 UI code generator 4.0.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import Q... | NanoCAD-master | cad/src/command_support/JigPropDialog.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
2008-05-13 Created
TODO: 2008-05-13
This is an initial implementation subjected to heavy revision. Initial purpose
is just to RESIZE given structures (o... | NanoCAD-master | cad/src/command_support/EditCommand_StructureList.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
JigProp.py
$Id$
History: Original code from GroundProps.py and cleaned up by Mark.
"""
__author__ = "Mark"
from PyQt4.Qt import QDialog
from PyQt4.Qt import SIGNAL
from PyQt4.Qt import QColorDialog
from utilities.icon_utilities import geticon
... | NanoCAD-master | cad/src/command_support/JigProp.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
GraphicsMode.py -- base class for "graphics modes" (display and GLPane event handling)
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
bruce 071009 split modes.py into Command.py and GraphicsMode.py,
lea... | NanoCAD-master | cad/src/command_support/GraphicsMode.py |
# Copyright 2006-2008 Nanorex, Inc. See LICENSE file for details.
"""
GeneratorBaseClass.py -- DEPRECATED base class for generator dialogs
or their controllers, which supplies ok/cancel/preview logic and some
other common behavior. Sometimes abbreviated as GBC in docstrings,
comments, or identifier prefixes.
@author:... | NanoCAD-master | cad/src/command_support/GeneratorBaseClass.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
generator_button_images.py -- A few hardcoded images useful in generator dialogs.
(These should probably be replaced with files in cad/images. Or, they might
become obsolete sometime soon.)
@author: Mark
@version: $Id$
@copyright: 2006-2007 Nanore... | NanoCAD-master | cad/src/command_support/generator_button_images.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
DnaOrCnt_PropertyManager.py
DnaOrCnt_PropertyManager class provides common functionality (e.g. groupboxes
etc) to the subclasses that define various Dna and Cnt (Carbon nanotube)
Property Managers.
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LIC... | NanoCAD-master | cad/src/command_support/DnaOrCnt_PropertyManager.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
This is a superclass for the property managers of various objects that use
EditCommand for generating the object. e.g. PlanePropertyManager inherits
fr... | NanoCAD-master | cad/src/command_support/EditCommand_PM.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
EditCommand.py
@author: Bruce Smith, Mark Sims, Ninad Sathaye, Will Ware
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
History:
- Originally created as 'GeometryGeneratorBaseClass'. It shared common code with
G... | NanoCAD-master | cad/src/command_support/EditCommand.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
baseCommand.py - base class for command objects on a command sequencer stack
@author: Bruce
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
"""
from utilities.debug import print_compact_traceback
_pct = print_compact_traceb... | NanoCAD-master | cad/src/command_support/baseCommand.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
gpl_only.py
This module contains code which is only distributed in the GPL version,
since providing this code might violate the commercial-version licenses of
Qt and/or PyQt. Specifically (as I understand it -- bruce 041217), those
licenses require... | NanoCAD-master | cad/src/platform_dependent/gpl_only.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
Paths.py -- platform dependant filename paths
@author: Bruce, Mark, maybe others
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
"""
import sys
import os
def get_default_plugin_path(win32_path, darwin_path, linux_path):
... | NanoCAD-master | cad/src/platform_dependent/Paths.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
PlatformDependent.py -- module for platform-specific utilities and constants.
Also includes various code that might conceivably vary by platform,
but mainly is here since it had no better place to live. In fact, by 060106
most of its code is like t... | NanoCAD-master | cad/src/platform_dependent/PlatformDependent.py |
NanoCAD-master | cad/src/platform_dependent/__init__.py | |
# Copyright 2005-2008 Nanorex, Inc. See LICENSE file for details.
"""
bond_constants.py -- constants and simple functions for use with class Bond
(which can be defined without importing that class).
@author: Bruce
@version: $Id$
@copyright: 2005-2008 Nanorex, Inc. See LICENSE file for details.
History:
050429 - St... | NanoCAD-master | cad/src/model/bond_constants.py |
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
pi_bond_sp_chain.py -- geometric info for individual pi bonds, or chains
of them connected by sp atoms.
@author: bruce
@version: $Id$
@copyright: 2005-2007 Nanorex, Inc. See LICENSE file for details.
Note, 070414: it turns out a lot of the same c... | NanoCAD-master | cad/src/model/pi_bond_sp_chain.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
PovrayScene.py - The POV-Ray Scene class.
@author: Mark
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
mark 060601 - Created.
"""
import os
from PyQt4.Qt import QDialog
from PyQt4.Qt import QPixmap
fro... | NanoCAD-master | cad/src/model/PovrayScene.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
elements_data.py -- data for periodic table of elements
(for chemical elements and Singlet -- see other files for PAM pseudoatoms)
@author: Josh
@version: $Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE file for details.
History:
Initially ... | NanoCAD-master | cad/src/model/elements_data.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
Comment.py - The Comment class.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
mark 060530 - Comment class moved here from Utility.py.
bruce 071019 - moved mmp reading code for Comment into this file;
... | NanoCAD-master | cad/src/model/Comment.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
Elem.py -- provides class Elem, which represents one element
in NE1's periodic table.
Note that some Elem instances are used only with "pseudoatoms" or
bondpoints, whereas others correspond to actual chemical elements.
@author: Josh
@version: $Id$... | NanoCAD-master | cad/src/model/Elem.py |
# Copyright 2006-2009 Nanorex, Inc. See LICENSE file for details.
"""
BorrowerChunk.py -- a chunk which temporarily borrows the atoms
from another one, for an experimental optimization of display lists
when moving subsets of the atoms of a chunk.
Not used by default. Deprecated, since some more principled and
more ge... | NanoCAD-master | cad/src/model/BorrowerChunk.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
elements_data_other.py -- data for miscellaneous kinds of elements
which are neither chemical nor PAM pseudoatoms
(for example, virtual site indicators)
@author: Bruce
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
See als... | NanoCAD-master | cad/src/model/elements_data_other.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
elements.py -- elements, periodic table, element display prefs
@author: Josh
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Initially by Josh as part of chem.py.
Bruce 041221 split this module out of c... | NanoCAD-master | cad/src/model/elements.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
jigs_measurements.py -- Classes for measurement jigs.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
060324 wware - with a debug pref, we can now get a drawing style for
the distance measuring jig that ... | NanoCAD-master | cad/src/model/jigs_measurements.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2007 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
Ninad 20070703 : Created
Ninad 20070706 : Added support for resizing a poly-line.
"""
import foundation.env as env
from OpenGL.GL import glPushMatrix
... | NanoCAD-master | cad/src/model/Line.py |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
Chunk_Dna_methods.py -- dna-related methods for class Chunk
@author: Bruce, Ninad
@version: $Id$
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
History:
Bruce 090115 split this out of class Chunk. (Not long or old enough
for s... | NanoCAD-master | cad/src/model/Chunk_Dna_methods.py |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
PAM_Atom_methods.py - methods for class Atom, which are only meant
to be called on PAM Atoms.
@author: Bruce, Mark, Ninad
@version: $Id$
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
History:
bruce 080327 split out of chem.py... | NanoCAD-master | cad/src/model/PAM_Atom_methods.py |
NanoCAD-master | cad/src/model/__init__.py | |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
chunk.py -- provides class Chunk [formerly known as class molecule],
for a bunch of atoms (not necessarily bonded together) which can be moved
and selected as a unit.
@author: Josh, Bruce, others
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. ... | NanoCAD-master | cad/src/model/chunk.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
virtual_site_indicators.py - graphical indicators related to virtual sites
(as used in the current GROMACS implementation of the PAM5 force field);
presently used only to visualize such sites for debugging,
not as part of their implementation for mi... | NanoCAD-master | cad/src/model/virtual_site_indicators.py |
# Copyright 2005-2008 Nanorex, Inc. See LICENSE file for details.
"""
global_model_changedicts.py - global changedicts needed by master_model_updater
or the specific update functions it calls. These are public for access
and modification by those update functions, and for additions by all
low-level model-modification ... | NanoCAD-master | cad/src/model/global_model_changedicts.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
Part_drawing_frame.py -- classes for use as a Part's drawing_frame
@author: Bruce
@version: $Id$
@copyright: 2009 Nanorex, Inc. See LICENSE file for details.
History:
Bruce 090218 wrote this in part.py, then split into its own file,
then added featur... | NanoCAD-master | cad/src/model/Part_drawing_frame.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
ReferenceGeometry.py - Jig subclass used as superclass for Plane, Line, etc
@author: Ninad
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
History:
ninad 20070521 : Created
ninad 20070601: Implemented DragHandler... | NanoCAD-master | cad/src/model/ReferenceGeometry.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
chem.py -- class Atom, and related code. An instance of Atom represents one
atom, pseudoatom, or bondpoint in 3d space, with a list of bonds and
jigs, and an optional display mode.
@author: Josh
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. S... | NanoCAD-master | cad/src/model/chem.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
bonds.py -- class Bond, for any supported type of chemical bond between
two atoms (one of which might be a "singlet" to represent an "open bond"
in the UI), and related code
@author: Josh
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICE... | NanoCAD-master | cad/src/model/bonds.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
assembly.py -- provides class Assembly, for everything stored in one mmp file,
including one main part and zero or more clipboard items; see also part.py.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
==
About ... | NanoCAD-master | cad/src/model/assembly.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
jigs_motors.py -- Classes for motors.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
050927. Split off Motor jigs from jigs.py into this file. Mark
"""
# imports from math vs. Numeric as discovered fr... | NanoCAD-master | cad/src/model/jigs_motors.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
atomtypes.py -- AtomType object, knows about one bonding pattern for one element.
@author: Josh, Bruce
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Bruce 050510 moved some code (originally by Josh)
ou... | NanoCAD-master | cad/src/model/atomtypes.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
NamedView.py -- a named view (including coordinate system for viewing)
@author: Mark
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark wrote this in Utility.py.
bruce 071026 moved it from Utility int... | NanoCAD-master | cad/src/model/NamedView.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
Chunk_mmp_methods.py -- Chunk mixin for methods related to mmp format
(reading or writing)
@author: Josh, Bruce
@version; $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Written over several years as part of chunk... | NanoCAD-master | cad/src/model/Chunk_mmp_methods.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
part.py -- class Part, for all chunks and jigs in a single physical space,
together with their selection state and grouping structure (shown in the
model tree).
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
see ... | NanoCAD-master | cad/src/model/part.py |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
History:
ninad 2007-05-21: Created.
ninad 2007-06-03: Implemented Plane Property Manager
piotr 2008-06-13: Added image reading from MMP file.
This fil... | NanoCAD-master | cad/src/model/Plane.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
jigs.py -- Classes for motors and other jigs, and their superclass, Jig.
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Mostly written as gadgets.py (I'm not sure by whom);
renamed to jigs.py by bruce 0... | NanoCAD-master | cad/src/model/jigs.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
jigs_planes.py -- Classes for Plane jigs, including RectGadget,
GridPlane, and (in its own module) ESPImage.
@author: Huaicai (I think), Ninad (I think), maybe others
@version: $Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE file for details.... | NanoCAD-master | cad/src/model/jigs_planes.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
ExternalBondSet.py - keep track of external bonds, to optimize redraw
@author: Bruce
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
bruce 080702 created
bruce 090211 making compatible with TransformNod... | NanoCAD-master | cad/src/model/ExternalBondSet.py |
NanoCAD-master | cad/src/history/__init__.py | |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
HistoryWidget.py -- provides a Qt "megawidget" supporting our history/status area.
@author: Bruce
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
TODO:
This file ought to be extensively revised or reorganized, po... | NanoCAD-master | cad/src/history/HistoryWidget.py |
NanoCAD-master | cad/src/files/__init__.py | |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
files_mmp_writing.py -- overall control of writing MMP files;
provides class writemmp_mapping and functions writemmpfile_assy
and writemmpfile_part.
@author: Josh, Bruce
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for detai... | NanoCAD-master | cad/src/files/mmp/files_mmp_writing.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
files_mmp_registration.py - registration scheme for helper functions
for parsing mmp record lines which start with specific recordnames.
@author: Bruce
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
History:
bru... | NanoCAD-master | cad/src/files/mmp/files_mmp_registration.py |
# Copyright 2005-2008 Nanorex, Inc. See LICENSE file for details.
"""
mmpformat_versions.py -- list of all mmpformat versions ever used, and
related parsing and testing code, and definitions of currently written
versions.
@author: Bruce
@version: $Id$
@copyright: 2005-2008 Nanorex, Inc. See LICENSE file for details.... | NanoCAD-master | cad/src/files/mmp/mmpformat_versions.py |
NanoCAD-master | cad/src/files/mmp/__init__.py | |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
mmp_dispnames.py
@author: Bruce
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
bruce 090116 split this out of constants.py
"""
from utilities.GlobalPreferences import debug_pref_write_new_display_names
... | NanoCAD-master | cad/src/files/mmp/mmp_dispnames.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
files_mmp.py -- reading MMP files
See also: files_mmp_writing.py, files_mmp_registration.py
@author: Josh, others
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
bruce 050414 pulled this out of fileIO.p... | NanoCAD-master | cad/src/files/mmp/files_mmp.py |
"""
printFunc.py: print method that can be called after populating DOM in order to
see the XML objects in human readable format.
Based on the original files from the pyXML 0.8.4 dom/ext module.
@author: Urmi
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
from xml.dom import XM... | NanoCAD-master | cad/src/files/ios/printFunc.py |
NanoCAD-master | cad/src/files/ios/__init__.py | |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
files_ios.py - provides functions to export a NE-1 model into IOS format as well
as import optimized sequences into NE-1
@author: Urmi
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
Note: This is only applicable to DNA/ RN... | NanoCAD-master | cad/src/files/ios/files_ios.py |
"""
Visitor.py - Supporting class for printing a DOM Document
@version:
Original file from the pyXML 0.8.4 dom/ext module.
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and copyright information
"""
class Visitor:
def visit(self, node):
"""D... | NanoCAD-master | cad/src/files/ios/Visitor.py |
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
moviefile.py -- classes and other code for interpreting movie files
(of various formats, once we have them)
@author: Bruce
@version: $Id$
@copyright: 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
# note that in future there's more tha... | NanoCAD-master | cad/src/files/dpb_trajectory/moviefile.py |
NanoCAD-master | cad/src/files/dpb_trajectory/__init__.py | |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
files_in.py -- reading AMBER .in file fragments
@author: EricM
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
"""
# Various standard residues appear in AMBER data files with .in
# extensions. These describe the residue ... | NanoCAD-master | cad/src/files/amber_in/files_in.py |
NanoCAD-master | cad/src/files/amber_in/__init__.py | |
NanoCAD-master | cad/src/files/pdb/__init__.py | |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
files_pdb.py -- reading and writing PDB files
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
This was part of fileIO.py,
until bruce 050414 started splitting that
into separate modules for each file for... | NanoCAD-master | cad/src/files/pdb/files_pdb.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
Created on 2008-07-15 . The main purpose of this class was a workaround to
new Qt4.3.2 BUG 2916 in the QToolbar extension popup indicator.
TODO:
"""
f... | NanoCAD-master | cad/src/ne1_ui/NE1_QWidgetAction.py |
"""
FetchPDBDialog.py
Qt Dialog for fetching pdb files from the interweb
@author: Urmi
@version: $Id$
@copyright:2008 Nanorex, Inc. See LICENSE file for details.
"""
from PyQt4.Qt import SIGNAL, SLOT
from PyQt4.QtGui import QDialog, QLineEdit, QPushButton, QLabel
from PyQt4.QtGui import QHBoxLayout, QVBoxLayout, QApp... | NanoCAD-master | cad/src/ne1_ui/FetchPDBDialog.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
WhatsThisText_for_PropertyManagers.py
This file provides functions for setting the "What's This" and tooltip text
for widgets in all NE1 Property Managers only.
Edit WhatsThisText_for_MainWindow.py to set "What's This" and tooltip text
for widgets... | NanoCAD-master | cad/src/ne1_ui/WhatsThisText_for_PropertyManagers.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
ToolTipText_for_MainWindow.py
This file provides functions for setting the Tool tip text
for widgets in the Property Managers.
@version:$Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
def ToolTip_CookiePropertyManager(p... | NanoCAD-master | cad/src/ne1_ui/ToolTipText_for_PropertyManagers.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
from PyQt4.Qt import Qt, QWidget, QVBoxLayout
from utilities.icon_utilities import geticon
import ne1_ui.Ui_MainWindowWidgets as Ui_MainWindowWidgets
import ne1_ui.Ui_MainWindowWid... | NanoCAD-master | cad/src/ne1_ui/Ui_MainWindow.py |
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
"""
Ui_ReportsDockWidget.py
@author: Mark
@version: $Id$
@copyright: 2007 Nanorex, Inc. See LICENSE file for details.
To do:
- Restore state (hidden/displayed) from last session.
History:
Mark 2008-01-05: Created.
"""
from history.HistoryWidget import Hi... | NanoCAD-master | cad/src/ne1_ui/Ui_ReportsDockWidget.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
WhatsThisText_for_CommandToolbars.py
This file provides functions for setting the "What's This" text
for widgets (typically QActions) in the Command Toolbar.
@author: Mark
@version:$Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for det... | NanoCAD-master | cad/src/ne1_ui/WhatsThisText_for_CommandToolbars.py |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
cursors.py - load all the custom cursors needed by NE1
@author: Mark
@version: $Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE file for details.
mark 060427 - loadCursors() moved from MWsemantics.py.
To do: (Mark)
- Find and replace all use... | NanoCAD-master | cad/src/ne1_ui/cursors.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.