Commit graph

2607 commits

Author SHA1 Message Date
Adam Fedor
9ad5bc7fd1 Set up print context and view coords for priting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11006 72102866-910b-0410-8b05-ffd578937521
2001-09-26 03:47:20 +00:00
Fred Kiefer
4934a1b527 Clean up of NSPanel and GSAlertPanel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11001 72102866-910b-0410-8b05-ffd578937521
2001-09-24 23:31:52 +00:00
Fred Kiefer
bce2688968 Implemented coding for NSPanel. For GSAlertPanel reoranised the
initXXX code. Moved the GModel methods into a separate category,
removing [createObjectForModelUnarchiver:] as this was (incorrectly)
duplication code from the super class.
Implemented NSBeginAlertSheet(), NSBeginCriticalAlertSheet() and
NSBeginInformationalAlertSheet().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11000 72102866-910b-0410-8b05-ffd578937521
2001-09-24 23:30:36 +00:00
Fred Kiefer
ccf62d14f7 Defined additional window masks. Removed all unneeded ivars and
replaced the others by the superclass additional flags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10999 72102866-910b-0410-8b05-ffd578937521
2001-09-24 23:30:04 +00:00
Fred Kiefer
ee22454665 Added three BOOL flags for subclasses.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10998 72102866-910b-0410-8b05-ffd578937521
2001-09-24 23:06:33 +00:00
Fred Kiefer
6acc98c255 Patch to NSMenu to fixe bug reported by Benhur Stein.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10965 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:40:00 +00:00
Fred Kiefer
33c4ae65df [insertItem:atIndex:] set the menu of the item after the insert
notification has been send. [initWithCoder:] send change
notifications as one block.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10964 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:38:48 +00:00
Fred Kiefer
7556a2c7dd Mostly clean up of .cvsignore and a patch for our layout manager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10959 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:13:36 +00:00
Fred Kiefer
03bf029cff New file to ingore all temporary files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10958 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:12:03 +00:00
Fred Kiefer
a610a95fc4 Ignore the bundle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10957 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:11:14 +00:00
Fred Kiefer
2052fda34e Removed ivar _new added ivar _accessoryView. Added sheet method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10956 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:10:48 +00:00
Fred Kiefer
632ec4278e [GSSimpleLayoutManager boundingRectForGlyphRange:inTextContainer:]:
Use lineFragmentRect instead of usedRect, so that the full line
gets cleared. This still is not correct for all cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10955 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:09:48 +00:00
Fred Kiefer
2f8b4e7389 Small layout improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10954 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:08:49 +00:00
Fred Kiefer
596d793519 Ignore all services.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10953 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:08:22 +00:00
Fred Kiefer
008f2f0234 Bugfix on NSMenu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10940 72102866-910b-0410-8b05-ffd578937521
2001-09-19 22:39:04 +00:00
Fred Kiefer
a80eaa7602 [initWithCoder:] make sure the supermenu of a submenu is nil
before adding it to an item. This resolves drag problem for
"format" menu in Gorm.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10939 72102866-910b-0410-8b05-ffd578937521
2001-09-19 22:38:09 +00:00
Nicola Pero
198e453fec Updated documentation about keyboard modifiers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10931 72102866-910b-0410-8b05-ffd578937521
2001-09-17 20:18:10 +00:00
Fred Kiefer
5f05c50ff9 Added sheet display methods to NSApplication. Use them in NSSavePanel
and NSOpenPanel. Simlified these classes by introducing new methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10926 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:27:47 +00:00
Fred Kiefer
9977f8f7cf Implemented [URL]. New methods [_setupForDirectory:file:] and
[_shouldShowExtension:isDir:]. Removed check for extension filter
in [init]. Simplified [runModalForDirectory:file:]. Implemented
[runModalForDirectory:...relativeToWindow:] and
[beginSheetForDirectory:...]. In [browser:createRowsForColumn:inMatrix:]
allways call [_shouldShowExtension:isDir:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10925 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:13:38 +00:00
Fred Kiefer
37ebea42c2 Implemented [URLs]. New method [_setupForDirectory:file:]. Simplified
[runModalForDirectory:file:types:]. Implemented
[runModalForDirectory:...relativeToWindow:] and [beginSheetForDirectory:...].
Declare all needed private methods from NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10924 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:10:10 +00:00
Fred Kiefer
6b2f41f67e Implemented [readFromURL:options:documentAttributes:]. In
[applyFontTraits:range:] use [NSFontManager
convertFont:toHaveTrait:] instead of explicit font creation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10923 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:09:40 +00:00
Fred Kiefer
8dee14989f Dummy implementation for [hideOtherApplications:] and
[unhideAllApplications:]. Simple implementation for
[runModalForWindow:relativeToWindow:], [endSheet:] and [beginSheet:...].
Removed various uneeded [update] and [sizeToFit] calls for menu operations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10922 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:09:03 +00:00
Fred Kiefer
efd851894e Added some new MacOSX methods. Removed ivar _selfHasShowExtensionFilter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10921 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:08:25 +00:00
Fred Kiefer
de3dff439b Added some new MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10920 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:08:01 +00:00
Fred Kiefer
2d31bc8fb0 Added method [NSMutableAttributedString
readFromURL:options:documentAttributes:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10919 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:07:38 +00:00
Adam Fedor
91e18c2ded acrchiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10918 72102866-910b-0410-8b05-ffd578937521
2001-09-16 19:44:11 +00:00
Fred Kiefer
a8dc7e8141 Simplified interaction between NSPopupButtonCell and its menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10916 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:22:16 +00:00
Fred Kiefer
672e30e17f Removed additional method on NSMenuItemCell. Removed code in
[insertItemWithTitle:atIndex:] to set the NSMenuItemCell to belong
to a popup. Simplified [attachPopUpWithFrame:inView:] and [selectItem:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10915 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:21:05 +00:00
Fred Kiefer
0bc90907f5 Added [dealloc]. [setWindowFrameForAttachingToRect:...] now
expects the screenRect to be the frame of the cell to attach to.
Removed [_setCellSize:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10914 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:20:31 +00:00
Fred Kiefer
b741a26379 Added [dealloc]. In [setMenuView:], if the menu belongs to a popup
set the ivar _mcell_belongs_to_popupbutton.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10913 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:19:56 +00:00
Fred Kiefer
141d8751b7 Removed [_setCellSize:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10912 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:17:58 +00:00
Fred Kiefer
70382adf42 Restructured NSMenuView and corrected NSMenuItem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10871 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:35:20 +00:00
Fred Kiefer
28ccfb87de Adopted to changes in header.
[menuBarHeight]	use code from title_height(). Added dummy
[initAsTearOff]. Added a lot of code to support horizontal menus,
still unfinished. [setHighlightedItemIndex:] don't display items
only mark them as needing display. [locationForSubmenu:] moved
code from NSMenu to here. [mouseDown:] simplified code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10870 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:30:55 +00:00
Fred Kiefer
336aa42d03 Call [NSMenu itemChange:] in all setXX methods. [setSubmenu:] set
the title of the submenu to our title.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10869 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:30:18 +00:00
Fred Kiefer
7a897a0ada Remove function title_height(), replaced calls to it with
[NSMenuView menuBarHeight]. [setSubmenu:forItem:] moved code
to [NSMenuItem setSubmenu]. [update] use _changedMessagesEnabled
to prevent recursion. [sizeToFit] call [setNeedsDisplay:] instead
of [display]. [locationForSubmenu:] moved code to [NSMenuView
locationForSubmenu:].
Added [NSMenuWindowTitleView rightMouseDown:], so the main menu
is not shown in a menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10868 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:29:51 +00:00
Fred Kiefer
f2fa130e80 Removed ivar meunv_menu and reuse _menu from NSResponder.
Renamed all the ivars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10867 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:28:45 +00:00
Michael Silva
5638d3fd8d Rearrange coloration of NSDrawButton to match visually the result of the function on OpenStep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10854 72102866-910b-0410-8b05-ffd578937521
2001-09-10 06:04:38 +00:00
Michael Silva
6036c8b9ba Fixed NSBrowser to not crash upon visualization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10853 72102866-910b-0410-8b05-ffd578937521
2001-09-08 21:42:03 +00:00
Adam Fedor
4827e85a75 Switch back to gsave/grestore.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10850 72102866-910b-0410-8b05-ffd578937521
2001-09-06 19:04:07 +00:00
Adam Fedor
0a30e76ea7 Set EXTRASAMPLES even if 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10840 72102866-910b-0410-8b05-ffd578937521
2001-09-04 03:58:59 +00:00
Adam Fedor
99818a7d2b Use save/restore in lockFocus/unlockFocus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10835 72102866-910b-0410-8b05-ffd578937521
2001-09-03 04:10:36 +00:00
Adam Fedor
09193da35a Fix image unacrhiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10831 72102866-910b-0410-8b05-ffd578937521
2001-09-01 20:57:51 +00:00
Fred Kiefer
c804059843 Modified NSMenuItemCell to be more similar to NSButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10830 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:12:55 +00:00
Fred Kiefer
858ba8fb73 Removed ivars mcell_highlighted and mcell_has_submenu.
Renamed all ivars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10829 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:11:53 +00:00
Fred Kiefer
fbcb65fafd Replaced use of mcell_highlighted with _cell.is_highlighted.
Removed this ivar and mcell_has_submenu from the coding methods.
Removed method [highlight:withFrame:inView:]. in
[drawBorderAndBackgroundWithFrame:inView:] moved duplicated out of
if clause. in [calcSize] use cached arrow image for submenu sizing and
changed image size code. Change all composite operators from
NSCompositeCopy to NSCompositeSourceOver. Use the cached colour if
it is computed otherwise ignore it. In [drawWithFrame:inView:] allways call
[drawBorderAndBackgroundWithFrame:inView:] and check for border there.
Moved lockfocus calls down one level. In [drawInteriorWithFrame:inView:]
removed some of the checks already done in [drawWithFrame:inView:].
Replaced all the highlight/state logic with the one used in
NSButtonCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10828 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:10:54 +00:00
Adam Fedor
94398b3eda Fix image encoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10827 72102866-910b-0410-8b05-ffd578937521
2001-09-01 04:20:55 +00:00
Nicola Pero
db36c5906c Added changelog for GSSimpleLayoutManager which I had forgot to commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10823 72102866-910b-0410-8b05-ffd578937521
2001-08-31 11:07:20 +00:00
Nicola Pero
62f4f350e7 Readded ChangeLog entry which Adam removed by mistake
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10822 72102866-910b-0410-8b05-ffd578937521
2001-08-31 11:06:00 +00:00
Adam Fedor
67b4261f59 Image archiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10820 72102866-910b-0410-8b05-ffd578937521
2001-08-30 22:02:38 +00:00
Nicola Pero
63d0ee2c7c Little improvement of the description of the _GNULineLayoutInfo objects -
changing mainly using for debugging


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10818 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:20:49 +00:00