]> git.saurik.com Git - wxWidgets.git/commitdiff
Upported mouse click detection change for wxChoice.
authorRobert Roebling <robert@roebling.de>
Tue, 8 Jul 2003 11:18:42 +0000 (11:18 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 8 Jul 2003 11:18:42 +0000 (11:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/dcpsg.h
include/wx/gtk/choice.h
include/wx/gtk1/choice.h

index 2dd1ca4ff9448919ba09db3a891c3aa9fd91ee9e..b86487bf85ff48c1da152954a740f5bfe1946518 100644 (file)
@@ -38,17 +38,18 @@ class wxPostScriptDC;
 class WXDLLEXPORT wxPostScriptDC: public wxDC
 {
 public:
-  wxPostScriptDC();
+    wxPostScriptDC();
 
-  // Recommended constructor
-  wxPostScriptDC(const wxPrintData& printData);
+    // Recommended constructor
+    wxPostScriptDC(const wxPrintData& printData);
   
-  ~wxPostScriptDC();
+    // Recommended destructor :-)
+    ~wxPostScriptDC();
 
 #if WXWIN_COMPATIBILITY_2_2
-  wxPostScriptDC( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL )
-      { Create( output, interactive, parent ); }
-  bool Create ( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL );
+    wxPostScriptDC( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL )
+        { Create( output, interactive, parent ); }
+    bool Create ( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL );
 #endif
 
   virtual bool Ok() const;
@@ -132,6 +133,12 @@ private:
     static float ms_PSScaleFactor;
 
 protected:
+#if wxUSE_PANGO
+    PangoContext *m_context;
+    PangoLayout *m_layout;
+    PangoFontDescription *m_fontdesc;
+#endif
+
     FILE*             m_pstream;    // PostScript output stream
     wxString          m_title;
     unsigned char     m_currentRed;
index 5f550d732a5f31bab5d10f6b45b4d984253625dc..95a7154bcbb289b14bd59304bf338c4efb50ad2b 100644 (file)
@@ -69,6 +69,7 @@ protected:
 
     virtual wxSize DoGetBestSize() const;
 
+    virtual bool IsOwnGtkWindow( GdkWindow *window );
 private:
     // common part of Create() and DoAppend()
     int GtkAddHelper(GtkWidget *menu, int pos, const wxString& item);
index 5f550d732a5f31bab5d10f6b45b4d984253625dc..95a7154bcbb289b14bd59304bf338c4efb50ad2b 100644 (file)
@@ -69,6 +69,7 @@ protected:
 
     virtual wxSize DoGetBestSize() const;
 
+    virtual bool IsOwnGtkWindow( GdkWindow *window );
 private:
     // common part of Create() and DoAppend()
     int GtkAddHelper(GtkWidget *menu, int pos, const wxString& item);