unusual combinations of platform/app
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16729
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
toolbar.h MotifH
window.h MotifH
toolbar.h MotifH
window.h MotifH
app.h X11H
bitmap.h X11H
brush.h X11H
app.h X11H
bitmap.h X11H
brush.h X11H
glcanvas.h X11H
icon.h X11H
joystick.h X11H
glcanvas.h X11H
icon.h X11H
joystick.h X11H
minifram.h X11H
palette.h X11H
pen.h X11H
minifram.h X11H
palette.h X11H
pen.h X11H
private.h X11H
region.h X11H
reparent.h X11H
private.h X11H
region.h X11H
reparent.h X11H
toplevel.h X11H
window.h X11H
toplevel.h X11H
window.h X11H
event.Enable( FALSE );
break;
case ID_DELETE:
event.Enable( FALSE );
break;
case ID_DELETE:
event.Enable( m_text->HasSelection() );
event.Enable( m_text->HasSelection() );
+#else
+ {
+ long selFrom, selTo;
+ m_text->GetSelection(& selFrom, & selTo);
+ event.Enable( selFrom != selTo );
+ }
+#endif
wxResourceManager *wxResourceManager::sm_currentResourceManager = NULL;
wxResourceManager *wxResourceManager::sm_currentResourceManager = NULL;
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
#include "bitmaps/load.xpm"
#include "bitmaps/save.xpm"
#include "bitmaps/new.xpm"
#include "bitmaps/load.xpm"
#include "bitmaps/save.xpm"
#include "bitmaps/new.xpm"
windowsDir += "\\dialoged.ini" ;
m_optionsResourceFilename = windowsDir;
windowsDir += "\\dialoged.ini" ;
m_optionsResourceFilename = windowsDir;
-#elif defined(__WXGTK__) || defined(__WXMOTIF__) || (defined(__WXMAC__) && defined(__DARWIN__))
wxGetHomeDir( &m_optionsResourceFilename );
m_optionsResourceFilename += "/.dialogedrc";
wxGetHomeDir( &m_optionsResourceFilename );
m_optionsResourceFilename += "/.dialogedrc";
-#else
-#error "Unsupported platform."
{
#ifdef __WXMSW__
m_bitmapImage = new wxBitmap("WXWINBMP", wxBITMAP_TYPE_BMP_RESOURCE);
{
#ifdef __WXMSW__
m_bitmapImage = new wxBitmap("WXWINBMP", wxBITMAP_TYPE_BMP_RESOURCE);
-#endif
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
m_bitmapImage = new wxBitmap( wxwin_xpm );
#endif
}
m_bitmapImage = new wxBitmap( wxwin_xpm );
#endif
}
wxBitmap ToolbarCopyHeightBitmap("COPYHEIGHTTOOL");
wxBitmap ToolbarDistributeHorizBitmap("DISTHORIZTOOL");
wxBitmap ToolbarDistributeVertBitmap("DISTVERTTOOL");
wxBitmap ToolbarCopyHeightBitmap("COPYHEIGHTTOOL");
wxBitmap ToolbarDistributeHorizBitmap("DISTHORIZTOOL");
wxBitmap ToolbarDistributeVertBitmap("DISTVERTTOOL");
-#endif
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
wxBitmap ToolbarLoadBitmap( load_xpm );
wxBitmap ToolbarSaveBitmap( save_xpm);
wxBitmap ToolbarNewBitmap( new_xpm );
wxBitmap ToolbarLoadBitmap( load_xpm );
wxBitmap ToolbarSaveBitmap( save_xpm);
wxBitmap ToolbarNewBitmap( new_xpm );
wxRadioBox *radioBox = (wxRadioBox *)m_propertyWindow;
if (name == "numberRowsOrCols")
{
wxRadioBox *radioBox = (wxRadioBox *)m_propertyWindow;
if (name == "numberRowsOrCols")
{
+ // FIXME: Set/GetNumberOfRowsOrCols only implemented on Motif, MSW and Mac
+#if defined(__WXMSW__) || defined(__WXMOTIF__) || defined(__WXMAC__)
return new wxProperty("numberRowsOrCols", (long)radioBox->GetNumberOfRowsOrCols(), "integer");
return new wxProperty("numberRowsOrCols", (long)radioBox->GetNumberOfRowsOrCols(), "integer");
+#else
+ return new wxProperty("numberRowsOrCols", (long)1, "integer");
+#endif
}
if (name == "orientation")
{
}
if (name == "orientation")
{
wxRadioBox *radioBox = (wxRadioBox *)m_propertyWindow;
if (name == "numberRowsOrCols")
{
wxRadioBox *radioBox = (wxRadioBox *)m_propertyWindow;
if (name == "numberRowsOrCols")
{
+ // FIXME: Set/GetNumberOfRowsOrCols only implemented on Motif, MSW and Mac
+#if defined(__WXMSW__) || defined(__WXMOTIF__) || defined(__WXMAC__)
wxResourceManager::GetCurrentResourceManager()->DeselectItemIfNecessary(radioBox);
radioBox->SetNumberOfRowsOrCols((int)property->GetValue().IntegerValue());
m_propertyWindow = wxResourceManager::GetCurrentResourceManager()->RecreateWindowFromResource(radioBox, this);
wxResourceManager::GetCurrentResourceManager()->DeselectItemIfNecessary(radioBox);
radioBox->SetNumberOfRowsOrCols((int)property->GetValue().IntegerValue());
m_propertyWindow = wxResourceManager::GetCurrentResourceManager()->RecreateWindowFromResource(radioBox, this);
return TRUE;
}
else if (name == "orientation")
return TRUE;
}
else if (name == "orientation")
resource->SetStringValues(slist);
}
*/
resource->SetStringValues(slist);
}
*/
+ // FIXME: Set/GetNumberOfRowsOrCols only implemented on Motif, MSW and Mac
+#if defined(__WXMSW__) || defined(__WXMOTIF__) || defined(__WXMAC__)
resource->SetValue1(rbox->GetNumberOfRowsOrCols());
resource->SetValue1(rbox->GetNumberOfRowsOrCols());
+#else
+ resource->SetValue1(1);
+#endif
return wxItemPropertyInfo::InstantiateResource(resource);
}
return wxItemPropertyInfo::InstantiateResource(resource);
}