Commit graph

1700 commits

Author SHA1 Message Date
Nicola Pero
52fe2e528e Fixed crash on deallocating the NSTabView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11176 72102866-910b-0410-8b05-ffd578937521
2001-10-17 21:24:11 +00:00
Nicola Pero
449ae8ff09 Do not retain/release the data source; it's like a delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11171 72102866-910b-0410-8b05-ffd578937521
2001-10-17 17:25:25 +00:00
Adam Fedor
9ba621a145 Static linking file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11168 72102866-910b-0410-8b05-ffd578937521
2001-10-17 03:55:18 +00:00
Adam Fedor
d15a55ee08 Fix static linking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11167 72102866-910b-0410-8b05-ffd578937521
2001-10-17 03:53:55 +00:00
Pierre-Yves Rivaille
2ad9cdfca2 ([selectColumn:byExtendingSelection]):
Do not send NSTableViewSelectionDidChangeNotification when selection
	is not changed (was not always working with flag=NO)
([selectRow:byExtendingSelection]): Likewise


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11163 72102866-910b-0410-8b05-ffd578937521
2001-10-16 21:01:28 +00:00
Adam Fedor
168db2ce11 Make shared instance var static
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11159 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:20:01 +00:00
Adam Fedor
ce2dfc8d5f Fix scaling factor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11158 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:06:26 +00:00
Adam Fedor
4ed9a1a4d7 Fix option panem handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11157 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:03:30 +00:00
Adam Fedor
9b37962d29 FIx comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11156 72102866-910b-0410-8b05-ffd578937521
2001-10-16 02:11:30 +00:00
Adam Fedor
22741391dc Rewrite NSPrintPanel and NSPageLayout, prepare for printing improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11155 72102866-910b-0410-8b05-ffd578937521
2001-10-16 02:09:09 +00:00
Fred Kiefer
8e82e5c3b9 Added methods [setAction:] and [setTarget:], which call the super
implementation and also update the menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11142 72102866-910b-0410-8b05-ffd578937521
2001-10-14 21:36:12 +00:00
Nicola Pero
79904c9ae1 Fixed memory leak of target object; tiny useless optm in method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11124 72102866-910b-0410-8b05-ffd578937521
2001-10-11 10:15:52 +00:00
Adam Fedor
734669301f Fix saving print file to path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11122 72102866-910b-0410-8b05-ffd578937521
2001-10-09 04:22:13 +00:00
Nicola Pero
49f6931245 Fixes for case _document == nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11114 72102866-910b-0410-8b05-ffd578937521
2001-10-08 10:49:29 +00:00
Nicola Pero
53ad3452ff Indentation tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11113 72102866-910b-0410-8b05-ffd578937521
2001-10-08 10:26:44 +00:00
Fred Kiefer
8f884a5434 [insertItemWithTitle:atIndex:] don't set the action and target for
the item, so it will use the action from the popup button.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11110 72102866-910b-0410-8b05-ffd578937521
2001-10-08 08:19:50 +00:00
Fred Kiefer
92a36a93b8 Changed all calls to [NSMenu _setOwnedByPopUp:] and added missing
one in [setMenu:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11108 72102866-910b-0410-8b05-ffd578937521
2001-10-07 23:44:24 +00:00
Fred Kiefer
a3febc44f3 Adopted to changes in header. In [update] check for popup buttons
also the action of the popup itself, if there is non for the item.
In [performActionForItemAtIndex:] if we are owned by a popup
button, send this action, if the menu item does not have an action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11107 72102866-910b-0410-8b05-ffd578937521
2001-10-07 23:43:43 +00:00
Fred Kiefer
8e59dbb8ca Removed function _screenNumbers. Moved class method to front. Use
[screens] in method [mainScreen]. Cache screens in mehtod
[screens]. Use the context from NSApp instead of the current
context in all calls. In [deepestScreen] replace NSScreen by self.
Added method [resetScreens].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11104 72102866-910b-0410-8b05-ffd578937521
2001-10-07 22:47:00 +00:00
Adam Fedor
9e7640459b Implement print panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11100 72102866-910b-0410-8b05-ffd578937521
2001-10-07 04:22:41 +00:00
Fred Kiefer
4854b4cad2 Protected all initXXX methods so that for empty input nil will be
returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11098 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:30:54 +00:00
Fred Kiefer
a4a08c2811 Compile NSRulerMarker and NSRulerView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11097 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:30:20 +00:00
Fred Kiefer
ae558ee576 Some basic implementation of these class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11096 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:29:57 +00:00
Fred Kiefer
263b6bf5a6 Adopted to changes in header and added some code for displaying
indeterminate progress.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11094 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:26:28 +00:00
Nicola Pero
cd967093fd Raise an exception in init methods when called with nil nib file name
or nil owner


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11087 72102866-910b-0410-8b05-ffd578937521
2001-10-06 13:27:46 +00:00
Adam Fedor
1b792f83c7 New GSCustomView class
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11077 72102866-910b-0410-8b05-ffd578937521
2001-10-03 17:05:57 +00:00
Adam Fedor
c7ac9f7827 setFrame: to new constrained rect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11075 72102866-910b-0410-8b05-ffd578937521
2001-10-02 17:38:21 +00:00
Fred Kiefer
a47397006b Removed all ivars and cleaned up the rest.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11034 72102866-910b-0410-8b05-ffd578937521
2001-09-28 23:37:37 +00:00
Nicola Pero
74c17b5c36 Indentation tidyups - added { } in if, else, switch etc clauses
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11023 72102866-910b-0410-8b05-ffd578937521
2001-09-26 22:51:51 +00:00
Nicola Pero
fcbf4d11a9 Fix for saving the filename when writing to file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11009 72102866-910b-0410-8b05-ffd578937521
2001-09-26 21:58:51 +00:00
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
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
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
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
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
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
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
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
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
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