# Version 1.31 and The Jucer v1.0!

**URL:** <https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850>\
**Category:** The Projucer\
**Created:** [May 22, 2006, 10:43pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850 "2006-05-22T22:43:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 22, 2006, 10:43pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/1 "2006-05-22T22:43:14Z")

</div>

Ok, the Jucer has finally arrived! It’s part of the juce source tree, available in the new build I’ve just uploaded. Let me know if I’ve broken everything!

```
* First release of the Jucer! This is a component development tool that lets you design Juce components and produces c++ code. This initial release is functional but still a work-in-progress - it will be an ongoing project, adding more and more functionality and shortcuts for creating juce-based code. The Jucer source code lives inside the Juce tree, in the juce/jucer folder.
* new class: PositionedRectangle, which specifies a rectangle using either absolute or proportional co-ordinates, and giving flexible control over the anchor points used. Handy for positioning components.
* new set of classes: PropertyComponent, PropertyPanel and various basic subclasses of PropertyComponent. These allow you to quickly set up a properties panel for something, e.g. a selected object, which shows a list of named properties of various types, e.g. text, sliders, combo boxes, etc.
* added a method ApplicationCommandManager::setFirstCommandTarget() to make it easier to set up non-component command targets
* change to the FileBasedDocument load/save methods so that they can return an error message on failure
* new method: Graphics::fillCheckerBoard()
* added options to FileChooser and FileChooserDialogBox to prompt the user about overwriting files that already exist
* change to TabbedComponent, so that instead of using a virtual method to create the components for the tabs, you add components using the addTab method and the TabbedComponent looks after them for you.
* fixes to some focus issues, such as popup menus temporarily moving focus away from the main window
* new class: MultiDocumentPanel to hold multiple document windows as either floating DocumentWindows or in a TabbedComponent.

```

I’ve not had time to write anything about how to actually use the Jucer, or to sort out a compiled binary of it, but will do so soon. In the meantime, early adopters should feel free to have a go!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 22, 2006, 10:52pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/2 "2006-05-22T22:52:39Z")

</div>

Oh - I should mention that in juce/jucer/ there’s a To Do List text file, where I’ve kept a list of stuff I want to add to it. So before you all start shouting about what features that would be cool, check I’ve not already thought of them!

---

<div class="post-metadata">

**Author:** ![haydxn](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@haydxn](https://forum.juce.com/u/haydxn)\
**Post date:** [May 22, 2006, 11:08pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/3 "2006-05-22T23:08:49Z")

</div>

very exciting! 🙂 thanks for the update, eagerly downloading it now (and haven’t even finished reading your post :hihi: )

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 23, 2006, 10:42am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/4 "2006-05-23T10:42:41Z")

</div>

:shock: sincerely thanx for the jucer. it’s one of the more amazing piece of code i’ve ever seen lately. especially the vector graphics editing feature !

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 23, 2006, 10:59am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/5 "2006-05-23T10:59:20Z")

</div>

Ta very much. I’m pretty chuffed with the way it’s turned out - not bad for a couple of weeks hacking!

---

<div class="post-metadata">

**Author:** ![haydxn](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@haydxn](https://forum.juce.com/u/haydxn)\
**Post date:** [May 23, 2006, 11:01am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/6 "2006-05-23T11:01:25Z")

</div>

yes, it is indeed fantastic. kudos, credit, karma and coolness for you

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 23, 2006, 11:08am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/7 "2006-05-23T11:08:17Z")

</div>

Ok, enough complements now, you’ll make me blush…

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 23, 2006, 2:07pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/8 "2006-05-23T14:07:57Z")

</div>

ehehe 🙂 as i say, you are never fullfilled of compliments as you should, cause one step beyond all of us… i see what i can do till friday trying to inoculate scripts into that bearded piece of software!!! (btw. i’m having nightmares of a JUCERAD every night…) :roll:

---

<div class="post-metadata">

**Author:** ![haydxn](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@haydxn](https://forum.juce.com/u/haydxn)\
**Post date:** [May 23, 2006, 2:34pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/9 "2006-05-23T14:34:18Z")

</div>

oh yes! congratulations on the beard, too. us bearded folk are far too few nowadays.

1 itty-bitty thing about the jucer- the class panel really needs a way of specifying constructor params like the generic component sub-component thing has. 😉

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 23, 2006, 3:28pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/10 "2006-05-23T15:28:16Z")

</div>

(Damn - just noticed that I mis-spelt “compliments”. Doh)

And ok, constructor params sound like a sensible thing to add.

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [May 23, 2006, 9:42pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/11 "2006-05-23T21:42:51Z")

</div>

Absolutely brilliant, I can’t believe you did this in two weeks. :shock:

---

<div class="post-metadata">

**Author:** ![valley](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@valley](https://forum.juce.com/u/valley)\
**Post date:** [May 23, 2006, 11:20pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/12 "2006-05-23T23:20:54Z")

</div>

very cool indeed!

It’d be nice if the shape tool treated the endpoints of a closed line as just a normal line. Currently you can change the line type between those points.

The anchor stuff is very neat.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 24, 2006, 9:04am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/13 "2006-05-24T09:04:19Z")

</div>

[quote=“valley”]very cool indeed!

It’d be nice if the shape tool treated the endpoints of a closed line as just a normal line. Currently you can change the line type between those points.

The anchor stuff is very neat.[/quote]

Ta. Do you mean to just remove the end-type option if the shape is closed? If so, I can’t do that because when I’ve added some sub-path controls, you’ll be able to have multiple sub-paths in the same shape, each of which may be open or closed.

---

<div class="post-metadata">

**Author:** ![BlackSun](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@BlackSun](https://forum.juce.com/u/BlackSun)\
**Post date:** [May 24, 2006, 11:33am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/14 "2006-05-24T11:33:59Z")

</div>

What a great piece of work Jules ! And nice picture in the about box. Did you really count your beard hairs ? 😉

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 24, 2006, 11:59am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/15 "2006-05-24T11:59:56Z")

</div>

> [@BlackSun](#):
>
> What a great piece of work Jules ! And nice picture in the about box. Did you really count your beard hairs ? 😉

Of course - and each hair’s length is proportional to the length of the line of code.

---

<div class="post-metadata">

**Author:** ![valley](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@valley](https://forum.juce.com/u/valley)\
**Post date:** [May 24, 2006, 2:10pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/16 "2006-05-24T14:10:54Z")

</div>

[quote=“jules”][quote=“valley”]very cool indeed!

It’d be nice if the shape tool treated the endpoints of a closed line as just a normal line. Currently you can change the line type between those points.

The anchor stuff is very neat.[/quote]

Ta. Do you mean to just remove the end-type option if the shape is closed? If so, I can’t do that because when I’ve added some sub-path controls, you’ll be able to have multiple sub-paths in the same shape, each of which may be open or closed.[/quote]

Sorry, it was late, and I was trying to get my head around the new ApplicationCommand stuff (rather neat). I’ll try and make sense this time. :oops:

Let’s say I have a shape with just three points. Currently jucer treats points 0 - 1 as a line, and it treats point 1 - 2 as a line. If I turn on closed contour, points 2 - 0 are _shown_ as a line, but that line cannot be edited in the way that other lines can. I.E. lines 0,1 and 1,2 can be set to quadratic, whereas the virtual line 2,0 is fixed linear.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 24, 2006, 2:17pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/17 "2006-05-24T14:17:22Z")

</div>

Yes, that’s just because everything maps onto the items in the Path object - so the closing line represents the final “closeSubPath” item, which can only be a line. You can of course move the end point to the same place at the starting point so you don’t see the line. That’s something that should probably be done automatically by a smarter UI.

---

<div class="post-metadata">

**Author:** ![NiallM](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/niallm/32/293_2.png) [@NiallM](https://forum.juce.com/u/NiallM)\
**Post date:** [May 24, 2006, 7:35pm UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/18 "2006-05-24T19:35:14Z")

</div>

Seems I’m a bit late here, but I have to agree, the jucer is very cool 8). I can see it saving me a lot of time in the future…

- Niall.

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 25, 2006, 2:05am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/19 "2006-05-25T02:05:14Z")

</div>

jules, about 1.31 new TabPanel additions… i’ve found that if doing

[code]void TabbedComponent::removeTab (const int tabIndex)  
{  
Component\* const c = contentComponents [tabIndex];

```
if (c != 0 && c->getComponentPropertyBool (T("deleteByTabComp_"), false, false))
{
    if (c == panelComponent)
        panelComponent = 0;
	delete c;
}

contentComponents.remove (tabIndex);

tabs->removeTab (tabIndex);

```

}[/code]

is not leaking in the case you are removing the selected tab (and also deleting its content component), cause when u fires up the changeCallback, and c == panelComponent, then panelComponent isn’t valid anymore…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 25, 2006, 7:53am UTC](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850/20 "2006-05-25T07:53:18Z")

</div>

[quote=“kraken”]jules, about 1.31 new TabPanel additions… i’ve found that if doing

[code]void TabbedComponent::removeTab (const int tabIndex)  
{  
Component\* const c = contentComponents [tabIndex];

```
if (c != 0 && c->getComponentPropertyBool (T("deleteByTabComp_"), false, false))
{
    if (c == panelComponent)
        panelComponent = 0;
	delete c;
}

contentComponents.remove (tabIndex);

tabs->removeTab (tabIndex);

```

}[/code]

is not leaking in the case you are removing the selected tab (and also deleting its content component), cause when u fires up the changeCallback, and c == panelComponent, then panelComponent isn’t valid anymore…[/quote]

Ah, yes - thanks kraken, that’s a good fix!

[Next page](https://forum.juce.com/t/version-1-31-and-the-jucer-v1-0/850.md?page=2)
