virtual bool Destroy();
bool Show(bool show);
- void Iconize(bool iconize);
- virtual bool IsIconized() const;
-
- virtual bool IsTopLevel() const { return TRUE; }
void SetModal(bool flag);
virtual bool IsModal() const;
virtual ~wxFrameMac();
- // implement base class pure virtuals
- virtual void Maximize(bool maximize = TRUE);
- virtual bool IsMaximized() const;
- virtual void Iconize(bool iconize = TRUE);
- virtual bool IsIconized() const;
- virtual void Restore();
- virtual void SetIcon(const wxIcon& icon);
-
// implementation only from now on
// -------------------------------
virtual void DoSetClientSize(int width, int height);
protected:
- bool m_iconized;
#if wxUSE_STATUSBAR
static bool m_useNativeStatusBar;
#endif // wxUSE_STATUSBAR
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/mac/toplevel.h
+// Purpose: wxTopLevelWindowMac is the MSW implementation of wxTLW
+// Author: Vadim Zeitlin
+// Modified by:
+// Created: 20.09.01
+// RCS-ID: $Id$
+// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_TOPLEVEL_H_
+#define _WX_MSW_TOPLEVEL_H_
+
+#ifdef __GNUG__
+ #pragma interface "toplevel.h"
+#endif
+
+// ----------------------------------------------------------------------------
+// wxTopLevelWindowMac
+// ----------------------------------------------------------------------------
+
+class WXDLLEXPORT wxTopLevelWindowMac : public wxTopLevelWindowBase
+{
+public:
+ // constructors and such
+ wxTopLevelWindowMac() { Init(); }
+
+ wxTopLevelWindowMac(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const wxString& name = wxFrameNameStr)
+ {
+ Init();
+
+ (void)Create(parent, id, title, pos, size, style, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const wxString& name = wxFrameNameStr);
+
+ virtual ~wxTopLevelWindowMac();
+
+ // implement base class pure virtuals
+ virtual void Maximize(bool maximize = TRUE);
+ virtual bool IsMaximized() const;
+ virtual void Iconize(bool iconize = TRUE);
+ virtual bool IsIconized() const;
+ virtual void SetIcon(const wxIcon& icon);
+ virtual void Restore();
+
+ virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) { return FALSE; }
+ virtual bool IsFullScreen() const { return FALSE; }
+
+ // implementation from now on
+ // --------------------------
+
+protected:
+ // common part of all ctors
+ void Init();
+
+ // is the frame currently iconized?
+ bool m_iconized;
+
+ // should the frame be maximized when it will be shown? set by Maximize()
+ // when it is called while the frame is hidden
+ bool m_maximizeOnShow;
+};
+
+// list of all frames and modeless dialogs
+extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows;
+
+#endif // _WX_MSW_TOPLEVEL_H_
+
// Lists to keep track of windows, so we can disable/enable them
// for modal dialogs
wxList wxModalDialogs;
-wxList wxModelessWindows; // Frames and modeless dialogs
+//wxList wxModelessWindows; // Frames and modeless dialogs
extern wxList wxPendingDelete;
#if !USE_SHARED_LIBRARY
event.Skip();
}
-void wxDialog::Iconize(bool WXUNUSED(iconize))
-{
- // mac dialogs cannot be iconized
-}
-
-bool wxDialog::IsIconized() const
-{
- // mac dialogs cannot be iconized
- return FALSE;
-}
void wxDialog::DoSetClientSize(int width, int height)
{
if (theItem->descriptorType == typeFSS && !theInfo->isFolder)
{
FSSpec spec;
- memcpy( &spec , *theItem->dataHandle , sizeof(FSSpec) ) ;
+#if TARGET_CARBON
+ ::AEGetDescData(theItem, &spec, sizeof(FSSpec) ) ;
+#else
+ memcpy( &spec , (*theItem->dataHandle) , sizeof(FSSpec) ) ;
+#endif
display = CheckFile( spec.name , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
}
}
#include <wx/mac/uma.h>
-extern wxList wxModelessWindows;
+extern wxWindowList wxModelessWindows;
extern wxList wxPendingDelete;
#if !USE_SHARED_LIBRARY
return TRUE;
}
-// Equivalent to maximize/restore in Windows
-void wxFrameMac::Maximize(bool maximize)
-{
- // TODO
-}
-
-bool wxFrameMac::IsIconized() const
-{
- // TODO
- return FALSE;
-}
-
-void wxFrameMac::Iconize(bool iconize)
-{
- // TODO
-}
-
-// Is the frame maximized?
-bool wxFrameMac::IsMaximized(void) const
-{
- // TODO
- return FALSE;
-}
-
-void wxFrameMac::Restore()
-{
- // TODO
-}
-
-void wxFrameMac::SetIcon(const wxIcon& icon)
-{
- wxFrameBase::SetIcon(icon);
-}
wxStatusBar *wxFrameMac::OnCreateStatusBar(int number, long style, wxWindowID id,
const wxString& name)
#include "wx/menu.h"
#include "wx/settings.h"
-extern wxList wxModelessWindows;
+extern wxWindowList wxModelessWindows;
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame)
// Lists to keep track of windows, so we can disable/enable them
// for modal dialogs
wxList wxModalDialogs;
-wxList wxModelessWindows; // Frames and modeless dialogs
+//wxList wxModelessWindows; // Frames and modeless dialogs
extern wxList wxPendingDelete;
#if !USE_SHARED_LIBRARY
event.Skip();
}
-void wxDialog::Iconize(bool WXUNUSED(iconize))
-{
- // mac dialogs cannot be iconized
-}
-
-bool wxDialog::IsIconized() const
-{
- // mac dialogs cannot be iconized
- return FALSE;
-}
void wxDialog::DoSetClientSize(int width, int height)
{
if (theItem->descriptorType == typeFSS && !theInfo->isFolder)
{
FSSpec spec;
- memcpy( &spec , *theItem->dataHandle , sizeof(FSSpec) ) ;
+#if TARGET_CARBON
+ ::AEGetDescData(theItem, &spec, sizeof(FSSpec) ) ;
+#else
+ memcpy( &spec , (*theItem->dataHandle) , sizeof(FSSpec) ) ;
+#endif
display = CheckFile( spec.name , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
}
}
#include <wx/mac/uma.h>
-extern wxList wxModelessWindows;
+extern wxWindowList wxModelessWindows;
extern wxList wxPendingDelete;
#if !USE_SHARED_LIBRARY
return TRUE;
}
-// Equivalent to maximize/restore in Windows
-void wxFrameMac::Maximize(bool maximize)
-{
- // TODO
-}
-
-bool wxFrameMac::IsIconized() const
-{
- // TODO
- return FALSE;
-}
-
-void wxFrameMac::Iconize(bool iconize)
-{
- // TODO
-}
-
-// Is the frame maximized?
-bool wxFrameMac::IsMaximized(void) const
-{
- // TODO
- return FALSE;
-}
-
-void wxFrameMac::Restore()
-{
- // TODO
-}
-
-void wxFrameMac::SetIcon(const wxIcon& icon)
-{
- wxFrameBase::SetIcon(icon);
-}
wxStatusBar *wxFrameMac::OnCreateStatusBar(int number, long style, wxWindowID id,
const wxString& name)
#include "wx/menu.h"
#include "wx/settings.h"
-extern wxList wxModelessWindows;
+extern wxWindowList wxModelessWindows;
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame)