]> git.saurik.com Git - wxWidgets.git/commitdiff
Altered font dialog slightly for Motif; added wxUSE_TOOLTIPS to Motif setup.h
authorJulian Smart <julian@anthemion.co.uk>
Sat, 6 Feb 1999 00:46:25 +0000 (00:46 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 6 Feb 1999 00:46:25 +0000 (00:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/cw.rsp
docs/motif/install.txt
include/wx/motif/setup.h
include/wx/motif/window.h
include/wx/tooltip.h
samples/makefile.unx
src/generic/fontdlgg.cpp

index 0b552666aee95a17e0d89d16fa828179c163ab55..d032bd94780bdff776d8bf0d1db83047fd7df671 100644 (file)
@@ -5,8 +5,6 @@ include/wx_cw.pch
 include/wx_cw.pch++
 include/wx_cw_d.pch
 include/wx_cw_d.pch++
-include/wx_x86++_d.mch
-include/wx_x86_d.mch
 
 samples/bombs/make_cw.mcp
 
index d6b5d2a62f3778696d0e6322455e03a68b1fd9d5..2c78c9aaf6c38eaf7b7dbf2a3485fe683a51b167 100644 (file)
@@ -13,6 +13,9 @@ wxWindows 2.0 for Motif installation
   files to Unix format. Don't worry about files being
   overwritten: they should be identical anyway.
 
+  (See http://www.cdrom.com/pub/infozip/ if you don't have zip/unzip
+  already installed. Zip isn't the same as gzip!)
+
 - It is recommended that you install bison and flex; using yacc
   and lex may require tweaking of the makefiles. You also need
   Xpm (see comments in the Notes section below).
index 923e2fef2a8f04df3de9ec42417aace3e38b5388..2a662da00e6ea9014a45ab08e4cbbdaa4cc8deed 100644 (file)
                                 // Use constraints mechanism
 #define wxUSE_CONFIG           1
                                 // Use wxConfig, with CreateConfig in wxApp
-#define _WX_GOODCOMPILER__
-                                // gcc can have problems, but Windows compilers
-                                // are generally OK.
-#define WXWIN_COMPATIBILITY  1
-                                // Compatibility with 1.66 API.
-                                // Level 0: no backward compatibility, all new features
-                                // Level 1: wxDC, OnSize (etc.) compatibility, but
-                                //          some new features such as event tables
+#define WXWIN_COMPATIBILITY  0
+                                // Minor compatibility with 1.68 API.
+                                // 1: on 0: off.
 
 #define wxUSE_POSTSCRIPT  1
                                // 0 for no PostScript device context
 #define wxUSE_SERIAL        0
                                   // Use serialization
 
+#define wxUSE_TOOLTIPS      0
+                                  // Use tooltips
+
 /*
  * Finer detail
  *
index 34e55e106b984561e97ed5c5a781e52a8438f48b..24c5ca9135360fd2214cdd497e6b9dd0d09ed59e 100644 (file)
@@ -249,7 +249,7 @@ public:
   void SetToolTip(const wxString& tip);
 
   // TODO
-#if 0
+#if wxUSE_TOOLTIPS
     // pointer may be NULL to remove the tooltip
   void SetToolTip(wxToolTip *tooltip);
     // get the current tooltip (may return NULL if none)
index a7719973be9d44d68da095ff6cff89a953cb17c8..451765c5e63edc0b353c8cf6553ce96143d1ec8d 100644 (file)
@@ -4,7 +4,7 @@
 #if defined(__WXMSW__)
 #include "wx/msw/tooltip.h"
 #elif defined(__WXMOTIF__)
-#include "wx/motif/tooltip.h"
+// #include "wx/motif/tooltip.h"
 #elif defined(__WXGTK__)
 #include "wx/gtk/tooltip.h"
 #elif defined(__WXQT__)
@@ -12,7 +12,7 @@
 #elif defined(__WXMAC__)
 #include "wx/mac/tooltip.h"
 #elif defined(__WXSTUBS__)
-#include "wx/stubs/tooltip.h"
+// #include "wx/stubs/tooltip.h"
 #endif
 
 #endif
index 95ac7b592b9de5fd3f0ae2eb1baa651b266127c3..9ceed0d702609a96565227711a11ad96363400f0 100644 (file)
@@ -19,7 +19,6 @@ all:
        cd config; $(MAKE) -f makefile.unx $(TARGET)
        cd controls; $(MAKE) -f makefile.unx $(TARGET)
        cd dialogs; $(MAKE) -f makefile.unx $(TARGET)
-       cd dnd; $(MAKE) -f makefile.unx $(TARGET)
        cd docview; $(MAKE) -f makefile.unx $(TARGET)
        cd docvwmdi; $(MAKE) -f makefile.unx $(TARGET)
        cd dynamic; $(MAKE) -f makefile.unx $(TARGET)
@@ -32,7 +31,6 @@ all:
        cd memcheck; $(MAKE) -f makefile.unx $(TARGET)
        cd minifram; $(MAKE) -f makefile.unx $(TARGET)
        cd minimal; $(MAKE) -f makefile.unx $(TARGET)
-       cd nativdlg; $(MAKE) -f makefile.unx $(TARGET)
        cd notebook; $(MAKE) -f makefile.unx $(TARGET)
        cd printing; $(MAKE) -f makefile.unx $(TARGET)
        cd proplist; $(MAKE) -f makefile.unx $(TARGET)
@@ -40,19 +38,19 @@ all:
        cd sashtest; $(MAKE) -f makefile.unx $(TARGET)
        cd splitter; $(MAKE) -f makefile.unx $(TARGET)
        cd tab; $(MAKE) -f makefile.unx $(TARGET)
-       cd thread; $(MAKE) -f makefile.unx $(TARGET)
        cd toolbar; $(MAKE) -f makefile.unx $(TARGET)
        cd typetest; $(MAKE) -f makefile.unx $(TARGET)
        cd validate; $(MAKE) -f makefile.unx $(TARGET)
        cd treectrl; $(MAKE) -f makefile.unx $(TARGET)
        cd wxpoem; $(MAKE) -f makefile.unx $(TARGET)
+       cd dnd; $(MAKE) -f makefile.unx $(TARGET)
+       cd thread; $(MAKE) -f makefile.unx $(TARGET)
 
 clean:
        cd bombs; $(MAKE) -f makefile.unx clean$(TARGET)
        cd config; $(MAKE) -f makefile.unx clean$(TARGET)
        cd controls; $(MAKE) -f makefile.unx clean$(TARGET)
        cd dialogs; $(MAKE) -f makefile.unx clean$(TARGET)
-       cd dnd; $(MAKE) -f makefile.unx clean$(TARGET)
        cd docview; $(MAKE) -f makefile.unx clean$(TARGET)
        cd docvwmdi; $(MAKE) -f makefile.unx clean$(TARGET)
        cd dynamic; $(MAKE) -f makefile.unx clean$(TARGET)
@@ -65,7 +63,6 @@ clean:
        cd memcheck; $(MAKE) -f makefile.unx clean$(TARGET)
        cd minifram; $(MAKE) -f makefile.unx clean$(TARGET)
        cd minimal; $(MAKE) -f makefile.unx clean$(TARGET)
-       cd nativdlg; $(MAKE) -f makefile.unx clean$(TARGET)
        cd notebook; $(MAKE) -f makefile.unx clean$(TARGET)
        cd printing; $(MAKE) -f makefile.unx clean$(TARGET)
        cd proplist; $(MAKE) -f makefile.unx clean$(TARGET)
@@ -73,12 +70,13 @@ clean:
        cd sashtest; $(MAKE) -f makefile.unx clean$(TARGET)
        cd splitter; $(MAKE) -f makefile.unx clean$(TARGET)
        cd tab; $(MAKE) -f makefile.unx clean$(TARGET)
-       cd thread; $(MAKE) -f makefile.unx clean$(TARGET)
        cd toolbar; $(MAKE) -f makefile.unx clean$(TARGET)
        cd typetest; $(MAKE) -f makefile.unx clean$(TARGET)
        cd validate; $(MAKE) -f makefile.unx clean$(TARGET)
        cd treectrl; $(MAKE) -f makefile.unx clean$(TARGET)
        cd wxpoem; $(MAKE) -f makefile.unx clean$(TARGET)
+       cd dnd; $(MAKE) -f makefile.unx clean$(TARGET)
+       cd thread; $(MAKE) -f makefile.unx clean$(TARGET)
 
 cleanmotif: clean
 motif: all
index 31d7d202c401e8f913858b233ef47aec30c7eb54..7991fef481eb34e8da9e9ea561d8d77115f797ff 100644 (file)
@@ -223,10 +223,10 @@ void wxGenericFontDialog::CreateWidgets(void)
   int x=-1;
   int y=40;
   familyChoice = new wxChoice(this, wxID_FONT_FAMILY, wxPoint(10, 10), wxSize(120, -1), 5, families);
-  styleChoice = new wxChoice(this, wxID_FONT_STYLE, wxPoint(160, 10), wxSize(120, -1), 3, styles);
-  weightChoice = new wxChoice(this, wxID_FONT_WEIGHT, wxPoint(310, 10), wxSize(120, -1), 3, weights);
+  styleChoice = new wxChoice(this, wxID_FONT_STYLE, wxPoint(170, 10), wxSize(120, -1), 3, styles);
+  weightChoice = new wxChoice(this, wxID_FONT_WEIGHT, wxPoint(330, 10), wxSize(120, -1), 3, weights);
 
-  colourChoice = new wxChoice(this, wxID_FONT_COLOUR, wxPoint(10, 40), wxSize(190, -1), NUM_COLS, wxColourDialogNames);
+  colourChoice = new wxChoice(this, wxID_FONT_COLOUR, wxPoint(10, 40), wxSize(180, -1), NUM_COLS, wxColourDialogNames);
 #if 0 // def __WXMOTIF__ // TODO: This necessary now?
   // We want the pointSizeText to line up on the y axis with the colourChoice
   colourChoice->GetPosition(&fontRect.x, &y); //NL mod
@@ -271,7 +271,8 @@ void wxGenericFontDialog::CreateWidgets(void)
 
   okButton->SetDefault();
 
-  SetClientSize(450, by + 40);
+  //  SetClientSize(450, by + 40);
+  Fit();
 
   Centre(wxBOTH);