mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-15 13:19:57 +00:00
* Port check to see if i2p is already running. * All buttons in the menu should work now. * Rewrote some C++ to Objective-C, which fits better with the integration. * Misc cleanup. * Made the launch of router repeatable.
28 lines
541 B
Objective-C
28 lines
541 B
Objective-C
#pragma once
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
/**
|
|
*
|
|
* This is a class representing the "image" in the systray.
|
|
*
|
|
*
|
|
* **/
|
|
@class StatusItemButton;
|
|
|
|
@protocol StatusItemButtonDelegate <NSObject>
|
|
|
|
- (void) statusItemButtonLeftClick: (StatusItemButton *) button;
|
|
- (void) statusItemButtonRightClick: (StatusItemButton *) button;
|
|
|
|
@end
|
|
|
|
@interface StatusItemButton : NSView
|
|
|
|
@property (strong, nonatomic) NSImage *image;
|
|
@property (unsafe_unretained) id<StatusItemButtonDelegate> delegate;
|
|
|
|
- (instancetype) initWithImage: (NSImage *) image;
|
|
|
|
@end
|