PDA

View Full Version : using my bsm mockup for the web based configuration


delfick
April 12th, 2007, 07:43 AM
as mentioned in this thread http://forum.compiz.org/viewtopic.php?t=776 (post number 10)

it would be possible to use the mockup i made before the bsm as an actual settings manager for compiz, using the web based configuration thingo (my mockup was based on the mockup the bsm was based on :P) http://delfick.storage.googlepages.com/mockup5.html
(main points there is the groups have drop down menus and the "show all plugins" button at the bottom)

anywho, i don't have time to try and figure that out.......but i really want this to be used :D

so i'm wondering if someone else could help me out...... ??

here is the fla http://delfick.storage.googlepages.com/mockup6.fla

unfortunately whilst i did get carried away with it, i only intended it to be a mockup, and back then i had never used arrays or functions before, so some of my methods were a little dodgy :P

though today i've spent a little bit of time trying to make it a little more dynamic http://delfick.storage.googlepages.com/mockup_current.fla

but i can't spend any more time on it today....

(i changed it so that every plugin was dynamically created according to the arrays i created (look under the "creation" folder on _root level)
and uses an image of format <plugin name>.png in the directory same to the swf
and i made the drop down menus resize themselves dynamically
changed a lot of things to use functions

(though in this one, the "alphabetical" option in the show all plugins button doesn't work, and i've spent too much time on this already so i won't try and fix it...(atm anyways :P))

i also don't have much time to be explaining how it works (mainly because it's so dodgy)....


but morale of the story, is there someone who can carry on from me, (you'd might want to rewrite it :P) and make this a possibility ??

thnx :D

(if you do, i'll try to explain how most of it works)

delfick
April 13th, 2007, 09:49 AM
anyone atleast like the idea of using my mockup as an actual settings manager ??

Spillaz
April 13th, 2007, 12:22 PM
If you could make the mockup a .html file (Because SUSE is retarded when it comes to these things) then I might agree.

Even though I havent seen it - here is three points I'd like to stress

-Most used settings in front page and a search box ;-)
-Simple mode much like gnome-compiz-manager and advanced mode much like what your mockup will be like
-Metaplugin vTables
- For example, Cube and Rotate Cube control pretty much the same thing so have their settings in one page
- Plugins like Ring and Switcher can also be grouped
- Firefly, Stars and Snow can be grouped
- Move, Resize, Put, Place, Winrules and State can be grouped. Honestly, who needs a whole settings page for "Windows are transparent when moved"
EDIT: A fourth ;-) : You should be able to specify the order in which plugins are loaded. I love Compiz ;-)


There ya go

mikedee
April 13th, 2007, 12:34 PM
EDIT: A fourth ;-) : You should be able to specify the order in which plugins are loaded. I love Compiz ;-)

This is actually an important feature most people miss. Some of the plugins have different effects depending on the order they are loaded in.

RYX
April 13th, 2007, 01:27 PM
Groups should be dynamic - the user needs the freedom to re-organize his plugin-groups in any way he likes. That's the major reason why it makes no sense to put the grouping into the plugins. The default groups should be a sane and common way to organize things but should still be totally customizable.

:)

fldc
April 13th, 2007, 01:28 PM
EDIT: A fourth ;-) : You should be able to specify the order in which plugins are loaded. I love Compiz ;-)

This is actually an important feature most people miss. Some of the plugins have different effects depending on the order they are loaded in.
But imo often also a bit of a problem, some orders plain just don't work and some make things behave very strangely, crash stuff or not work at all. I guess it could be quite confusing for some users when different orders makes compiz behave in different ways and not knowing what the correct way would be. Some room for improvement there :D

Spillaz
April 13th, 2007, 02:26 PM
Compiz should know b4 you make it crash and go HEY! YOU CANTETH DOETH THAT..ETH!

mikedee
April 13th, 2007, 02:37 PM
EDIT: A fourth ;-) : You should be able to specify the order in which plugins are loaded. I love Compiz ;-)

This is actually an important feature most people miss. Some of the plugins have different effects depending on the order they are loaded in.
But imo often also a bit of a problem, some orders plain just don't work and some make things behave very strangely, crash stuff or not work at all. I guess it could be quite confusing for some users when different orders makes compiz behave in different ways and not knowing what the correct way would be. Some room for improvement there :D

I think its more a job for the configuration app. Its only really advanced users who will want to tweak the loading order. It should never crash though.

mikedee
April 13th, 2007, 02:38 PM
Compiz should know b4 you make it crash and go HEY! YOU CANTETH DOETH THAT..ETH!

The reason it crashes is because something unexpected happened, you cannot predict the unexpected by definition.

stjepan
April 13th, 2007, 04:02 PM
Buttons on top, buttons on left, buttons on right... hey, it's a jungle! :x
Make a long list of buttons of all plugins (just like in the old csm) on the left and a list of the available options (but not in tabs!!) on the right. This one will be a loooong list, but there should be a small search box below it.

This way everything would be so much easier...

delfick
April 14th, 2007, 12:22 AM
Buttons on top, buttons on left, buttons on right... hey, it's a jungle! :x
Make a long list of buttons of all plugins (just like in the old csm) on the left and a list of the available options (but not in tabs!!) on the right. This one will be a loooong list, but there should be a small search box below it.

This way everything would be so much easier...

and for me groups are easier :D

everyone is different

hence that would be a choice :D

anywho, back to the question in my second post, who likes the idea of using my flash mockup as an actual settings manager ????




so then...via actionscript how can we get a list of plugins, their default grouping (we can make the groups editable in the flash mockup )....and whether they're enabled or not...

Spillaz
April 14th, 2007, 12:04 PM
Hmm. Can you get an OSS *fla editor?

delfick
April 14th, 2007, 12:36 PM
Hmm. Can you get an OSS *fla editor?

if only there was .....

there is flash4linux http://f4l.sourceforge.net/

though i'm not sure how useful that would be ....

Spillaz
April 14th, 2007, 12:39 PM
Compiz should know b4 you make it crash and go HEY! YOU CANTETH DOETH THAT..ETH!

The reason it crashes is because something unexpected happened, you cannot predict the unexpected by definition.

Hmm. I meant more like when you try to apply something a dialouge will pop up saying that this config will crash compiz, do you want compiz to fix the plugin order? (Yes/No) (No would be for developers and such)

delfick
April 14th, 2007, 01:10 PM
and this http://code.google.com/p/asproject/

RYX
April 14th, 2007, 01:36 PM
Hmm. Can you get an OSS *fla editor?
There is nothing really useful afaik. I can give you an ActionScript-syntax file for SciTE with autocompletion for most things. You simply hit F5 and your script is compiled to an SWF. Or maybe FlashDevelop meanwhile runs on mono (which I highly doubt because the creators were not very interested in that last time I asked).

There are two free (one open-source) Actionscript2SWF-compilers (flexSDK and MTASC) - you will need to code in ActionScript anyway so why not do it the OSS-way? Creating dynamic UIs in Flash is extremely cool and fun ... I can guide and help you but I have no time to do it myself.

After Adobe have open-sourced the ActionScript-virtualmachine, ActionScript can be called a real "open-source" language, while the FLA-format is a proprietary format owned by Adobe.

The asproject looks nice, but it uses the discontinued MTASC which only offers Actionscript2 and needs swfmill for compiling resources into the swf-file ...

:)

(whoohoo - my 888th post :D)

delfick
April 14th, 2007, 01:48 PM
Creating dynamic UIs in Flash is extremely cool and fun ...

as in the whole thing would be actionscript ??

without using the ide once ??

cool :D

(whoohoo - my 888th post :D)

lol, soon you'll pass my post count on the beryl forums (especially since i've stopped reading most of it..... (time is evil)

Spillaz
April 14th, 2007, 03:36 PM
Delfick, can you PLEASE turn that *fla to an swf in html. It's important to us windows deprived users (Well I have windows, but I prefer not to use it because its like taking a ferarri, ripping the engine out and pulling my laptop behind with an exhauseted donkey

delfick
April 14th, 2007, 03:51 PM
Delfick, can you PLEASE turn that *fla to an swf in html. It's important to us windows deprived users (Well I have windows, but I prefer not to use it because its like taking a ferarri, ripping the engine out and pulling my laptop behind with an exhauseted donkey

(sry, i thought you were talking about embedding the swf in a html....)

so then what do you mean by that ??

Spillaz
April 15th, 2007, 01:56 AM
Delfick, can you PLEASE turn that *fla to an swf in html. It's important to us windows deprived users (Well I have windows, but I prefer not to use it because its like taking a ferarri, ripping the engine out and pulling my laptop behind with an exhauseted donkey

(sry, i thought you were talking about embedding the swf in a html....)

so then what do you mean by that ??

I mean what you just said ;-) Turn it into an swf embedded in html so we can all see it (Not everybdy has Flash MX//2004/8/9/10/Windows you know ;-))

Thx

delfick
April 15th, 2007, 02:27 AM
Delfick, can you PLEASE turn that *fla to an swf in html. It's important to us windows deprived users (Well I have windows, but I prefer not to use it because its like taking a ferarri, ripping the engine out and pulling my laptop behind with an exhauseted donkey

(sry, i thought you were talking about embedding the swf in a html....)

so then what do you mean by that ??

I mean what you just said ;-) Turn it into an swf embedded in html so we can all see it (Not everybdy has Flash MX//2004/8/9/10/Windows you know ;-))

Thx

second link on the first post of this thread

and the link i put into the beryl forums thread



----->>>>> http://delfick.storage.googlepages.com/mockup5.html <<<<<<---------

:P :D

Spillaz
April 15th, 2007, 10:34 AM
I meant your work in progress one ;-)

delfick
April 15th, 2007, 10:42 AM
I meant your work in progress one ;-)

ohhhh....

there's no point really because it is exactly the same (except the search and alphabetical options in showall don't work yet, and the way it words "under the hood" is slightly different)

but here you go anyway :D http://delfick.storage.googlepages.com/mockupcurrent.html

Spillaz
April 15th, 2007, 01:37 PM
I meant your work in progress one ;-)

ohhhh....

there's no point really because it is exactly the same (except the search and alphabetical options in showall don't work yet, and the way it words "under the hood" is slightly different)

but here you go anyway :D http://delfick.storage.googlepages.com/mockupcurrent.html

thx ;-) :) :P :D

delfick
April 15th, 2007, 01:50 PM
thx ;-) :) :P :D

no probs :D :P



so then.....anyone know how to get the plugin list via actionscript ??

Spillaz
April 15th, 2007, 03:27 PM
thx ;-) :) :P :D

no probs :D :P



so then.....anyone know how to get the plugin list via actionscript ??

0o

I can make a ball bounce. Kinda - but it looks tacky

QUASAR
April 16th, 2007, 07:15 AM
Wow great mockup!, i want this settings manager please some one code it!!!

delfick
April 16th, 2007, 11:30 AM
Wow great mockup!,

thnx :D

i want this settings manager please some one code it!!!

me to :D

I can make a ball bounce. Kinda - but it looks tacky

so can i :D

and i can make it go in an endless circle too :D

make a movie clip and add this as the actionscript

onClipEvent (load) {
i=0
}
onClipEvent (enterFrame) {
this._x = 20*Math.sin(i*(Math.PI/180));
this._y = 20*Math.cos(i*(Math.PI/180));
i++
if (i == 360) {
i = 0
}
}


something like that anyways
much easier than trying to use the timeline and a motion path :D

Spillaz
April 16th, 2007, 11:34 AM
Wow great mockup!,


onClipEvent (load) {
i=0
}
onClipEvent (enterFrame) {
this._x = 20*Math.sin(i*(Math.PI/180));
this._y = 20*Math.cos(i*(Math.PI/180));
i++
if (i == 360) {
i = 0
}
}


something like that anyways
much easier than trying to use the timeline and a motion path :D

An SWF for us Flash deprived friends? ;-)

delfick
April 16th, 2007, 12:34 PM
An SWF for us Flash deprived friends? ;-)

fortunately for me, i've got macromedia flash to work with wine

unfortunately for me, lately i haven't been able to copy and paste anything (including text) within the program under wine

just then i created this http://delfick.storage.googlepages.com/circle.html in pure actionscript

i was going to post the actionscript file and a link to an actionscript compiler as shown before and say compile it yourself, but since i can't copy and paste, i can't copy and paste the code into an actionscript file and i have to get to homework now (meaning i can't be bothered booting into windows and copying the code)

anywho, if anyone else wants to do that in the meantime, here is the fla http://delfick.storage.googlepages.com/circle.fla....

delfick
April 17th, 2007, 12:45 AM
ok then, here is an actionscript file (this one is slightly different, it creates more than one movieclip from an array)...

http://delfick.storage.googlepages.com/buttoncreation.as


(here is the swf http://delfick.storage.googlepages.com/buttoncreation.swf,
(just edit http://delfick.storage.googlepages.com/circle.html to make it appear in a html file))


RYX, can you explain how to compile it without the flash ide please ?? :D

RYX
April 17th, 2007, 01:06 AM
Here is a simple example of an ActionScript3-"application". I added some comments so you should be able to understand whats what. You will need to download the free FlexSDK from Adobe in order to compile this into a swf-file ... (while you are getting the compiler, I will try to find the needed commandline for compilation :D ... too much python lately)


/**
* The main package (unnamed here because only needed by compiler)
*/
package {

/**
* Import all the stuff we need (yes, AS3 is much like Java) ...
*/
import flash.utils.Timer;
import flash.events.*;
import flash.display.Sprite;
import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.text.TextField;

/**
* The KeyTests-class. This class is the main "application"-container.
*/
public class KeysTest extends Sprite {

private var output_txt:TextField;

/**
* Constructor (The content of this function is similar to the
* first frame's attached script in the Flash IDE)
*/
function KeysTest () {
// setup stage
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
// create textfield
output_txt = new TextField();
output_txt.text = "Hello World!";
addChild(output_txt);
// init event-handling
stage.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys);
// check timer
var myTimer:Timer = new Timer(1000, 2);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}

public function timerHandler(event:TimerEvent):void {
output_txt.appendText("timerHandler: " + event);
}

private function trapKeys(e:KeyboardEvent) : void {
output_txt.text = String(e.charCode) + "/" + String(e.keyCode);
}
}

}

delfick
April 18th, 2007, 09:55 AM
cool

so where would i put the actionscropt from that .as file i posted before ???

RYX
April 22nd, 2007, 02:37 PM
I think you should just put it into some class, save that to an external file and then import it into the main app. Alternatively you could just dump the whole stuff into the constructor (function KeysTest) - AS should support nested functions. But it is a rather ugly way of doing it ...

With the Flex SDK you can compile an as-file to a swf-file with "mxmlc <filename>" ... so e.g. "mxmlc KeysTest.as" (note - the classname _always_ has to match the filename, for all classes).

:)

delfick
April 23rd, 2007, 02:03 PM
I think you should just put it into some class, save that to an external file and then import it into the main app. Alternatively you could just dump the whole stuff into the constructor (function KeysTest) - AS should support nested functions. But it is a rather ugly way of doing it ...

With the Flex SDK you can compile an as-file to a swf-file with "mxmlc <filename>" ... so e.g. "mxmlc KeysTest.as" (note - the classname _always_ has to match the filename, for all classes).

:)

is anyone willing to do that please ?? :D

i really don't have time :( (yet i keep checking these forums *hits self in head*)

delfick
May 6th, 2007, 02:39 PM
in the meantime whilst I wait for uni holidays to come so i can make the mockup better....

how will we display the settings in the flash mockup ??

delfick
August 12th, 2007, 03:40 PM
from http://forum.compiz-fusion.org/showpost.php?p=22015&postcount=93

Delfick why dont you just make flashbsm have a list of plugins not to show (i.e. gconf,ini, inotify, dbus, etc.) make groups for the compiz-core plugins, and use the grouping in the compiz fusion plugins for those plugins, this wayit can see any plugin that pops up tomorrow, and hide the unneeded ones :)

the plugins will be grouped and defined according to the plugins.xml file found in the xml folder in the same directory as flashbsm.html (latest files here http://delfick.projects.googlepages.com/flashbsm.zip )

though i'm gonna fix up the plugins.xml file sometime to make it slightly better, maybe even follow something like this http://docs.google.com/Doc?docid=dhk9csv4_236gnn2cs&hl=en

and i need a way of creating it without having to manually put in the names of all the plugins.....

but not for a while, i already spent too much time on it this weekend getting it to compile without the flash ide (read the readme in flashbsm.zip)

..... :D

though an exclude list is a good idea..... :D

some-guy
August 12th, 2007, 05:36 PM
if you have an exclude list:), you can have an option called "Show Advanced/Unneeded Features" which will show all of the plugins :D

delfick
August 12th, 2007, 05:40 PM
agreed.....

I must to look at making that possible sometime :D

some-guy
December 7th, 2007, 08:25 PM
any updates? :D

delfick
December 7th, 2007, 10:02 PM
nope

sorry

I sort of lost interest in doing this

mainly because I have absolutely no idea how to access compiz-fusion's settings via actionscript.

especially since mikedee dissapeared and stop work on cws (http://forum.compiz-fusion.org/showthread.php?t=753)

though this is as far as I got http://forum.compiz-fusion.org/showthread.php?t=2922&highlight=flashbsm (look at the last post)