Commit Graph

3857 Commits

Author SHA1 Message Date
Michael Yoshitaka Erlewine
dde2b6ffad UI: bugfix: rm reference to getVisibleTab(); doc fix 2010-07-10 22:26:12 -05:00
Raymond Lee
a0c22d0035 patch for bug #577651
* Create a new tab in a group which has  more than one tab. While in
tabcandy, close that tab. Now you're zoomed into the tab to its left.
You should instead remain in TabCandy.
* Another improvement for the command+e keyboard combination.
2010-07-09 12:44:59 -07:00
Michael Yoshitaka Erlewine
84cd66763c UI: reusing getAllTabs more; killed getVisibleTabs as it was not doing what it stated... replaced with getVisibleTabCount 2010-07-09 12:17:51 -07:00
Raymond Lee
da2bde36ec some patches for bug #577650
+ Create two groups; one with a single tab and another with several
tabs. Go into the single tab and then close the tab. You return to the
TabCandy interface as you should, but you see one of the other tabs
zooming out. There should be no zoom out in this case. [RAYMOND]
+ Cmd+e key combination is not working in the tab candy.
+ close buttons on tabs are still not showing correctly.  Add a bunch
of tabs to the tabstrip so all close buttons for background tabs are
hidden, go into Tab Candy interface and remove tabs until you know the
close buttons should appear.  Then, zoom into a tab and the close
buttons on back
2010-07-09 12:02:32 -07:00
Michael Yoshitaka Erlewine
f8e44e9f95 quickly patching a bug for new tab position in tab bar 2010-07-09 11:43:07 -07:00
Michael Yoshitaka Erlewine
429075dbe4 UI: added getAllTabs, inspired by Raymond's patch. cleaned up urlbar method. 2010-07-09 10:09:32 -07:00
Raymond Lee
a1bde0444f refactored showOnlyTheseTabs (bug #577649) 2010-07-09 09:53:19 -07:00
Ian Gilman
fbc3e0cf26 + The first-run help item now has a close box (that works) 2010-07-07 17:19:28 -07:00
Ian Gilman
3392c9ea17 + started work on the first run experience: everything goes into a single new group, and there is an info item as well
+ Added "reset" to the dev menu so we can test first run (since the reset button is currently AWOL)
+ Added Utils.assertThrow(), an assert that throws an exception
2010-07-07 17:04:01 -07:00
Ian Gilman
6f5d3f335b + Moved our platform-independent tabcandy.css to browser/base/content/tabcandy/
+ Created a platform-specific css file for tabcandy in the theme directory.
+ Copied the Mac TabCandy theme additions into the Windows and Linux themes.

--HG--
rename : browser/themes/pinstripe/browser/tabcandy/tabcandy.css => browser/base/content/tabcandy/tabcandy.css
2010-07-07 15:00:11 -07:00
Ian Gilman
9101e912d9 + Now storing item z separately from the DOM (as the DOM appears to be unreliable in our new world, at least at startup). This fixes issues with tabs not appearing in their groups at startup 2010-07-07 14:12:04 -07:00
Ian Gilman
cddf170d3c + fixed: Bug 576786 - Resizing sometimes gets stuck in a state where it thinks we're still dragging, though we're not. 2010-07-07 11:09:04 -07:00
Bobby Holley
57fe00ab9a Bug 576621 - clearing cache does NOT clear cached images.r=joe,gavin 2010-07-11 21:01:53 -04:00
Raymond Lee
34b7192de1 Update several features for visible tabs: bookmark all tabs, reload all tabs, close other tabs, list all tabs drop down menu and tab context-menu 2010-07-07 10:32:42 +08:00
Raymond Lee
a1a92553c9 Another patch for bug 576393 2010-07-07 09:50:15 +08:00
Ian Gilman
04055a8fc5 + Hack to get dev menu to appear: stuck it at the top
+ Misc documentation fixes
2010-07-06 16:22:57 -07:00
Aza Raskin
274b308844 + Slightly darker lines
--HG--
extra : rebase_source : f8c0a1c8fbd9bf40331d1a12306faf4e45d1e8f3
2010-07-06 00:41:27 -07:00
Raymond Lee
49c64b20f8 Another fix for Bug 576393 2010-07-03 15:03:56 +08:00
Ian Gilman
bfad70eae1 + The dev menu isn't appearing. Added a try/catch to see if that would illuminate anything. It did not. Will dig in more after applying all the patches. 2010-07-06 14:53:40 -07:00
Raymond Lee
0016837ea3 Another fix for Bug 576424 2010-07-03 12:33:33 +08:00
Raymond Lee
da72e32d10 Partial fix for Bug 576427 2010-07-04 00:08:34 +08:00
Ian Gilman
3f183ad97a + merge 2010-07-06 14:14:01 -07:00
Ian Gilman
bf54a8a660 + added "all tabs" button back to the tab bar (restore defaults to see) 2010-07-06 14:10:55 -07:00
Michael Yoshitaka Erlewine
2f00a7d485 + xDensity and yDensity computation for Group's 2010-07-06 11:42:23 -07:00
Raymond Lee
0d9685bdf3 Show the tabcandy button at the right end of tabstrip 2010-07-05 12:18:12 +08:00
Michael Yoshitaka Erlewine
e95d453522 UIClass.resize now triggers Item.snap on each resized item. But in general, UIClass.resize/Item.squish/unsquish logic is crazy, should be rewritten. 2010-07-03 21:41:31 -04:00
Michael Yoshitaka Erlewine
0e7c75543a - moved Trench.radius to be a getter and always reflect Trenches.defaultRadius.
- moved Group._getBoundingBox to Groups.getBoundingBox; now a better algorithm which is order-independent.
- modified "drag tab onto another tab" action's phantom group computation using getBoundingBox: now a touch more realistic.
+ Item.snap, which is used to instantaneously resituate oneself into a more trench-inspired position, using wider radius trenches.
- Group constructor now runs Item.snap, so all new groups are marginally better positioned.
- correcting my foolish ways: replacing some tabs with spaces.
2010-07-03 21:13:31 -04:00
Michael Yoshitaka Erlewine
d5381b1eee quick bugfix to an assert in Drag 2010-07-03 21:01:57 -04:00
Michael Yoshitaka Erlewine
a67cbf3b21 fixed a bug in delayInit 2010-07-03 21:00:43 -04:00
Michael Yoshitaka Erlewine
7bf7952b3a Group.isEmpty 2010-07-03 17:55:19 -04:00
Michael Yoshitaka Erlewine
e41c23897b + the notion of stationaryCorner to the Trench logic. this value specifies which corner of a bound must remain stationary while resizing. Normally this is the topleft, but in the case of dragging out new tab groups, it actually could be another corner, which means the snapping computation is different. Fixes a couple minor resizing bugs. 2010-07-03 16:55:54 -04:00
Michael Yoshitaka Erlewine
3eaf0547a0 createGroupOnDrag now snaps with trenches! 2010-07-03 15:44:35 -04:00
Raymond Lee
df2ef04b09 Fixed Bug 576393 - Tabs.onFocus() isn't working reliably 2010-07-02 17:28:53 +08:00
Ian Gilman
946b7587c0 + refactored Raymond's fix to Bug 576424 2010-07-02 16:33:33 -07:00
Raymond Lee
e9a223ccbd Fix Bug 576424 - We need to know when sessionstore is available 2010-07-02 13:27:49 +08:00
Ian Gilman
d2e5ab946e + Removed placebo hack from Storage.wipe()
+ Removed TabItems.reconstitute(), which we haven't actually needed for a while, but now it's also causing trouble
+ Removed Utils.activeWindow, which doesn't seem to work, and replaced its use in Utils.activeTab (the only remaining place it was being used) with Utils.getCurrentWindow(), which does seem to work
+ Utils.assert() now dumps a trace
+ Fixed paths to the edit pencil and new tab button images; they should now show up properly
2010-07-01 17:05:46 -07:00
Ian Gilman
ce235a0cf6 + merge 2010-06-30 11:49:31 -07:00
Ian Gilman
a22d6f6a96 + Just a little documentation update 2010-06-30 11:05:01 -07:00
Michael Yoshitaka Erlewine
f047b0120c pulling out extending guide trenches as per Aza's feedback. revert to 787f64274830 to try them again. keeping some bugfixes which were made during extending guide trench dev, though. 2010-06-30 11:32:17 -04:00
Michael Yoshitaka Erlewine
41fc519159 changing pageBounds and default guide ranges so that the extend animation looks better 2010-06-30 01:06:36 -04:00
Michael Yoshitaka Erlewine
3dfd5085de fixed a bug where showing a guide trench and then dragging over it slowly allows it to extend, even though it no longer is snapped to. 2010-06-30 00:49:30 -04:00
Michael Yoshitaka Erlewine
f1df140b2f guide trenches now originally start at their minRange range and then extend after a second 2010-06-30 00:46:15 -04:00
Michael Yoshitaka Erlewine
0509152a81 I was getting some errors about illegal values in arguments of getWindowValue; this seems to fix it. 2010-06-29 21:58:15 -04:00
Aza Raskin
0229c91fe4 + Trivial change 2010-06-29 16:39:48 -07:00
Ian Gilman
7dccaca304 + Fixed: Bug 575675 - FindChildWithRules aRelevantLinkVisited assertion when loading tabcandy page
+ The "code docs" item on the dev menu now opens the documentation from the repository into a new tab (used to open the local documentation, which doesn't exist in this new context, and replace the tab candy tab)
+ Removed the "tests" item from the dev menu, as they don't apply to this new context
+ Fixed an accidental comma in tabcandy.css (was disabling the pointer cursor for tabs)
2010-06-29 14:39:37 -07:00
Edward Lee
e46ce11140 Bug 574188 - Include individual js pieces into tabcandy.js and expose content and skin files with jar.mn
--HG--
rename : browser/base/content/tabcandy/tabcandy.xhtml => browser/base/content/tabcandy/tabcandy.html
2010-06-29 01:04:26 -07:00
Edward Lee
9470533a4d Bug 574188 - Add UI hooks to trigger tab candy 2010-06-29 01:04:22 -07:00
Edward Lee
e30e7f9427 Merge updates to tabcandy to mozilla-central. 2010-06-28 16:18:47 -07:00
Raymond Lee
a5bcf4381e Bug 572889 - Move TabCandy out of a tab and into a per-window xul:deck
Wrap the browser in a deck with an iframe for tabcandy.
2010-06-28 16:15:37 -07:00
Ian Gilman
1345ea6499 + Items no longer have reloadBounds; once the item is set up, we never pull location data off of the div 2010-06-28 16:11:22 -07:00
Ian Gilman
a71e6207a7 + Cleaned up inelegant box shadows per fryn's suggestion
+ Made the snap guides a little more subtle
2010-06-28 14:56:20 -07:00
Ian Gilman
3fc87452a5 + applying Raymond's fix for Bug 565968 - tab-switching keyboard shortcuts iterate over all tabs not just the active subset 2010-06-28 13:47:25 -07:00
Michael Yoshitaka Erlewine
d8c19dac06 move trench styling into CSS; fix trenches so that, if in showDebug mode, the trenches will stay drawn 2010-06-28 02:55:26 -04:00
Ian Gilman
611187d87b + merge 2010-06-25 16:10:52 -07:00
Ian Gilman
442793c33a + Removed icons that exist elsewhere in the browser; now using them instead
+ Our toolbar button now uses the standard toolbar button styling; we just apply a glyph to it
+ Went through the code with http://caja.appspot.com/tools/index and fixed a number of minor issues it found
+ Added "refresh" to the dev menu (since you won't be able to just refresh the tabcandy page once it's in the xul:deck)
2010-06-25 16:00:51 -07:00
Aza Raskin
4381ad18ee + Added a minimum size for groups. 2010-06-25 15:47:34 -07:00
Aza Raskin
98e3c972d2 + Cleaned up the code which changes the styling of a tabitems fav icon.
- The bite still exist, it just gets smaller.
2010-06-25 15:15:51 -07:00
Aza Raskin
0976054f8a + Updated the spec
+ Modified the tabitem layout code so that favicons are more sensibly handled at smaller sizes.
2010-06-24 23:59:32 -07:00
Ian Gilman
0e1ecccb88 + If a dragged item overlaps more than one droppable, the largest intersection wins
+ Added intersection and area to Rect
+ Cleaned out a little debug code
2010-06-23 17:10:16 -07:00
Raymond Lee
05507b3c3e Bug 572889 - Move TabCandy out of a tab and into a per-window xul:deck [r=iangilman]
Update code for tabCandy in xul:deck to not assume it's living in a tab and update various events and callbacks.

--HG--
extra : rebase_source : 7007f13f4e9e3ebd0eb38f91d41bccfa68b3099d
2010-06-23 17:25:34 +08:00
Edward Lee
3f0cdced0a Merge tabcandy to mozilla-central. 2010-06-28 15:47:09 -07:00
Michael Yoshitaka Erlewine
797662de01 much better tracking of exactly which trench did the snapping 2010-06-23 00:19:10 -04:00
Michael Yoshitaka Erlewine
4dc221167d previous fix to new tab tray allowed tabs to be *resized* into the new tab tray as well. fixed. 2010-06-22 23:52:40 -04:00
Michael Yoshitaka Erlewine
fe7085d194 some edges of TabItems were not projecting trenches on startup 2010-06-22 23:45:51 -04:00
Michael Yoshitaka Erlewine
bfb6038293 now can drag tabs onto new tab tray... now getSafeWindowBounds does *not* use getPageBounds at all. 2010-06-22 23:35:38 -04:00
Michael Yoshitaka Erlewine
e5c82716d2 first pass at drawing "guides" when you snap. In reality, they should only show up after you hold it in position for a half second or so, and the identification of which trench was actually used in snapping must be improved. Recommendation: do not ship this in this current iteration. 2010-06-22 23:18:40 -04:00
Michael Yoshitaka Erlewine
f31bd69cfd don't snap to anything (except edges) if you're on top of another group (fixes bug reported by Aza: snapping onto another group) 2010-06-22 23:16:49 -04:00
Michael Yoshitaka Erlewine
c641dffcb5 just some comments to pushAway and related functions; rm legacy squishModes; pushAway now uses Trenches.gutter for margins, and respects safe window bounds 2010-06-22 19:50:37 -04:00
Michael Yoshitaka Erlewine
fa20da4bf9 moved close button outside of the title bar so that it doesn't jump around on squish. 2010-06-22 19:47:02 -04:00
Ian Gilman
5b982f6faf + merge 2010-06-22 16:43:44 -07:00
Ian Gilman
992d4aee21 + In the quest to abolish reloadBounds(), I've rewritten draggable, droppable and resizable to operate on an item's bounds rather than directly on the div. I've also removed those routines from iQ, and integrated them into Item. Additional related cleanup and documentation.
+ Removed a little bit of aza debug code
+ Added size and position routines to Rect
2010-06-22 16:42:06 -07:00
Michael Yoshitaka Erlewine
5012dce24d don't snap if we're dragging over a drop-site. 2010-06-22 15:52:34 -04:00
Michael Yoshitaka Erlewine
c27f50120e + Range.overlaps; bugfix: border trenches unfortunately had an inappropriately large activeRange... fixed. This fixes the long-distance border-snapping which unfortunately shipped with 0.4 2010-06-21 22:32:07 -04:00
Aza Raskin
4c5092822c + Opacity was effected, so backed out my iQ change. 2010-06-21 18:05:46 -07:00
Aza Raskin
5809f069f0 +merge 2010-06-21 17:34:52 -07:00
Aza Raskin
0a92eb80e6 + Fixed a bug in iQ whereby unadorend numbers in animations wouldn't get a "px" suffix.
+ This fixes the title's strange placement.
2010-06-21 17:34:34 -07:00
Ian Gilman
5432146b86 + Added attr to iQ, plus a unit test for it
+ Fixed click handler for expand button (it was allowing drag, and also it was on mousedown)
+ Added Ehsan and Raymond to the install.rdf contributors list
2010-06-21 17:27:12 -07:00
Ian Gilman
d94d01e1a6 + Raymond's close button fix missed a couple cases: creating new tabs with command+click, and closing non-selected tabs with the close buttons in the tabbar. Fixed. 2010-06-21 16:35:29 -07:00
Ian Gilman
834fb8f54a + merge 2010-06-21 15:37:56 -07:00
Ian Gilman
0a9911358c + applied patch: Temp Fix: Bug 570565 - Background Tab Close buttons disappear 2010-06-21 15:17:23 -07:00
Aza Raskin
dca60ad651 + Fixed the minVersion of the XPI as per Mitcho's suggestion
+ Bumped XPI version to 0.4
+ Commented out the click-on-group to zoom into the last active tab
2010-06-21 14:49:38 -07:00
Michael Yoshitaka Erlewine
d26fdc995b deprecating iQ.fn.data isDragging flag... instead, using Item.isDragging flag 2010-06-21 16:38:33 -04:00
Aza Raskin
e1f3f4100b + More merging 2010-06-19 18:53:21 -07:00
Aza Raskin
0b3d691a90 + Merge 2010-06-19 18:51:57 -07:00
Aza Raskin
f94abd03ff + Removed the unused getChildrenBounds() method of a group. 2010-06-19 18:49:33 -07:00
Aza Raskin
1fd8a1da07 + Added documentation for the hide/show expand control functions. 2010-06-19 18:49:08 -07:00
Aza Raskin
5b4e553b4b -- Stacked Group Behavior --
+ Removed the command-click quasimode for showing the tray version of stacked groups.
+ Added a new expand icon for showing the tray version of stacked groups
+ Refactored the Group.js code so that we now have both group.collapse() and group.expand()

-- Website Behavior --
+ Updated the website to pull the documentation section from the Etherpad
+ Some general DRY-based cleanup

-- Install.rdf --
+ Fiddled with the min/max version
2010-06-19 18:46:39 -07:00
Michael Yoshitaka Erlewine
d92f289628 make sure to call Drag.stop at the end of resizing 2010-06-19 21:12:40 -04:00
Michael Yoshitaka Erlewine
37b142d943 moved shared resizeOptions core into Items; move edge-snapping code out into Drag.snapToEdge; make resizeOptions invoke Drag.snap so that it can take advantage of the advances in drag-snapping technology; made snapToEdge work with resizeable rects 2010-06-19 20:45:23 -04:00
Michael Yoshitaka Erlewine
bae3e99e7b fixed regression of improper resizing on movement 2010-06-19 19:05:23 -04:00
Michael Yoshitaka Erlewine
c037736878 Rect now computes its own xRange and yRange 2010-06-19 18:47:26 -04:00
Michael Yoshitaka Erlewine
32a8077071 trench.js docs 2010-06-19 18:39:55 -04:00
Michael Yoshitaka Erlewine
d06b8545ec trust the Rect and use .right and .bottom 2010-06-19 17:44:19 -04:00
Michael Yoshitaka Erlewine
fea72e24de some Trench docs; using Range 2010-06-19 17:40:14 -04:00
Michael Yoshitaka Erlewine
1d3b90b4d1 Range update 2010-06-19 17:37:36 -04:00
Michael Yoshitaka Erlewine
9fabd1adb8 class Range 2010-06-19 16:58:51 -04:00
Michael Yoshitaka Erlewine
dda8552088 snap to the edges of the window; don't snap if the meta (command) key is being held down 2010-06-19 16:18:30 -04:00
Michael Yoshitaka Erlewine
b200e6b13f move defaultGutter into Items; defaultRadius into Trenches; now items cannot escape the window when dragged (bug 572919) 2010-06-19 16:08:14 -04:00
Michael Yoshitaka Erlewine
7b37b6ed38 one more tweak for "Only snap to a trench when it is physically proximate" 2010-06-19 15:35:27 -04:00
Michael Yoshitaka Erlewine
724c3e2376 more tabs into spaces 2010-06-19 15:05:36 -04:00