Author Topic: "Copy Link" and "File System Sync"  (Read 8107 times)

acanthis

  • Jr. Member
  • **
  • Posts: 51
"Copy Link" and "File System Sync"
« on: November 18, 2005, 10:55:57 AM »
Here are two features that I would like to see added.

(Note: When I refer to a library folder below, I mean a "virtual" folder as it appears in the Advanced Library tree view, not an actual folder on the hard disk)

Copy Link

A way to add shortcuts to folders defined elsewhere in the library tree. For example, if I create a library folder "1960's Pumps for V3 and S3" under [Shoes -> Female], I would like to create a shortcut to that folder under [People -> Victoria 3 -> Shoes] and [People -> Steph Petite -> Shoes] without having to duplicate the definition of that library folder.  Maybe right drag and drop a folder in the tree, or use Right Click -> Copy, Right Click -> Paste Link. Anyway, the whole idea is that I only define the virtual folder in the library tree once, so I only have to go to one place to update that definition. Linked folders in the Settings pane should be shown either in a different colour or in bold text to distinguish them.

File System Sync

This is much harder. In the Explorer window, add the ability to move folders around with drag and drop and also to rename them, so that you can manipulate the runtime folder structure from within AL. The trick is to make AL track which folders it has references to in its library tree and to automatically update references to any folders that you change or rename in this way. This makes it possible to reorganise your runtime and create the library tree at the same time.

Dizzi

  • Administrator
  • Sr. Member
  • *****
  • Posts: 417
Re: "Copy Link" and "File System Sync"
« Reply #1 on: November 22, 2005, 12:15:36 AM »
Links probably with next update, but manipulating the runtime not in the forseeable future. But probably synchronizing only parts of the tree, if that helps.

acanthis

  • Jr. Member
  • **
  • Posts: 51
Re: "Copy Link" and "File System Sync"
« Reply #2 on: November 25, 2005, 11:57:27 AM »
Links probably with next update, but manipulating the runtime not in the forseeable future. But probably synchronizing only parts of the tree, if that helps.

Having links is my top priority, so that's fine.  Thanks.

Dizzi

  • Administrator
  • Sr. Member
  • *****
  • Posts: 417
Re: "Copy Link" and "File System Sync"
« Reply #3 on: November 25, 2005, 10:41:11 PM »
Please try the beta if it works the way you want it (and to find bugs .-))
http://www.neocron.webspaceforme.net/library/downloads/#beta

acanthis

  • Jr. Member
  • **
  • Posts: 51
Re: "Copy Link" and "File System Sync"
« Reply #4 on: November 26, 2005, 01:34:53 PM »
Please try the beta if it works the way you want it (and to find bugs .-))
http://www.neocron.webspaceforme.net/library/downloads/#beta

Worked OK until I tried to have a reference to the same category in more than one place, then it fails with the following exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Advanced_Library.NodeRefs.GetNewReferer(MyTreeNode reference)
   at Advanced_Library.Form1.tsmiPasteCategoryReference_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Advanced_Library
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Documents%20and%20Settings/acanthis/Local%20Settings/Apps/2.0/K7Z40B1Q.HNV/07D30AHZ.R6A/adva..tion_ce6ab65508030bfe_0001.0000_f4f84ddaa3c9b65f/Advanced_Library.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.IWshRuntimeLibrary
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/acanthis/Local%20Settings/Apps/2.0/K7Z40B1Q.HNV/07D30AHZ.R6A/adva..tion_ce6ab65508030bfe_0001.0000_f4f84ddaa3c9b65f/Interop.IWshRuntimeLibrary.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


[EDIT: This happens when attempting to paste the reference.  i.e. Edit -> Paste Category Reference causes the exception]
« Last Edit: November 26, 2005, 01:41:57 PM by acanthis »

Dizzi

  • Administrator
  • Sr. Member
  • *****
  • Posts: 417

acanthis

  • Jr. Member
  • **
  • Posts: 51
Re: "Copy Link" and "File System Sync"
« Reply #6 on: November 26, 2005, 03:12:43 PM »
http://www.neocron.webspaceforme.net/library/installer/Advanced_Library_1_0_1_1.zip should fix that

Yes, it does.

... But now that I see how well links work, I'm thinking that allowing filters on the reference to the category (shown in blue in the tree) would be really nice ;)

For example, a set of shoes for V3 and SP would appear in under Shoes and are linked to the V3->Shoes and SP->Shoes part of the library tree; wouldn't it be nice to filter the V3 reference on "V3*.*" and the SP reference on "SP*.*"?

Anyway, just a suggestion.  Thanks for your hard work adding this feature.