Development: Difference between revisions
Line 11: | Line 11: | ||
==Contributing to FreeMind== | ==Contributing to FreeMind== | ||
There are different possible ways of taking part in the FreeMind development: the project needs people for developing | There are different possible ways of taking part in the FreeMind development: the project needs people for: | ||
* developing | |||
* testing | |||
* documenting of the program | |||
* translating its interface | |||
* translating its documentation in foreign languages | |||
: ''Currently, FreeMind project is after a feature freeze, heading quickly to the testing phase. An important current contribution is testing.'' --[[User:Danielpolansky|Dan Polansky]] 23:59, 31 Aug 2007 (PDT) | : ''Currently, FreeMind project is after a feature freeze, heading quickly to the testing phase. An important current contribution is testing.'' --[[User:Danielpolansky|Dan Polansky]] 23:59, 31 Aug 2007 (PDT) | ||
Also: | |||
* releasing screenshots: if you have a nice screenshot of FreeMind, please help by releasing it under an open-source licence in [http://commons.wikimedia.org/ Wikimedia Commons]. | |||
==Getting started as a developer== | ==Getting started as a developer== |
Revision as of 06:53, 26 October 2007
The development of FreeMind is coordinated using FreeMind's project page at SourceForge, and also using this wiki. At wiki, we have requests for enhancements page; there is also requests for enhancements (RFEs) page at SourceForge (not preferred). You can browse CVS repository. We also use SourceForge for bugs, and open discussion forum. We do not use the documentation part there as we use this wiki instead. Contributing to FreeMindThere are different possible ways of taking part in the FreeMind development: the project needs people for:
Also:
Getting started as a developerContributing to FreeMind as a developerA new developer starts in two stages.
Detail: If you are considering becoming a new developer, please proceed as follows.
Getting the latest beta version of FreeMind from CVSA beta version you can get from the CVS, searching there for the latest branch, or the branch of your choice. Please note that beta versions are unstable and may contain serious bugs. Please, use beta versions only if:
To get a beta version from CVS, see the guides at CVS section. Compiling last stable version of FreeMind
Here's what I did to get things working on Eclipse 3.3 with Windows XP:
A simple way for a developer of compiling FreeMind is perhaps the following.
Working with CVSSee CVS. Further development wiki pagesFurther reading (still under construction):
Development resources
Getting started as a testerFreeMind is a fairly large project with a very small development team. We need all the extra testing resources we can get, so if you want to help out, this is one of the best places to start.
Reporting BugsThe most important thing you can do to help us find and fix the bugs you report, is to make sure that you give us enough information that we can reproduce the bug. Otherwise, we have no way of knowing, for sure, that we've fixed the bug you report. The first thing you should do, when reporting a bug, is double-check your setup, especially if you are just getting started. Make sure you are using the correct version of the Java Runtime Environment. (Currently, FreeMind is compiled and run under Java 1.4. Some of us run it under Java 1.6, but there have been some problems reported from some Java 1.6 users.) Make sure you have your Path and ClassPath variables set correctly. You can report bugs through the forum, or through SourceForge's Bug Tracker. Here are some things that help:
--Rben13 10:50, 3 Sep 2007 (PDT) Organization of FreeMind developmentInitially, every active developer of the core team works on his own CVS branch. Our intermediate results are published as our "alpha versions". We use forum Open Discussion and section Experimental_versions on this wiki page to communicate them. Further details about the FreeMind release process are described on the FreeMind Release process page. Experimental versionsCurrently, there are the following experimental versions available. They are not meant for productive use; use at your own risk! FreeMind 0.9.0 beta 9 with Node Attributes, Map Filters and WYSIWYG rich text node editorAttaching of named attributes to every node, filtering of the displayed map content based on node text, node icons and node attributes, HTML based rich text formatting for nodes and notes, fit for Java6, a script editor is included in the script plugin --Rben13 10:06, 3 Sep 2007 (PDT) Conceptual remarksModular model - view designThe architecture of FreeMind makes it possible that FreeMind becomes general tool for editing tree-structured data, that is mind maps, XML/HTML documents, folder trees etc. in future. All these kinds of data would be presented to the user as a mind map. Model-View-Controller design makes it possible for you only to write so called model of the data structure, without caring for the visual representation. Currently, mind map mode and file mode are implemented. Original vision of Joerg MuellerJoerg Muller is the original author of FreeMind, developing it up to the version 0.4.0. Here follows what he's got to say on his original vision:
One may think of extending FreeMind to work with networks as opposed to trees only, an example of this being Topic Maps (ISO). Daniel Polansky: Joerg's vision of FreeMind becoming Emacs for tree data is intriguing, but rather far fetched at the time. You would need to provide scripting facility and at least many basic operations, like upcase, downcase, replace and many others. It is even not evident that this goal valuable compared to other goals - there many quite obvious and still missing features. Why not use OPML for storage instead of FreeMind's native XML formatThe current version of OPML is not suited for our purposes. It should be easy to create conversion XSLT between FreeMind and OPML. First, if we decided to use OPML, we would have to wait until the owner of OPML changes his standard to fit our needs. Thus, we would be dependent, not being able to act dynamically. Second, already the current version of OPML is insufficient. It does not contain most of what FreeMind already uses: colors, fonts, folded tag, edges and icons. It is not a superset of FreeMind's XML format, even not in a vague sense. Even if I renamed the elements names properly, OPML would still be a subset and not superset of FreeMind's XML. As a result, we have no benefit from using OPML right now. Summary: 1) we would run into dependence, and 2) OPML is insufficient, loosely speaking it is a subset. Why may FreeMind be more relevant than some other open source applicationsThere are many efforts to create new text editors, text processor and the like. While this activity is not without value, it does not fill that big value gap as mind mapping application. Take, for instance, text editors like JEdit. There are already well estabilished text editors like Emacs or Vim, and there are many others. It's not that these editors would be perfect, far from that, but they're still pretty useful and with some training users can become very efficient with them. With text processors, the thing is that most users in companies have already Microsoft Office for free. What does that mean? That means that the individual users do not have to pay for the MS Office, and they cannot effectively decide to use other Office platform either because of the value of easy sharing. Furthermore, there are competing free Office platforms like KOffice, OpenOffice or AbiWord. In mind mapping, the situation is quite different. You do not get commercial alternative granted in companies, unlike office applications. The point here is that most of MS Windows users, the mainstream, do not have a mind mapping application yet. For them, starting to use FreeMind is not a switch from Microsoft product to alternative product. It is a switch from scattered documents in incomparable and hard-to-overview formats to one document with unprecedented order and transparency - FreeMind's mind map. Therefore, I am expecting a growth of interest of free developers in developing and using this application. Furthermore, even though Java is quite slow and memory hungry, it solves the never ending quarrel between religious die-hard fans of different computing platforms, which I have first experienced with Atari 800 XL versus Commodore 64 battle, later IBM compatible versus Commodore Amiga battle, and nowadays Windows versus Linux battles. MiscTo create a new releaseTo succesfully complete a new release, do the following
Notice that the news cannot be monitored unlike forum, and forum has no RSS feed unlike news. To create proper copyright noticeA source file may be viewed as a sum b + d1 + d2 + ... + dk, where b is the basis, di are deltas (or patches), and the plus operator is the operator of applying a patch. The basis and each delta have their own copyright holder and the year of copyright. If there is only one author and one year, then the copyright notice is simple. If there is only one author and more years, then the copyright notice may look like
which is to be understood as
If there are more authors, then the copyright notice consists of more lines, like
Not all changes are eligible for copyright. If a change is small, then it does not make sense to add a line to the copyright notice for it. Copyright notice is not required for copyright to hold. It makes claiming your right at court easier. The correctness of these instructions is not granted. They are subject to improvement as we see fit. --Danielpolansky 11:29, 3 Jun 2005 (PDT) All on keyboard mappingsCurrently, each function has at most one key assigned. But, it should be the other way around; the keys should have functions assigned, rather than functions key. For instance, it would be valuable to have both insert and tab assigned to new node function. (Actually on MS Windows it is right now not possible at all to bind anything to tab.) To translate FreeMind into your languageSee Translation. To translate the wiki pagesSee [1] for a description of how to do that. We don't have such a page yet, so, please, be careful. Libraries and tools used in FreeMindSources of free iconsFreeMind uses (a) tool icons used in the toolbars, and (b) icons used in nodes. Especially for the icons used in nodes, a good comprehensive source of free icons is needed. FreeMind uses PNG icons, in the size of 16 x 16. Nowadays many icons are drawn in SVG vector format first, and converted to 16 x 16 bitmap images afterwards. Ideally, it would not be the task of FreeMind team to draw icons; this task should be outsourced instead. Whether this is a realistic assumption remains to be seen. Some links on the sources of free icons follow.
ImplementationTo obtain focus for selected node in reliable mannerRequesting focus for NodeView using requestFocus() method is unreliable. A reliable way of doing that has been implemented in the method getController().obtainFocusForSelected(); Requesting focus using newSelected.requestFocus(); where To set the class load path in manifest.mf in jarIn the source folder tree of FreeMind, there's a file MANIFEST.MF. This file tells what should happen with the freemind.jar when java tries to run the jar archive. The file may look like Manifest-Version: 1.0 Main-Class: freemind.main.FreeMind Class-Path: silk.jar nanoxml.jar ekit.jar kafenio.jar kafenio-config.jar kafenio-icons.jar gnu-regexp-1.1.4.jar Created-By: Joerg Mueller A tricky thing about the file is that the length of the lines can be at most 72 characters. That creates difficulties when specifying Class-Path. In the exaple above, the first line of Class-Path is set in such a way that it has 70 chacters. That has been achieved by putting spaces before the actual list of classes. In the freemind.jar, the file can be found in the folder META-INF. Here you can check if the manifest has been created correctly. Deleting nodes and branches in FreeMindSince version 0.8.0, it is possible to delete a whole branch of nodes by pressing DELETE. When a user accidentally presses DELETE and does not notice that, they may loose considerable amount of data. For users using FreeMind as a knowledge base or a semi-structured database, being able to delete whole branch at one keystroke is problematic and unusual; in filesystem browsers, users are asked for confirmation before the file is deleted by the system. However, some users use FreeMind as a mind mapper and are glad to be able to delete nodes just by pressing DELETE. There are several solutions to this problem.
The confirmation would be requested both for keystrokes DELETE and CONTROL + X, that is the actions Delete and Cut. More development pagesTo see all development pages, have a look at the category Development, by clicking on the link at the bottom of this page. |