View unanswered posts | View active topics It is currently Sat May 25, 2013 8:03 am



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page 1, 2  Next
 bbBroam (0.0.2) stylized broamer project 
Author Message
BBWise

Joined: Mon Apr 24, 2006 9:47 am
Posts: 57
Reply with quote
Post bbBroam (0.0.2) stylized broamer project
EDIT: Version 0.0.2 * for bbLean only. Sources and a xoblite test version in separated zip files.

This version can be compiled for xoblite (#define XOBLITE preprocessor directive must be present at the beginning in bbbroam.cpp) and while not fully tested, it runs (starts at least) on xoblite.

TrackhedProductions suggested a MRU list like bbRun. It currently works but bbBroam itself doesn't know what's useful to store in the list, so it sends everything. Also you can manually set the MRUlist file to use (look in the .rc file). When using bbRun's MRUlist, bbBroam lines are not remembered however, because bbRun is not supposed to store @bbrun.run broams in its list, ATM.

(*) I got ill when i was programming this (not because programming i think but some cold weather viruses) for some weeks then i found out this new version was already working and it wasn't posted yet.

changelog:

0.0.2 (2007-06-02)
Added: MRU list. (test)
Fixed: some xoblite-compatible code.

0.0.1g (2007-05-30)

Fixed: Window positioning bug (when not using slit)
Fixed: Focus bug (Now it works and also restores previous focus)
Tested: 'Hidden Slit' option was tested

0.0.1f (2007-05-29)

added: xob compatibility, by unkamunka
fixed: 'About' dialog wasn't properly set and crashed blackbox.
Fixed: 'On Left Click' option was meant to be 'On Right Click'

---------------------------------------
* Why bbLean? At the moment the plugin is just a few ideas, and most of them don't work under xoblite because they were conceived very 'bbLean-ish ' If you know what makes these two great shells different you'll know what I'm talkin' about.
Maybe part of this plugin plus some cool xob ideas could deliver something good for xoblite...
----------------------------------------

This thingie was first intended as bbRun's interface, but then I changed my mind and decided it could be separated and use bbRun through @bbrun.run bro@m (which sends a line to bbRun just as if was typed in its dialog box). This way it suits to people who want to use the keyboard but also want a clickable, slittable, visible (maybe more hideable in the future) and stylized input box.

The project's first aim is to make a good console-like interface with bblean looks and behavior. Extra functionality like uberbox or bbrun is planned only after reaching its first aim.

bbBroam current features:
    -You can type n send bro@ms.

    -If no bro@m is typed, it sends your input as a Default Bro@m's argument . Preset is @bbrun.run <whatever you type> and the rest is bbRun's job. (The 'Default Bro@m' can be set it to anything, a plugin or program receiving instructions, for example.)

    -CTRL+RightClick on the label/border zone (label can also be set) -> bbBroam menu.
    -CTRL+LeftClick on label/border -> Move
    -ALT+LeftClick on label/border -> Resize
    -Text zone size/position can be configured by rc settings.

    -bro@ms:

      @bbBroam.drawBorder
      @bbBroam.hiddenSlit
      @bbBroam.alwaysOnTop
      @bbBroam.useSlit
      @bbBroam.snapWindow
      @bbBroam.alphaEnabled
      @bbBroam.alphaValue
      @bbBroam.pluginToggle
      @bbBroam.windowText
      @bbBroam.defaultBroam
      @bbBroam.onLeftClick
      @bbBroam.editRC
      @bbBroam.focus


'Hidden Slit' option explained:

When you do @bbbroam.focus (usually by hotkey) and bbSlit is hidden, bbBroam will work but it won't show up so you don't see what you're typing.
If "Hidden Slit" is activated, bbBroam assumes that bbSlit is hidden, and toggles the slit before getting focus, then toggles it again when you leave it
(<ESC> or <ENTER>). If you use bbBroam in slit mode like most slit plugins (mouse-controlled) then you don't have to worry. :)

----------------------

So, that's it. Just this little box at the moment.
Code is included. I built it from bbSDK code by grischka (the Messiah :D) also inspired by stuff from tresni's sources mainly.

Feel free to make suggestions, etc...

Observations / Known bugs:
-Some useful bbbroam.rc settings may be not present in the config menu yet.
Bug: Lack of some borders when in slit. Frame looks smaller than plugin.


    Attachments:
    File comment: xob-test
    bbBroam002xob.zip [19.53 KiB]
    Downloaded 103 times
    File comment: src
    bbBroam002src.zip [42.49 KiB]
    Downloaded 95 times
    File comment: 0.0.2
    bbBroam002.zip [7.32 KiB]
    Downloaded 177 times


    Last edited by the-r- on Thu Jul 12, 2007 4:33 am, edited 17 times in total.

    Sat May 26, 2007 12:50 am
    Report this post
    Profile
    Sponsored Links
    Google Adsense


    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    Wild "off the top of my head" suggestion:
      How about having it pop up with a list|menu of "your favourite Broam" entries - sourced from bbBroam.rc? (OnClick would run that particular Broam.) That way you wouldn't have to carry so many Broams around in your head. :D Of course, you could set up the same functionality in bbInterface, but the maintenance could get rather fiddly. :wink:


    Sat May 26, 2007 11:23 am
    Report this post
    Profile
    BBWise

    Joined: Mon Apr 24, 2006 9:47 am
    Posts: 57
    Reply with quote
    Post 
    unkamunka wrote:
    Wild "off the top of my head" suggestion:
      How about having it pop up with a list|menu of "your favourite Broam" entries - sourced from bbBroam.rc? ...]


    That's interesting. I do that kind of job with aliases in bbrun, and I use a menu with favorites (@bbcore.showmenu fav.rc alias 'fav'). However this plugin is just an idea at the moment, and I'd like to update its aesthetics aspects first, to make it look and behave like most bb plugins.
    I'm not into bbinterface/tcl yet, and maybe the same can be done there. (I haven't seen the recent works at it...)
    The plugin's source code is c/c++ and it's made look easy with comments everywhere, so if anyone is interested in coding and adding stuff, or use this as part of a bigger thing, then feel free to do it. Just keep it as documented as possible (put comments in the sources, use descriptive names for variables in complex parts, etc.)


    Sat May 26, 2007 2:16 pm
    Report this post
    Profile
    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    All said, it's good that you chose to branch this out of bbRun. (BTW thanks for that update.) :D

    Minor niggles:
      RightClick on the text on Enter in the interface produces the Menu specified in bbBroam.rc - LeftClick does "nada - y pues nada".
      For the life of me, I can't figure out what @bbBroam.hiddenSlit is meant to do. (Maybe I'm just being thick.) :)
    The code makes a call to GetMonitorRect when loading. This is not supported under xoblite - which means that it (presently) won't run under that shell. (There may be other issues FAIK.)


    Sun May 27, 2007 4:21 pm
    Report this post
    Profile
    BBWise

    Joined: Mon Apr 24, 2006 9:47 am
    Posts: 57
    Reply with quote
    Post 
    unkamunka wrote:
    All said, it's good that you chose to branch this out of bbRun. (BTW thanks for that update.) :D


    Yeah, I still think bbRun would look pretty with a more bb-style, but not yet. I need some improvements.
    unkamunka wrote:
    Minor niggles:[list]RightClick on the text on Enter in the interface produces the Menu specified in bbBroam.rc - LeftClick does "nada - y pues nada".

    Sorry. A lefty's mistake. Gonna change bro@m name to "RightClick".

    unkamunka wrote:
    For the life of me, I can't figure out what @bbBroam.hiddenSlit is meant to do.


    Sorry again... I can't even remember what was that supposed to be :oops:
    Could be related to the focus problem when the plugin is in slit. A possible idea to solve it, not complete though.

    unkamunka wrote:
    The code makes a call to GetMonitorRect when loading. This is not supported under xoblite - which means that it (presently) won't run under that shell.


    Yeah, that's bbLean-only I think. I did it the easy way. Must be rewritten for wider compatibility.

    Thanks a lot for your comments. :)


    Sun May 27, 2007 7:20 pm
    Report this post
    Profile
    Boy meets Box
    User avatar

    Joined: Fri Dec 29, 2006 2:47 am
    Posts: 623
    Location: in front of the monitor.
    Reply with quote
    Post 
    I can't believe I've missed this for months. :shock:

    Amazing. 1 day of usage so far and I'm loving it.

    _________________
    attack of the mini-man!
    bb4win FAQs
    mini-man-land


    Mon May 28, 2007 12:26 am
    Report this post
    Profile YIM WWW
    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    This is a recompiled version that runs under both xoblite and bbLean. :D

    The only functional difference between this version and 0.01g is that the call to GetMonitorRect has been commented out - as this prevented it loading under xoblite. Conditional compilation for this call is not possible - as it is outside the scope of the Shell API.

    (GetMonitorRect not being there may remove the hiddenSlit functionality - for those who wish to access bbBroam in an autohidden Slit.)

    The default bbbroam.rc contains 2 different bbBroam.onRightClick: settings - as menus work differently under xoblite.

    As xoblite users (may) know, @xoblite Menu SetRCPath <path> resets your entire default menu. This is the default bbBroam.onRightClick setting in bbbroam.rc for xoblite users. There is also a "Houdini" broam in the default replacement menu (broams.rc) - which will get your original default menu back. More xoblite specific broams can be found here.

    changelog:

    0.01h (2007-06-12)
    * full functionality under xoblite
    * conditional compilation (in 0.0.1g) removed

    0.0.1c (2007-05-30)
    * onLeftClick has been renamed onRightClick. :)
    * the text at the left of the window is no longer configurable.

    You may have to keep it permanently loaded in the Slit. YMMV

    The attachment unzips an entire bbBroam folder - source code included.

    [Edit: This build requires the MSVC 8 runtimes - downloadable here ].


    Attachments:
    File comment: full functionality under both bblean &amp; xoblite. sample broams.rc included for xoblite users.
    bbBroam01h.zip [18.96 KiB]
    Downloaded 135 times

    _________________
    HTH

    unkamunka - #bb4win


    Last edited by unkamunka on Fri Jun 15, 2007 2:05 pm, edited 7 times in total.

    Mon May 28, 2007 10:43 am
    Report this post
    Profile
    BBDinosaur

    Joined: Tue Feb 27, 2007 9:12 am
    Posts: 311
    Location: Behind The Couch
    Reply with quote
    Post 
    i get an incompatability error on latest bbleanmod build with this mod, Unkamunka


    Mon May 28, 2007 11:25 am
    Report this post
    Profile
    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    TrackhedProductions wrote:
    i get an incompatability error on latest bbleanmod build with this mod, Unkamunka
    Trackhed, my apologies, it needs the MSVC 8 runtimes (see my now edited post). Your post got up before the edit to mine.


    Mon May 28, 2007 11:42 am
    Report this post
    Profile
    Boy meets Box
    User avatar

    Joined: Fri Dec 29, 2006 2:47 am
    Posts: 623
    Location: in front of the monitor.
    Reply with quote
    Post 
    Ok er...few problems.

    1) Default text thingie doesn't work anymore
    2) Menu item also needs to be changed to On Right Click

    (these are with unkamunka's mod)

    _________________
    attack of the mini-man!
    bb4win FAQs
    mini-man-land


    Mon May 28, 2007 1:33 pm
    Report this post
    Profile YIM WWW
    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    Minor bug fixes and a feature addition. :) The visibility outside the Slit issue remains unresolved. :(

    The attachment to my upload post has been changed as nothing has been taken out. (Tested on bbClean & xoblite on win2k & on vista.)

    All the menu issues that folks have mentioned here & on #bb4win have been cleaned up.

    There is one new menu addition - Read Settings - meaning that (other than resizing - see below) no overall reload is needed.

    FWIW settings are rewritten immediately on changing the FE. They are not overwritten on unloading.


    Mon May 28, 2007 4:57 pm
    Report this post
    Profile
    BBWise

    Joined: Mon Apr 24, 2006 9:47 am
    Posts: 57
    Reply with quote
    Post 
    Thanks a lot unkamunka! I've fixed and updated to version 0.0.1f with the corrections you've made for xoblite as precompiler directives (#ifdef VC_EXTRALEAN #ifndef...) I have not tested it though (with xoblite) I hope it works... :)


    Tue May 29, 2007 4:18 am
    Report this post
    Profile
    Moderator
    User avatar

    Joined: Sun Feb 04, 2007 2:57 pm
    Posts: 1008
    Location: austria
    Reply with quote
    Post 
    The kind words are much appreciated.

    As written, the conditional compilation does not work on xoblite. :( I'll continue to try to finalise a workaround.


    Tue May 29, 2007 10:17 am
    Report this post
    Profile
    BBWise

    Joined: Mon Apr 24, 2006 9:47 am
    Posts: 57
    Reply with quote
    Post 
    I'm posting an update (0.0.1g) with the feature "Hidden Slit" tested.

    "Hidden Slit" is a half-solution to fix the focus problem when bbSlit is set to 'AutoHide'.
    I say "half" because the whole solution (the one I'm thinking about) is to check whether bbSlit.autohide setting is true or false in blackbox.rc. every time you do '@bbbroam.focus'. I didn't solved it that way because I thought opening another file would increase memory use for just a single check (I don't know really how much, bbLean people pls correct me if i'm wrong) and 'bbSlit.autoHide' is something I don't toggle very often.

    This feature's use is now explained in the main (first) post.

    unkamunka: I found a typo (my fault) and corrected it. Now it should compile fine.


    Wed May 30, 2007 12:59 am
    Report this post
    Profile
    BBDinosaur

    Joined: Tue Feb 27, 2007 9:12 am
    Posts: 311
    Location: Behind The Couch
    Reply with quote
    Post 
    i think that a most recently used option would be extremely useful in this (like bbrun's mru selection)


    Wed May 30, 2007 1:31 pm
    Report this post
    Profile
    Sponsored Links
    Google Adsense


    Display posts from previous:  Sort by  
    Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page 1, 2  Next


    Who is online

    Users browsing this forum: No registered users and 0 guests


    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum

    Search for:
    Jump to:  
    cron
    Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
    Designed by ST Software for PTF.