]> git.saurik.com Git - wxWidgets.git/commitdiff
minifram sample modified to use XPMs
authorChris Elliott <biol75@york.ac.uk>
Fri, 14 Jun 2002 10:21:52 +0000 (10:21 +0000)
committerChris Elliott <biol75@york.ac.uk>
Fri, 14 Jun 2002 10:21:52 +0000 (10:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
samples/minifram/bitmaps/copy.bmp [deleted file]
samples/minifram/bitmaps/cut.bmp [deleted file]
samples/minifram/bitmaps/help.bmp [deleted file]
samples/minifram/bitmaps/new.bmp [deleted file]
samples/minifram/bitmaps/open.bmp [deleted file]
samples/minifram/bitmaps/page.bmp [deleted file]
samples/minifram/bitmaps/paste.bmp [deleted file]
samples/minifram/bitmaps/preview.bmp [deleted file]
samples/minifram/bitmaps/print.bmp [deleted file]
samples/minifram/bitmaps/save.bmp [deleted file]
samples/minifram/minifram.cpp
samples/minifram/minifram.rc

diff --git a/samples/minifram/bitmaps/copy.bmp b/samples/minifram/bitmaps/copy.bmp
deleted file mode 100644 (file)
index 4551a06..0000000
Binary files a/samples/minifram/bitmaps/copy.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/cut.bmp b/samples/minifram/bitmaps/cut.bmp
deleted file mode 100644 (file)
index 1555433..0000000
Binary files a/samples/minifram/bitmaps/cut.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/help.bmp b/samples/minifram/bitmaps/help.bmp
deleted file mode 100644 (file)
index 2d9e692..0000000
Binary files a/samples/minifram/bitmaps/help.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/new.bmp b/samples/minifram/bitmaps/new.bmp
deleted file mode 100644 (file)
index d66feb2..0000000
Binary files a/samples/minifram/bitmaps/new.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/open.bmp b/samples/minifram/bitmaps/open.bmp
deleted file mode 100644 (file)
index bbf93fe..0000000
Binary files a/samples/minifram/bitmaps/open.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/page.bmp b/samples/minifram/bitmaps/page.bmp
deleted file mode 100644 (file)
index 3dbd4b0..0000000
Binary files a/samples/minifram/bitmaps/page.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/paste.bmp b/samples/minifram/bitmaps/paste.bmp
deleted file mode 100644 (file)
index 564f514..0000000
Binary files a/samples/minifram/bitmaps/paste.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/preview.bmp b/samples/minifram/bitmaps/preview.bmp
deleted file mode 100644 (file)
index da1f4db..0000000
Binary files a/samples/minifram/bitmaps/preview.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/print.bmp b/samples/minifram/bitmaps/print.bmp
deleted file mode 100644 (file)
index 00319b5..0000000
Binary files a/samples/minifram/bitmaps/print.bmp and /dev/null differ
diff --git a/samples/minifram/bitmaps/save.bmp b/samples/minifram/bitmaps/save.bmp
deleted file mode 100644 (file)
index 56dd10b..0000000
Binary files a/samples/minifram/bitmaps/save.bmp and /dev/null differ
index 436778d198a7b40cb8a29398c6c8738045f9c73f..ebb4d138ba849423eea187c9f4bd71f4ba084e88 100644 (file)
@@ -23,8 +23,9 @@
 #include "wx/toolbar.h"
 #include "minifram.h"
 
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#if !defined(__WXMSW__) 
 #include "mondrian.xpm"
+#endif
 #include "bitmaps/new.xpm"
 #include "bitmaps/open.xpm"
 #include "bitmaps/save.xpm"
@@ -34,7 +35,7 @@
 #include "bitmaps/print.xpm"
 #include "bitmaps/preview.xpm"
 #include "bitmaps/help.xpm"
-#endif
+
 
 // start wxWindows
 
@@ -68,13 +69,8 @@ bool MyApp::OnInit()
   mini_frame->CreateToolBar(wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, ID_TOOLBAR);
   InitToolbar(mini_frame->GetToolBar());
 
-#ifdef __WXMSW__
-  main_frame->SetIcon(wxIcon("mondrian"));
-  mini_frame->SetIcon(wxIcon("mondrian"));
-#else
-  main_frame->SetIcon( wxIcon(mondrian_xpm) );
-  mini_frame->SetIcon( wxIcon(mondrian_xpm) );
-#endif
+  main_frame->SetIcon(wxICON(mondrian));
+  mini_frame->SetIcon(wxICON(mondrian));
 
   SetTopWindow(main_frame);
 
@@ -91,16 +87,6 @@ bool MyApp::InitToolbar(wxToolBar* toolBar)
   // Set up toolbar
   wxBitmap* toolBarBitmaps[8];
 
-#ifdef __WXMSW__
-  toolBarBitmaps[0] = new wxBitmap("icon1");
-  toolBarBitmaps[1] = new wxBitmap("icon2");
-  toolBarBitmaps[2] = new wxBitmap("icon3");
-  toolBarBitmaps[3] = new wxBitmap("icon4");
-  toolBarBitmaps[4] = new wxBitmap("icon5");
-  toolBarBitmaps[5] = new wxBitmap("icon6");
-  toolBarBitmaps[6] = new wxBitmap("icon7");
-  toolBarBitmaps[7] = new wxBitmap("icon8");
-#else
   toolBarBitmaps[0] = new wxBitmap( new_xpm );
   toolBarBitmaps[1] = new wxBitmap( open_xpm );
   toolBarBitmaps[2] = new wxBitmap( save_xpm );
@@ -110,13 +96,8 @@ bool MyApp::InitToolbar(wxToolBar* toolBar)
   toolBarBitmaps[5] = new wxBitmap( preview_xpm );
   toolBarBitmaps[6] = new wxBitmap( print_xpm );
   toolBarBitmaps[7] = new wxBitmap( help_xpm );
-#endif
 
-#ifdef __WXMSW__
-  int width = 24;
-#else
   int width = 16;
-#endif
   int currentX = 5;
 
   toolBar->AddTool(wxID_NEW, *(toolBarBitmaps[0]), wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, "New file");
index 6c9086d0c6f64fe9122c311126b661bd75a1bfe0..55808f0e3446ba7f95624f8e82689ed8263919f8 100644 (file)
@@ -1,13 +1,4 @@
 mondrian ICON "mondrian.ico"
 #include "wx/msw/wx.rc"
 
-icon1 BITMAP "bitmaps/new.bmp"
-icon2 BITMAP "bitmaps/open.bmp"
-icon3 BITMAP "bitmaps/save.bmp"
-icon4 BITMAP "bitmaps/copy.bmp"
-icon5 BITMAP "bitmaps/cut.bmp"
-icon6 BITMAP "bitmaps/paste.bmp"
-icon7 BITMAP "bitmaps/print.bmp"
-
-icon8 BITMAP "bitmaps/help.bmp"