Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
TMWidgetHelper Class Reference

List of all members.

Public Member Functions

(void) - notify:
(void) - dealloc [implementation]
(NSToolbarItem *) - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: [implementation]
(NSArray *) - toolbarAllowedItemIdentifiers: [implementation]
(NSArray *) - toolbarDefaultItemIdentifiers: [implementation]

Public Attributes

aqua_tm_widget_rep * wid
NSToolbarItem * ti

Detailed Description

Definition at line 247 of file aqua_widget.mm.


Member Function Documentation

- (void) dealloc [implementation]

Definition at line 257 of file aqua_widget.mm.

{
  [ti release]; [super dealloc];
}
- (void) notify: (NSNotification*)  obj

Definition at line 261 of file aqua_widget.mm.

              :(NSNotification*)n
{
  wid->layout();
}
- (NSToolbarItem *) toolbar: (NSToolbar *)  toolbar
itemForItemIdentifier: (NSString *)  itemIdentifier
willBeInsertedIntoToolbar: (BOOL)  flag 
[implementation]

Definition at line 265 of file aqua_widget.mm.

                          :(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag
{
  if (itemIdentifier == TMButtonsIdentifier) {
    if (!ti) {
      ti = [[TMToolbarItem alloc] initWithItemIdentifier:TMButtonsIdentifier];
      [ti setView:[wid->bc bar]];
      NSRect f = [[wid->bc bar] frame];
      //      NSSize s = NSMakeSize(900,70);
      NSSize s = f.size;
      [ti setMinSize:s];
      [ti setMaxSize:s];
      
    }
    return ti;
  }
  return nil;
}
- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *)  toolbar [implementation]

Definition at line 282 of file aqua_widget.mm.

                                          :(NSToolbar *)toolbar
{
  return [NSArray arrayWithObjects:TMButtonsIdentifier,nil];
}
- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *)  toolbar [implementation]

Definition at line 286 of file aqua_widget.mm.

                                          :(NSToolbar *)toolbar
{
  return [NSArray arrayWithObjects:TMButtonsIdentifier,nil];
}

Member Data Documentation

- (NSToolbarItem*) ti

Definition at line 251 of file aqua_widget.mm.

- (aqua_tm_widget_rep*) wid

Definition at line 250 of file aqua_widget.mm.


The documentation for this class was generated from the following file: