From: Rib R. <ri...@gm...> - 2004-08-15 20:23:20
|
As I was making that last commit I started thinking about patch editors, and I had the idea to move the hasEditor and editPatch functions from IPatchDriver to IPatch. We could easily put a method in Patch to maintain compatibility with existing drivers. The advantage I see is that when you create an xml based editor, you can simply say what patch type it supports. Then when you click to edit a patch, it could give you a list of possible editors, or if there's only one open it right away. How does this sound? |
From: Hiroo H. <hir...@co...> - 2004-08-16 02:12:57
|
Rib> As I was making that last commit I started thinking about patch Rib> editors, and I had the idea to move the hasEditor and editPatch Rib> functions from IPatchDriver to IPatch. We could easily put a method in Rib> Patch to maintain compatibility with existing drivers. The advantage Rib> I see is that when you create an xml based editor, you can simply say Rib> what patch type it supports. Then when you click to edit a patch, it Rib> could give you a list of possible editors, or if there's only one open Rib> it right away. How does this sound? First I thought you were proposing 'IPatch.editPatch()', but it seems you were not. Could you give me an example which would help me to understand. BTW there are many lines like 'patch.getDriver().xxxxx(patch)'. They can be 'patch.xxxxx()' by defining some one line methods in IPatch. May I make the change? -- Hiroo Hayashi |
From: Hiroo H. <hir...@co...> - 2004-08-16 13:28:11
|
On Sun, 15 Aug 2004 22:44:40 -0700 Rib Rdb <ri...@gm...> wrote: Rib> Hi. I'm pretty good ad being confusing. Let me try again. Rib> Rib> On Sun, 15 Aug 2004 20:13:01 -0500, Hiroo Hayashi Rib> <hir...@co...> wrote: Rib> > Rib> > Rib> As I was making that last commit I started thinking about patch Rib> > Rib> editors, and I had the idea to move the hasEditor and editPatch Rib> > Rib> functions from IPatchDriver to IPatch. We could easily put a method in Rib> > Rib> Patch to maintain compatibility with existing drivers. The advantage Rib> > Rib> I see is that when you create an xml based editor, you can simply say Rib> > Rib> what patch type it supports. Then when you click to edit a patch, it Rib> > Rib> could give you a list of possible editors, or if there's only one open Rib> > Rib> it right away. How does this sound? Rib> > Rib> > First I thought you were proposing 'IPatch.editPatch()', but it seems Rib> > you were not. Could you give me an example which would help me Rib> > to understand. Rib> Rib> That's exactly what I mean (well, I was thinking IPatch.edit() since Rib> two Patches is redundant). What I was trying to explain is that this Rib> would make it easier to allow multiple editors for a given patch type Rib> as we discussed before. My thought was simply to define the following method in Patch.java; JSLFrame editPatch(Patch p) { // should be 'edit' return driver.editPatch(this); } But I understood you were thinking more. Rib> > BTW there are many lines like 'patch.getDriver().xxxxx(patch)'. They can Rib> > be 'patch.xxxxx()' by defining some one line methods in IPatch. May I Rib> > make the change? Rib> Rib> Please do. OK, I'll do. -- Hiroo Hayashi |
From: Hiroo H. <hir...@co...> - 2004-08-19 05:07:28
|
On Sun, 15 Aug 2004 22:44:40 -0700 Rib Rdb <ri...@gm...> wrote: Rib> > BTW there are many lines like 'patch.getDriver().xxxxx(patch)'. They can Rib> > be 'patch.xxxxx()' by defining some one line methods in IPatch. May I Rib> > make the change? Rib> Rib> Please do. It's in head now. -- Hiroo Hayashi |
From: <tt_...@gm...> - 2004-08-17 18:56:52
|
Hi Ryan, Rib Rdb wrote: > As I was making that last commit I started thinking about patch > editors, and I had the idea to move the hasEditor and editPatch > functions from IPatchDriver to IPatch. We could easily put a method in > Patch to maintain compatibility with existing drivers. The advantage > I see is that when you create an xml based editor, you can simply say > what patch type it supports. Then when you click to edit a patch, it > could give you a list of possible editors, or if there's only one open > it right away. How does this sound? This sounds good to me. Generally I like the idea to move all methods from the drivers which are not concerning the interaction with a synth. Like the editing of patches as you're proposing. Bye Torsten |