Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlic3rPE <slic3r@Slic3rPEs-MacBook-Pro.local>2019-12-10 13:17:12 +0300
committerDavid Kocik <kocikdav@gmail.com>2019-12-13 15:51:45 +0300
commitc3653589f6cec74a9a4241c9de55e28c178cd6d6 (patch)
treebdd9da268b6a901df0792c8d4c7180526ea67e0c /src/slic3r/GUI/RemovableDriveManagerMM.mm
parente0a12342da33ea2e79b06777c5579294094353ed (diff)
macos implementation
Diffstat (limited to 'src/slic3r/GUI/RemovableDriveManagerMM.mm')
-rw-r--r--src/slic3r/GUI/RemovableDriveManagerMM.mm18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/slic3r/GUI/RemovableDriveManagerMM.mm b/src/slic3r/GUI/RemovableDriveManagerMM.mm
index e4e324654..99abd7386 100644
--- a/src/slic3r/GUI/RemovableDriveManagerMM.mm
+++ b/src/slic3r/GUI/RemovableDriveManagerMM.mm
@@ -1,37 +1,38 @@
#import "RemovableDriveManager.hpp"
-
+#import "RemovableDriveManagerMM.h"
#import <AppKit/AppKit.h>
@implementation RemovableDriveManagerMM
-namespace Slic3r {
-namespace GUI {
+
-(instancetype) init
{
self = [super init];
if(self)
{
- [self add_unmount_observer]
+ [self add_unmount_observer];
}
return self;
}
-(void) on_device_unmount: (NSNotification*) notification
{
NSLog(@"on device change");
- RemovableDriveManager::get_instance().update();
+ Slic3r::GUI::RemovableDriveManager::get_instance().update();
}
-(void) add_unmount_observer
{
+ NSLog(@"add unmount observer");
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector: @selector(on_device_unmount:) name:NSWorkspaceDidUnmountNotification object:nil];
}
-
+namespace Slic3r {
+namespace GUI {
void RemovableDriveManager::register_window()
{
m_rdmmm = nullptr;
m_rdmmm = [[RemovableDriveManagerMM alloc] init];
}
-
+}}//namespace Slicer::GUI
/*
-(void) RemovableDriveManager::list_devices()
@@ -65,4 +66,5 @@ void RemovableDriveManager::register_window()
}
}
*/
-}}//namespace Slicer::GUI \ No newline at end of file
+
+@end