TextStudio 0.0.544 Changelog
2007-02-01: Main changes were addition and refinment of a files list sidebar; new implementation of code generation; drawing own borders around controls; lots of bug fixes.
Sidebar
- Resizing added.
- Saving of size added.
- View > Sidebar > Files toggle added.
- Clicking on resizer closes sidebar, like Opera.
- When closed, sidebar takes up no space so file is flush with window edges (Fitt’s Law).
- Saving of toggle added.
- Hiding when very narrow added.
- Maximum width limit when sizing sidebar.
Files List
- Context menu added and tested with these items:
- Close
- Save
- Save As
- Duplicate
- Reload
- Restore
- Minimise
- Maximise
- Ctrl+Q used as shortcut for Files sidebar toggle.
- List is now cleared when all files have been closed.
- Updates selected item to reflect currently active file.
Code
Tidied some of the messier modules by moving lots of code to a pair of new, more specific modules:
modFormatting.modSidebar.
Keyboard Shortcuts
- File > Open Many now uses Ctrl+M.
- File > Save As now uses Shift+Ctrl+S.
- File > Save All now uses Shift+Alt+S.
- File > Recent Files > All Recent Files now uses Shift+Ctrl+O.
Formatting
- Removed all hardcoded xHTML stuff. Will be controlled by preferences next time.
- Format > HTML Entities for fancy punctuation now removes plain punctuation automatically.
- Created constants for all HTML code which can be generated.
- Swapped all string literals in existing code with constants where possible.
Interface
- Format > Optional Tags item is now Format > Add End Tags with a submenu of options:
- Remove Optional (HTML)
- Include Optional (HTML)
- xHTML (Appendix C)
- XHTML (XML)
- Completely removed large toolbar from application.
- Fixed erroneous greater-than (
>) sign being added to some Format > Inline HTML items. - Removed ugly Win95 style border from MDI client area.
- Added XP theme coloured border for sidebar file list.
- Added XP theme coloured border for active file when it is maximised.
- No borders are drawn on edges of screen so controls sit flush (Fitt’s Law).
- Files are now opened as maximised child windows by default.
- When more than one unsaved file would be closed when exiting, user is prompted:
Command Line
Made more robust and gives better statusbar text:
- If a path cannot be opened it now tries to open any subsequent paths.
- If all files were loaded it says Ready since everything worked.
- If some but not all files fail, says how many were opened and how many paths were supplied.
- If no files loaded it says how many paths failed and indicates this was all of them.
Bugs Fixed
Editing
- Edit > Delete Line wasn’t marking file as being unsaved, even when a line was deleted.
- Edit > Paste wasn’t setting a file as being unsaved, even after data was pasted into it.
Sidebar
- Does not toggle to hidden when completing a resize operation.
- Now opens at startup when preference is set for it to do so.
- Now populates straight away when turned on.
- Sidebar did not select correct file when toggled on if the first file was not the one selected.
- Did not activate files which right-clicked. This sometimes caused wrong file to be operated on by the context menu items.
- Fixed crashes when opening a file from a File submenu.
Formatting
- No markup was being produced for the following when no text was selected:
- Format > Block HTML > Paragraph
- Format > Form HTML > Label
- Generated incorrect spacing between and inside attributes for the following:
- Format > Form HTML > Textbox
- Format > Form HTML > Reset
- Format > Form HTML > Submit
- Generated attribute marks were wrong for the following:
- Format > Form HTML > Reset
- Format > Form HTML > Submit
- Format > Form HTML > Textbox
- Missing
<for custom code sample formatting. - Format > List HTML > Automatic was generating
</dd>tags even optional tags were set to be omitted. - Removed unnecessary newline after table row generation.
- Was missing
scopefrom headings in tables. - Was missing the greater-than sign for ending of some start tags when generating list markup.
- Format > HTML Entities > Speechmarks is being ticked as well as Format > Attribute Marks > Speechmarks
- Whitespace now correctly removed from ends of automatically formatted list items.
- Fixed bug with Format > Attribute Marks > Quotemarks sometimes generating speechmarks.
- Fixed crashing when creating a paragraph when a single space at the start of a line is selected.
TAG_LI_ENDnow includes closing slash.- Radio buttons were adding unnecessary newline after each element when autoformatting several items at once.
- Labels were getting unnecessary additional newlines afterwards, even when doing a single label.
- Was missing a newline after
<tr>start tag in automatic table generation. - Text inputs were not including an
idattribute. - Radio buttons no longer include value attribute.
- Radio buttons have
checked="checkedadded by default to avoid groups without a default choice set.
Files
- Program would crash when opening or closing multiple files at once while the sidebar was open.
- Crash when using Close from file list sidebar’s context menu.
- Filename was staying in application title after all files were closed.
- Continued to say Starting program... after program had completed loading when there were no command line parameters.
- File > Save As was not updating title bar.
- Saving files from some windows did not update title bar.
Windows
- Are now started maximised.
- Are not cascaded after Window > Sort By Filename.
- Filename was not added to main caption when loading from command line.