[Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Re: [Plugin] ToolbarEditor (1.0.2) – updated 03.05.2013

Postby lionk » Tue May 07, 2013 8:57 am

Aerilius wrote:I could solve 1., 2. and 3., but I don't get an error when searching in LaunchUp for 面 or 测. Do you use the latest version of LaunchUp? Which version if Internet Explorer do you use?

yes,the version of LaunchUp is 1.0.11. and IE10.
LaunchUp_error.gif
0

lionk 
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby Aerilius » Fri May 10, 2013 9:10 am

Hi lionk,
can you try ToolbarEditor 1.0.4? It should now remember toolbar names and display Chinese correctly.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby CadFather » Fri May 10, 2013 9:38 am

Thanks Aerilius - just in case this means something to you i get this quite often when i press apply.

after this error, the toolbars i was in the process of creating are lost.

ted.png
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby Aerilius » Fri May 10, 2013 10:18 am

I don't get this and I can't see anything obvious around line 243. Also I don't use a any system calls.

It could be related to SketchUp's skp protocol [1,2,3].
Does this still occur with version 1.0.4, and if so, does it now show a different line?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby TIG » Fri May 10, 2013 10:24 am

line250
Code: Select all
var message = messageQueue.shift();
    if (!message) { ready = true; return; }
    // Lock the status variable before sending the message.
    // (because window.location is synchronous in IE and finishes before this
    // function finishes.)
    ready = false;
    var id = message[0],
        url = message[1],
        data = message[2];
    fillMessageField(id, data);
line260
IF 'id' OR more likely 'data' is somehow 'wrong' you get the error ? NULL ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby Aerilius » Fri May 10, 2013 10:39 am

If data or id could be wrong, no Ruby callback would happen. If url were wrong, IE would navigate to a not existing site. Nothing that gives such an error.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby CadFather » Fri May 10, 2013 10:59 am

only thing is i can't find any underlying pattern - unpredictable so far but i'll keep an eye on it (i'll have a go tonight with the new version. thanks!

also - i made a batch file to import export the registry settings but also i'm getting strange behaviour (when exporting) - will report more on this as it's great if one can save and share the same toolbar layout. overall it's getting better with each version, and the positions are kept more consistently.. great stuff!
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby Aerilius » Fri May 10, 2013 11:15 am

By the way, how many toolbars did you have roughly?
The information that I found says that there could be another url length limit around 500 (officially urls in IE can be 2083 characters long). This should not anymore an issue in ToolbarEditor 1.0.4.

With this test in the Ruby Console we could confirm whether this caused the error:
Code: Select all
count=0;w=UI::WebDialog.new;w.set_html("<html></html>");w.add_action_callback("a"){|d,p| count=p.length if p.length>count};w.show{ w.execute_script("var s='';for(var i=0;i<3000;i++){ s+='b';window.location.href='skp:a@'+s;}") }

It then envokes an Internet Explorer error (I get "Could not complete the operation due to error 800700a").
When I then enter "count" into the Ruby console, I get 2077.
Do you get the same error that you got previously ("The data area passed to a system call is too small")?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby CadFather » Fri May 10, 2013 11:56 am

only had two - will run the check later on though just in case
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby lionk » Sun May 12, 2013 1:59 pm

Aerilius wrote:Hi lionk,
can you try ToolbarEditor 1.0.4? It should now remember toolbar names and display Chinese correctly.

yes, toolbar names are remembered correctly!
but Chinese display not so well, still some encoding error if restart sketchup. :(
e.g.
工具栏
20130512201347.jpg

正常
20130512200149.jpg

if input"具" and restart SU,ToolbarEditor will never open again.

btw, i think it need to limit toolbar name if someone input nothing(the toolbar wont show), too many words or punctuation.
0

lionk 
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby lionk » Sun May 12, 2013 3:18 pm

the toolbar icon can't remove sometimes. i don't know how it happen...
do duplicated icons permit to add?
0

lionk 
 

Re: [Plugin] ToolbarEditor (1.0.4) – updated 09.05.2013

Postby lionk » Tue May 14, 2013 1:21 pm

unicode characters in the registry is right all the time.
ruby can parse it but html or js not.is the value UTF8?
0

lionk 
 

Re: [Plugin] ToolbarEditor (1.0.5) – updated 15.05.2013

Postby Aerilius » Wed May 15, 2013 3:22 am

I could not reproduce the problem with the same toolbar names (工具栏, 正常, 具) after restarting SketchUp and opening the toolbar editor. I will continue try.

I updated the webdialog with improvements for higher dpi settings.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby cmeed » Thu May 16, 2013 6:23 pm

This looks great but I'm missing icons? any ideas.....

RickW wrote:Has anyone else had problems with not all commands being available? I'm also missing a lot of icons that exist on other toolbars.



cheers
c
0
User avatar
cmeed 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Dave R » Thu May 16, 2013 6:29 pm

Do you have those icons on the existing original toolbars?
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby cmeed » Thu May 16, 2013 6:50 pm

Yes I do, they are all there.
0
User avatar
cmeed 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Aerilius » Thu May 16, 2013 11:09 pm

Can you right-click on the missing icons and get the image file path? Maybe some commands return an unusual file path?

Or it is a timing issue, maybe Fredo uses layz-loading techniques, or his tools take longer to load?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby cmeed » Thu May 16, 2013 11:36 pm

im not sure how to do what you asked. right clicking the icons - in the toolbar? (nothing)
right clicking in toolbarEditor? (nothing in the menu that come up that looked familiar)


some of fredos icons work. is it possible to compare and find the answer?
0
User avatar
cmeed 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.5) – updated 15.05.2013

Postby lionk » Wed May 22, 2013 5:24 pm

Aerilius wrote:I could not reproduce the problem with the same toolbar names (工具栏, 正常, 具) after restarting SketchUp and opening the toolbar editor. I will continue try.

I updated the webdialog with improvements for higher dpi settings.


hi Aerilius,
maybe fredo6's methord can solve the UTF8 issue. fredo6's plugins show Chinese very well.
20130523000502.jpg
0

lionk 
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby ely862me » Wed May 22, 2013 5:40 pm

What about these ones ?
toolbar editor plugin.jpg

toolbar editor plugin b.jpg




After choosing yes I get this :
0
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me 
Top SketchUcator
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Aerilius » Wed May 22, 2013 10:52 pm

Are you sure you use the latest version?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby ely862me » Thu May 23, 2013 8:34 am

I installed it from the scf plugin store and I thought it was the last version but it was not, now it works !

Thank you !
0
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me 
Top SketchUcator
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby TIG » Thu May 23, 2013 8:55 am

ely862me wrote:I installed it from the scf plugin store and I thought it was the last version but it was not, now it works !
Andreas updated this toolset twice on the same day, so the second version was not automatically picked up... v1.0.6 will be added to the 'SketchUcation Plugin Store' shortly...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby thomthom » Fri May 24, 2013 1:25 pm

Andreas, here's a nice idea that I liked. That in addition to customize toolbar one could paste a snippet for a completely new command: viewtopic.php?f=15&t=52454&p=475992#p475990

This would be a great tool. You think this tool can be tweaked for that?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Bob James » Mon Jun 10, 2013 6:31 am

1. Can someone write a sample ruby script to make an icon for a native command that has no icon so I can use it to add the icon to a toolbar made with ToolbarEditor?

2. How do you delete an icon in a toolbar made with ToolbarEditor?


3. How do you delete a toolbar made with ToolbarEditor?
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby CadFather » Mon Jun 10, 2013 9:06 am

1 - which one?
2 - click on the icon and drag it slowly on the right panel
3 - click on the minus sign - top right of your toolbar header
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Bob James » Mon Jun 10, 2013 10:31 am

CadFather wrote:1 - which one?

Generically so I could modify it for any command

CadFather wrote:2 - click on the icon and drag it slowly on the right panel

Thank you

CadFather wrote:3 - click on the minus sign - top right of your toolbar header

duh :oops:
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Aerilius » Mon Jun 10, 2013 2:08 pm

As in the API documentation… http://www.sketchup.com/intl/en/develop ... ommand.php
Code: Select all
cmd = UI::Command.new("name of the command"){
  AuthorModule::PluginName.name_of_the_main_method()
}
cmd.tooltip = "tooltip that describes the command"
cmd.status_bar_text = "text that tells how to use the command"
cmd.large_icon = "./path/to/a/icon24px.png"
cmd.small_icon = "./path/to/a/icon16px.png"

It still can only be used with understanding of what it does, and you would have to look up how a certain plugin is started.

It would probably be sufficient and much easier to edit the plugin's own ruby file, look for "UI::Command.new" and add the icons. The icon path can either be relative to the ruby file or absolute (to the system's root, ie. "C:/" on Windows).

Some plugins add themself only to the menu without creating a command. That looks like this:
Code: Select all
UI.menu("plugins").add_item("name of the command"){ name_of_the_method }

and can be replaced by a command object (as above) plus
Code: Select all
UI.menu("plugins").add_item(cmd)
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby danb » Mon Mar 31, 2014 6:20 pm

Hello, could anyone help. I used this plugin with 2013 but it does not seem to work with 2014. I find it very useful, particularly as I use a mac and you can't stack the toolbars as you do on windows

many thanks

Dan

Macbook Pro
OSX 10.9
Sketchup Pro 2014
0
Sketchup Pro 2019/20
OSX 10.15.3
Macbook Pro

danb 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.0.6) – updated 15.05.2013

Postby Aerilius » Sat Apr 05, 2014 5:23 pm

If you are curious, you can have a sneak-peak on the next version 1.1.0 with custom buttons. You will be able to create your own toolbar buttons for Ruby one-liners, code snippets or other things found on the forum.
0
Last edited by Aerilius on Sat Apr 05, 2014 6:46 pm, edited 1 time in total.

Aerilius 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: agcali21 and 14 guests

Visit our sponsors: