作図ソフト dia の改良版
名稱 | 大小 | 修訂. | 時間 | 作者 | Log Message |
---|---|---|---|---|---|
app | |||||
bindings | |||||
broken-files | |||||
data | |||||
doc | |||||
installer | |||||
lib | |||||
objects | |||||
plug-ins | |||||
po | |||||
samples | |||||
shapes | |||||
sheets | |||||
tests | |||||
.cvsignore | 464 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
.gitignore | 474 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
AUTHORS | 1.54 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
COPYING | 17.58 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
ChangeLog | 170 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
ChangeLog.pre-git | 879.69 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
HACKING | 589 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
INSTALL | 4.3 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
KNOWN_BUGS | 4.84 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
MAINTAINERS | 341 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
Makefile.am | 3.08 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
NEWS | 36.2 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
PACKAGE-MAINTAINERS | 448 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
README | 4.1 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
RELEASE-PROCESS | 5.9 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
TODO | 2.49 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
acinclude.m4 | 20.7 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
autogen.sh | 2.55 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
config.h.win32 | 910 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
configure.ac | 22.78 k | bf63ab2 | 2015-01-12 05:11:54 | Paul Chavent | Add Sozi presentation objects. See o... |
dia-make.msc | 44 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
dia.1 | 1.39 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
dia.desktop.in.in | 386 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
dia.doap | 1.75 k | dd962f5 | 2014-11-13 20:53:42 | Hans Breuer | dia.doap: add description and progamm... |
dia.keys.in | 112 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
dia.mime | 66 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
hardcopies.make | 5.31 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
install.win32 | 1.48 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
makefile.msc | 9.65 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
omf.make | 2.35 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
po-checktrans | 645 | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
po-checktrans.py | 3.44 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
readme.win32 | 3.34 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
todo.gtk2 | 1.56 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
xmldocs.make | 3.61 k | ca1bbf4 | 2014-10-10 03:01:12 | Hans Breuer | [transform] text rotation for "Standa... |
Dia is a program for drawing structured diagrams. Dia is a GNU program, and is Free Software. See the COPYING file for the licence. Documentation is a bit sparse at the moment. Some info can be found in the doc/ directory. -- I haven't had time to write anything here yet. Read INSTALL for some brief installation instructions. Homepage for Dia is at: https://wiki.gnome.org/Apps/Dia Some comments about the source: ------------------------------- Everything on the screen 'inherits' from the structure Object in lib/object.h. (ps. this is a nice place to start reading the code.). Inherits in C means (as in gtk) that it begins with a copy of that structure. Some base classes exists in lib/, like element.h (for doing 'box-like' objects), connection.h (for doing 'line-like' objects), orth_conn.h (for doing connections with orthogonal lines, like the uml-stuff) and render_object.h (for doing picture-like objects). These base classes are then subclassed in the different object in the object-libraries like objects/standard object/UML and object/network. The objects work by filling out two structures that the main program (app/*) uses to handle the objects. The ObjectType structure which consists of some info and a pointer to the type-operations (create+load+save). There's one ObjectType per object type currently loaded. Then the Object structure, there exists a copy of this for each object of the kind on screen (and in copy-buffers). This contains some info like: type, bounding_box, position, handles (the rectangles you move with the mouse) and connections. It also contains a pointer to the object-operations. These are called from the main program when if wants the object to do something. All ops take an Object as the first argument. This is usually casted to the subtype in the function headed (gives all those pita warnings) so that you directly can use the info stored in the subclasses. Most ops are quite self-describing, and the code can be copy-pasted from an object like the one you're doing. Rendering to screen/postscript is done through a 'Renderer' abstraction that can be found in lib/render.h. XML based objects: ------------------ You can (from version 0.80) create new objects using a SVG like XML languange. The file doc/custom-shapes has more information about this. Note on handles and connection points: -------------------------------------- An object has handles to resize it. A handle can be moved either because the user dragged it with the mouse, or the handle is attached to another object, which moved itself. The handles are diplayed as little squares (red: normal, green: attached to an object, blue: can't be moved). When the handle of an object is connected to another object, it's always on special points called connection points, displayed as crosses. Implementation: - each object has an array of pointer to ConnectionPoint. - each object has an array of pointer to Handle. - each Handle has a pointer to 1 ConnectionPoint (NULL if the handle if the Handle is not connected). - each ConnectionPoint has a list of all objects connected to it. The Object type does not manage the allocation/deallocation of handles and connection points. When saving a diagram the pointer from the handle to the connectionpoint is saved as the index of the connectionpoint. So make sure the order of the connectionpoints is the same when loading the saved object. Notes on static analysis ------------------------ Some of the recent changes (log message starting with [scan-build] are suggested by static source analysis, see http://clang-analyzer.llvm.org/scan-build To use it just run ./configure and make through the scan-build script, like: PATH=/mnt/Home/from-svn/llvm/Release/bin:$PATH /mnt/Home/from-svn/llvm/tools/clang/tools/scan-build/scan-build ./configure --prefix=/opt --enable-debug=yes and PATH=/mnt/Home/from-svn/llvm/Release/bin:$PATH /mnt/Home/from-svn/llvm/tools/clang/tools/scan-build/scan-build -v -v make -j3 view with PATH=/mnt/Home/from-svn/llvm/Release/bin:$PATH /mnt/Home/from-svn/llvm/tools/clang/tools/scan-view/scan-view (given an uninstalled checkout of llvm to /mnt/Home/from-svn/llvm)