FarNet — .NET Far API and .NET module manager

Анонсы новых плагинов. Обсуждение плагинов ведется ниже.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

Latest post of the previous page:

http://code.google.com/p/farnet/

3.3.40

- Access to dialogs and controls. New property IFar.Dialog - the current dialog
if any (including standard FAR dialogs). You can get the current dialog item as
IDialog.Focused or by index and work on it, e.g. get or set text of the current
IEdit. Some controls in not FAR.NET dialogs are not fully supported yet.
Example: Complete-Word-.ps1 from PowerShellFar completes a word from history of
any edit contol in any FAR dialog. See also Generate-Dialog-.ps1 as a demo of
access to all dialog controls and properties.

- New IFar.GetDialogHistory() - gets saved dialog history by its name (used by
Complete-Word-.ps1 for completion from editor control history).

- BREAKING: removed IText.Separator2 and converted type of IText.Separator from
bool to int: 0: standard text; 1: single line separator; 2: double line
separator.

- New helper IAnyViewer.ViewText - opens a viewer to view some text. Similar to
IAnyEditor.EditText but you can also choose whether it is modal or not.

- Slightly changed action on setting of IPanel.Path and IPanelPath.Path: if the
panel is a plugin not supporting the path then it is closed and a FAR panel is
opened if the new path exists.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.41

- This is mostly a technical build for FAR 1.71.2346
- New IListBox.Title. IListBox.Text get\set is mapped to the current item text
(dynamically, i.e. when a dialog is opened).
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.42

MENU AND LIST DIALOG CONTROLS

- BREAKING. Interface IMenuItems was completely removed and standard collection
type was used instead. Not standard methods Add() of IMenuItems were moved to
IAnyMenu.Add(). In other words, in your code replace "menu.Items.Add(<text>)"
with "menu.Add(<text>)".
- New dynamic property IBaseList.Items (IListBox, IComboBox), see help. In
brief: when a dialog is started this collection is mapped to a FAR control
dynamically, i.e. all operations (set, insert, remove and etc.) are displayed
immediately. See also new DetachItems(), AttachItems().
- New method IFar::CreateMenuItem()

OTHER

- IControl.Rect is also settable (always); IDialog.Rect is settable before
Show(); after Show() you can use new methods Move() and Resize().
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.43

- Avoided inconvenient for plugin development internal exceptions on loading
when plugin assemblies are changed and registry cache has to updated.
- IMessage, IFar.Msg() - if a message contains too many buttons or their text is
too long, then a dialog with a list box is used instead of a message box where
listbox items work as buttons.
- New property IPanel.IsLeft (FAR 1.71.2348).
- REMOVED IMessage.Reset() because it is not actually needed or used.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.44

- One more method IFar.Msg() with extra parameter 'helpTopic' (FYI: it looks
like IMessage is completely covered by IFar.Msg() methods and perhaps it will be
removed in the future).
- IListMenu.Incremental: '*' in the end in 'prefix' mode: see help for more
(example: used by completions in PowerShellFar).
- IEditor.Open(): if a file is already opened then start position, if any, is
not set -- fixed.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.46

- Fixed IFar.AnyEditor.EditText(): error if the text is empty and the file is
not saved on exit.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.47

- IListBox: new method SetFrame() to set both current and top positions.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.48

- Fixed error messages in viewer on Add|Subtract keys ~ open next|prev file.

- IFar: new property ILine Line { get; }: current editor line in any area (it is
$Psf.HotLine moved from PowerShellFar).

- IFar: new method KeyToName(): converts an internal key code to its string
representation.

- ILine: new property WindowType: parent window type (Editor, Panels, Dialog).

- IListMenu: by default in any list menu keys [CtrlC] and [CtrlIns] are used to
copy text of the current item to the clipboard.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.49

MACRO MANAGEMENT

- New interface IKeyMacroHost exposed as IFar.KeyMacro property. It provides
methods for macro management.

- New class KeyMacroData: data set describing a macro. It is used by
IKeyMacroHost to get\set a macro data. Note: property names and values are
related to FAR native registry names and values, but this relation is not always
direct, RTFM.

- These IFar methods are OBSOLETE and will be removed: LoadMacros(),
SaveMacros(), PostMacro(). Use new methods of IKeyMacroHost: Load(), Save(),
Post(). Note: new Post() uses 'enableOutput' parameter which is 'false' by
default instead of PostMacro() 'disableOutput' which is 'true' by default.

DOCUMENTATION

- New style of .CHM documentation. Old MSDN style actually has more disadvatages
and it is difficult to improve. New style is somehow simpler and still can be
improved in next versions. What is already improved:
*) separated indices of properties with same names;
*) overloaded methods are all shown in member list;
*) method parameter names are shown in contents;
*) enabled advanced search features;
*) added favourites tab.

OTHER CHANGES

- IListMenu: if filter is not enabled then filter dialog should not start.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.50

MACRO MANAGEMENT

- REMOVED obsolete IFar methods: LoadMacros(), SaveMacros(), PostMacro(). Use
new methods of IKeyMacroHost: Load(), Save(), Post().

DOCUMENTATION

- Improved look of member tables: set relative column width
- Removed annoying members inherited from System.Object
- Other little improvements and topic updates.

OTHER

- Added protected constructor to BasePlugin. It denies instances of this class.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.51

*) IEditor.Cursor is {get; set;} property now (it was {get;} only).
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

3.3.52

*) New event IControl.Drawing (e.g. it can be used to draw a user control by
IFar.WriteText and IFar.WritePalette methods).
*) New enum PaletteColor - standard FAR color palette indices.
*) New IFar.WritePalette - to write text using standard FAR colors.
*) New IFar.GetPaletteBackground, IFar.GetPaletteForeground get palette colors.
*) IAnyViewer, IViewer - new events GotFocus, LosingFocus (FAR 1.71.2406).
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

= 3.3.53 =

This is mostly a techical build reflecting FAR API changes up to 1.75.2494.

There are though a couple of new items in FAR.NET:
*) IPanel.GoToName() - sets an item current by its name;
*) IPanel.GoToPath() - similar to FAR command goto:<path>.

Happy New Year!
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

= 3.3.54 =

*) New property IPanelPlugin.DataComparison - compares data attached to panel
items (normally in order to restore the current item correctly). Needed for
cases with not trivial equality.

*) New property IPanelPlugin.IdleUpdate - tells to update and redraw the panel
automatically when idle. Useful for frequently changed data.

*) New user property Guid IPanel.Id - normally assigned once and used by a
creator for distinguishing panel types and reusing opened panels.

*) New method IFar.GetPanelPlugin(Guid) - gets opened panel plugin by ID (see
above). Can be used for reusing already opened panels.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

= 3.3.55 =

CHANGES

*) Logic of IKeyMacroHost.Install(IDictionary[]) is changed. This is not a
breaking change but if you use it you have to take a look at the manual.

FIXED

*) False error "Can't open a plugin panel at this moment." in rare cases.
*) Minor issue in error message in editor on opening a file with null name.

OBSOLETE

*) As it was announced in 3.3.44, method IFar.CreateMessage() and interface
IMessage are obsolete and will be removed. Use IFar.Msg() instead, these 5
methods provide the same features and also some improvements.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: Far.Net — плагин для написания плагинов на .NET языках

Post by NightRoman »

http://code.google.com/p/farnet/

= 3.3.56 =

*) Improved control over panel opening and possible failures. Fixed cases when
opening used to fail silently, now errors with explained reasons are shown.

*) IPanel.GoToPath() - fixed a few issues with not complete paths.

*) As it was announced, obsolete method IFar.CreateMessage() and interface
IMessage are removed. Use one of 5 overloaded IFar.Msg() methods instead.
Post Reply

Return to “Анонсы новых плагинов”