cocoa_gui_dialog_l.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : August 09 2010
00003     copyright   : (C) 2010 by Samuel Strupp
00004 
00005  ***************************************************************************
00006  *          Please see toplevel file COPYING for license details           *
00007  ***************************************************************************/
00008 
00009 #ifndef COCOA_GUI_DIALOG_L_H
00010 #define COCOA_GUI_DIALOG_L_H
00011 
00012 
00013 //#include <gwen-gui-gtk2/gtk2_gui.h>
00014 
00015 
00016 #include <gwenhywfar/dialog_be.h>
00017 #import <Foundation/Foundation.h>
00018 #import <AppKit/AppKit.h>
00019 
00020 #import "CocoaWindow.h"
00021 
00022 //#define GTK2_GUI_DIALOG_DEFAULT_BOX_SPACING 3
00023 
00024 
00025 /*typedef struct {
00026   GWEN_DIALOG *dialog;
00027   GtkWindow *window;
00028   int response;
00029   GMainLoop *loop;
00030   int destroyed;
00031 } RunInfo;*/
00032 
00033 
00034 
00035 void CocoaGui_Dialog_Extend(GWEN_DIALOG *dlg);
00036 void CocoaGui_Dialog_Unextend(GWEN_DIALOG *dlg);
00037 
00038 int CocoaGui_Dialog_Setup(GWEN_DIALOG *dlg, NSWindow *parentWindow);
00039 
00040 
00041 CocoaWindow *CocoaGui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg);
00042 
00043 
00044 int Cocoa_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout);
00045 void CocoaGui_Dialog_Leave(GWEN_DIALOG *dlg, int result);
00046 
00047 #endif
00048 
00049