Commit Graph

49 Commits

Author SHA1 Message Date
Rob Pearce 3e6bec6d96 - Upgraded to new libpng for Windows
- Fixed windows makefile
2009-09-28 02:49:39 +00:00
Rob Pearce 122f7f1207 Fixed crash when loading/saving via buttons 2009-07-29 20:06:00 +00:00
Rob Pearce 1399024438 fixed descriptive text for exports to include png 2009-07-28 02:35:34 +00:00
Rob Pearce c8f80da5c2 Added ctrl-g to cancel text 2009-07-28 02:30:15 +00:00
Rob Pearce 7bde100972 Fixed bug in SDL_UpdateRect when drawing cursor. 2009-07-28 02:27:59 +00:00
Rob Pearce 96981d8325 Fixed bugs in SVG output again. (dealing with ampersands, and end of beziers)
Fixed text cursor problem in save/load dialogs
2009-07-28 02:15:46 +00:00
Rob Pearce 47dd570d84 Fixed linkat bug 2009-07-28 01:39:15 +00:00
Rob Pearce f322115aa5 Added ctrl-e 2009-07-28 01:31:55 +00:00
Rob Pearce 6da969e0c7 - Fixed bug with exporting beziers to SVG
- Added support for text cursor movement when editting text
- Added emacs keys for text edits (ctrl-u, ctrl-k, ctrl-a)
- Added export to PNG format
- Export to PNG/BMP now no longer include gridlines/statusbar/scrollbars
- Fixed crash when changing to zero gridsize
2009-07-28 01:27:21 +00:00
Rob Pearce e009df29e9 - Fixed bug with Ellipse objects when exporting to SVG
- Fixed slowdown when creating new links
2009-03-10 21:01:21 +00:00
Rob Pearce 9d04b4f215 - now re-calcing scrollbar size whenever diagram is modified
- can no longer accidentally change maps while scrolling vertically
- fixed graphical glitch when editting text while scrolled
- clicking mouse while entering text is now the same as pressing enter
- findnext now works again 
- when searching, the found object is more obviously highlighted
2006-06-20 01:50:21 +00:00
Rob Pearce 15b28974be - fixed placement of map rename screen
- changed to version 1.8b
2006-05-23 06:52:19 +00:00
Rob Pearce f2a1804571 - fixed yes/no selection dialogue in resized windows
- Scrollbars now more accurate
- Added shortcuts: HOME goes to top-left, END goes to bottom right
- Fixed various graphical glitches in dialogue screens
- Reduced "automatic grow" size
- Fixed infinite loop bug when performing a "findnext" in a map with no 
  text objects
2006-05-23 01:16:23 +00:00
Rob Pearce 8fd5f8d260 - window can now be resized 2006-05-22 07:21:36 +00:00
Rob Pearce c56dca3dfa - Fixed crash when moving link points
- Bumped to version 1.8
2006-05-19 02:02:31 +00:00
Rob Pearce 1325f8c3f7 - "Create map link" screen is now scrollable with ,/./q/w keys
- Changed version to 1.7g
2006-05-11 06:49:44 +00:00
Rob Pearce 83b63fe1c7 - Windows makefile now uses sdl-config
- Fix bug with font file location - now searches $NETMAPRDIR for it once more.
2006-05-11 04:35:30 +00:00
Rob Pearce 8e677d6b6c removed debug text 2006-04-07 13:56:31 +00:00
Rob Pearce 7a4dcf0557 fixed typo in font filename 2006-04-07 13:47:02 +00:00
Rob Pearce e36767c409 - Fixed up SDL include lines to be more standard 2006-04-07 13:45:21 +00:00
Rob Pearce 9d4f7c482d - Now no longer prints messages at startup. 2006-03-31 05:06:48 +00:00
Rob Pearce 872e2a5242 - drawpixel() now ensures that the x,y coordinates are actually within the screen. This should fix a number of crashes. 2006-03-31 05:03:02 +00:00
Rob Pearce 82d9c0d1f8 - Fixed memory leaks
- Fixed 100% CPU usage bug
- Higher double click threshold (for slower machines)
2006-02-03 04:56:08 +00:00
Rob Pearce 31696e0575 - Added windows .exe for version 1.7c
- Fixed bug with { and } commands (unicode support added in v1.7b broke this)
2006-01-20 05:45:50 +00:00
Rob Pearce ef16be4174 - Added search feature ('/' and 'n' keys)
- Bumped version to 1.7a
2006-01-17 03:27:15 +00:00
Rob Pearce 52bf862f07 - More code cleanup - replacing code with drawtextat() 2005-11-19 00:46:17 +00:00
Rob Pearce 9c949d0427 - Added drawtextat() function.
- Code cleanup - began to replace lengthy text creation blocks with calls
  to drawtextat().
- Bug fix: Creating a link between maps now updates the MODIFIED flag.
2005-11-19 00:25:39 +00:00
Rob Pearce dd835a7a8d - Cleanup of drawvector() - removed broken raster fill code
- Modified router and wireless router objects to use ellipses instead of polygons
2005-11-18 11:27:53 +00:00
Rob Pearce 57a0b0abef - Added grey colours to palette selection screen! 2005-11-18 09:06:56 +00:00
Rob Pearce 07ed12904b - Now always showing grid
- Added red/green light on grid button to show status
2005-11-18 08:57:26 +00:00
Rob Pearce 3b9cbee30c - Now handles spaces in filenames under Windows
- Disabled Delete Map and New Map functions in readonly mode
- Preparation for SVG exports:
        - Added vector types: Subobj/obj (to draw filled objects), Poly
        - Modified vector type "box" to take a "fill colour" argument
        - Removed vector types Fill and Fillbox
- Rewrote entire objects.dat file to avoid use of "fill" command
- Can now export to SVG files (same with ".SVG" extension)
- Improved behaviour of grid with respect to link endpoints when
  moving & resizing objects
- Grid lines now look more visio-like
- Removed grid size of '5' as this was too small to be useful
- Changed default grid size from 10 to 15.
2005-11-18 08:39:29 +00:00
Rob Pearce edb6d59b81 - Rewrote Command Reference document (simplified and now includes screenshots)
- Updated example diagram to use new Traffic Flows feature
- Added an additional paste shortcut for windows compatibility ('v')
- Grid is now back to being on by default again
- Grid is automatically turned off when a new map is loaded.
- Grid is automatically turned on when all maps are cleared (via the new map
  button)
- Removed -g from Windows Makefile (since I can't make gdb work under mingw
  anyway)
- Current filename is now displayed in title bar
- Modified welcome text
- Added new vector shape:  Bezier Curve
- Redrew Cloud object to use bezier curves instead of lines
- Added Copy, Paste and Grid buttons
- Combined X&Y position matching into a single button (use RMB for Y position
  match)
- Added Traffic Flow button (LMB = toggle display of flows, RMB = define
  flows)
- 1 bit of "Unused" part of colour struct on links, objects and text is now
  used to
  show whether or not to fill this thing.
- 2 bit of "Unused" part of colour struct on links, objects and text is now
  used to
  show whether or not this thing is a traffic flow.
- Fixed bug where first toolbox button hilighted would "stick"
- Fixed bug where status text was overwritten during VIDEO_EXPOSE event
2005-11-15 03:45:04 +00:00
Rob Pearce 8a7f3efcf1 - Grid is now off by default
- Added keyboard shortcuts ('0' through '9' to select or define)
- Added documentation
- Bumped version to 1.3
2005-11-12 02:51:37 +00:00
Rob Pearce c5a3025cf0 - Removed -D from FreeBSD Makefile
- Updated screenshots to show new object box and snap-to-grid mode
- Added grid size modification for snap-to-grid mode (';' key)
- Bumped version to 1.2a
2005-11-11 13:04:03 +00:00
Rob Pearce 5983f417a3 - Implemented copy/paste of objects, text and maps
- Changed background of object box to be light grey instead of black
- Made object box buttons look more 3d
- Fixed crash when adding zero-length text
- Size/position match tool now works on text
- Implemented "rollover" context sensitive help
- Toolbox buttons are now highlighted when the mouse moves over them
- Partially implemented snap-to-grid feature (no toolbox button yet, toggle with 'g')
- Implemented AP_BOTH for lines with arrowheads on both ends
- Implement change object type function (RMB on object tool, or 'm')
- Mouse wheel now scrolls object box
- Added two new vector shapes:
	Ellipse
	Filled box
- Added new objects:
	Person
	Truck
	Webcam
	Camera
	Satellite Dish
	Satellite
	Wireless Router
	VPN Concentrator
	Generic circle
2005-11-11 12:42:29 +00:00
Rob Pearce ab5c2e18f5 - Replaced "grey box" object with "VPN concentrator"
- Removed "drawing arrow" debug message
2005-11-05 03:36:21 +00:00
Rob Pearce 32e5710c16 - Redrew icon
- Added rollover help text and highlights
- Added dual-head arrows on lines
2005-11-05 03:22:50 +00:00
Rob Pearce d15155a03c - Made map box scrollable. 2005-10-31 02:20:14 +00:00
Rob Pearce 82e6c3cfb3 - Can no longer delete toplevel map.
- Fixed bug where load/save/rename dialog text was using current foreground colour.
- Deleting a map now takes you back to its parent rather than to the toplevel.
- Corrected bug in Makefile - data files were incorrectly being placed in /usr/local/share
- Moving map changes into changemap() function
2005-10-30 11:50:06 +00:00
Rob Pearce c27085e53a - Delete current map button now works (must hold down SHIFT to confirm). 2005-10-30 11:23:14 +00:00
Rob Pearce 0c71838cb6 - Added ability to control width of links
- Added ability to control style of links
- Added ability to control arrows on ends of links
- Created new example diagram and screenshots
2005-10-30 08:45:37 +00:00
Rob Pearce acd62c5323 - Added readonly mode if argv[0] contains "view"
- Modified makefiles to include netmapr-viewer
- Fixed "make install" - now actually uses install(1)
- Replaced icon with better one
- Modified loadmap() function to better cope with future versions
- Bumped version to v0.99d
2005-10-29 14:23:10 +00:00
Rob Pearce d92d949773 - Fixed bug in load map code. 2005-10-29 07:07:29 +00:00
Rob Pearce e10e2ce923 - Added new object - wireless router
- Added new object - PDA
- Added new object - laptop
- Replaced "hub" object with "hub3d"
- Added the ability to edit existing text - either double click the text
  or select it then press 'e' or 'F2'.
2005-10-29 06:37:41 +00:00
Rob Pearce 84bda8c74d - Implemented "fill colour" command
- Added icon (for minimised windows)
- Added windows executable
- Changed behaviour of "foreground colour" command - RMB now selects colour
- Added "fillcol" attribute to mapobject_t
- Changed file save routine to include 8 byte version string
- Chagned file load routine to cope with old format maps
2005-10-28 06:05:57 +00:00
Rob Pearce c1e00f9fdd - Fixed various text positioning/sizing bugs
- Text anchored to the selected object will now be highlighted in green
2005-10-27 07:00:32 +00:00
Rob Pearce d398112fab - Changed from dodgy homemade vector font to TTF font (verdana)
- Now requires SDL_ttf (and hence freetype)
- Can now resize text on top of objects without having to move the text off
  the object first!
- Added example network diagram.
- Updated screenshots to show TTF fonts
2005-10-27 04:46:38 +00:00
Rob Pearce bdc798c0fa - Redrew router and firewall objects to be more Cisco-like.
- Corrected random crash when running under Windows
- Added more keyboard shortcuts
- Corrected bug in savemap() function, and added convert.c program to convert
old diagram files
- Increased maximum object dimensions
- Increased maximum number of maps
- Increased maximum number of vectors per object
- Object toolbox nows scrolls to show all objects (use q/w or ,/. keys)
- Can now use CTRL+LMB to create links/add points (for 2-button mice)
- Added export to BMP function when save filename ends with ".bmp"
- No longer need to avoid text when double clicking to drill down.
2005-10-25 06:45:19 +00:00
Rob Pearce 05fabbfaf3 Initial revision 2005-10-25 06:35:55 +00:00