#1 Rebuild with wxWidgets 3.2
Merged a year ago by mycae. Opened a year ago by swt2c.
rpms/ swt2c/3Depict wx3.2  into  rawhide

@@ -0,0 +1,115 @@ 

+ diff -up 3Depict-0.0.22/src/gui/cropPanel.cpp.wx32 3Depict-0.0.22/src/gui/cropPanel.cpp

+ --- 3Depict-0.0.22/src/gui/cropPanel.cpp.wx32	2019-01-05 19:47:51.000000000 -0500

+ +++ 3Depict-0.0.22/src/gui/cropPanel.cpp	2022-08-04 18:48:53.245358493 -0400

+ @@ -720,7 +720,7 @@ void CropPanel::makeCropValuesValid()

+  void CropPanel::onResize(wxSizeEvent &evt)

+  {

+  #ifndef __WXMAC__

+ -	wxPaintEvent paintEvt;

+ -	wxPostEvent(this,paintEvt);

+ +	Refresh();

+ +	Update();

+  #endif

+  }

+ diff -up 3Depict-0.0.22/src/gui/dialogs/resolutionDialog.cpp.wx32 3Depict-0.0.22/src/gui/dialogs/resolutionDialog.cpp

+ --- 3Depict-0.0.22/src/gui/dialogs/resolutionDialog.cpp.wx32	2018-08-05 09:48:45.000000000 -0400

+ +++ 3Depict-0.0.22/src/gui/dialogs/resolutionDialog.cpp	2022-08-04 18:49:54.126843451 -0400

+ @@ -79,8 +79,8 @@ END_EVENT_TABLE();

+  

+  void ResolutionDialog::updateImage()

+  {

+ -	wxPaintEvent paintEvt;

+ -	wxPostEvent(this,paintEvt);

+ +	Refresh();

+ +	Update();

+  }

+  

+  void ResolutionDialog::setRes(unsigned int w, unsigned int h, bool asReset)

+ diff -up 3Depict-0.0.22/src/gui/glPane.cpp.wx32 3Depict-0.0.22/src/gui/glPane.cpp

+ --- 3Depict-0.0.22/src/gui/glPane.cpp.wx32	2019-01-05 19:47:51.000000000 -0500

+ +++ 3Depict-0.0.22/src/gui/glPane.cpp	2022-08-04 19:34:27.351248848 -0400

+ @@ -214,8 +214,8 @@ unsigned int  BasicGLPane::hoverTest(con

+  void BasicGLPane::forceRedraw()

+  {

+  	//Force a paint update for the scene

+ -	wxPaintEvent ptEvent;

+ -	wxPostEvent(this,ptEvent);

+ +	Refresh();

+ +	Update();

+  

+  #ifdef WIN32

+  	//Hack for windows. Does not redraw otherwise.

+ @@ -1108,8 +1108,8 @@ bool BasicGLPane::saveImage(unsigned int

+  	delete image;

+  

+  	if (needPostPaint) {

+ -		wxPaintEvent event;

+ -		wxPostEvent(this,event);

+ +		Refresh();

+ +		Update();

+  	}

+  

+  	return isOK;

+ @@ -1182,8 +1182,8 @@ bool BasicGLPane::saveImageSequence(unsi

+  	currentScene->discardTempCam();

+  	wxD->Destroy();

+  	

+ -	wxPaintEvent event;

+ -	wxPostEvent(this,event);

+ +	Refresh();

+ +	Update();

+  	return true;

+  		

+  }

+ diff -up 3Depict-0.0.22/src/gui/mainFrame.cpp.wx32 3Depict-0.0.22/src/gui/mainFrame.cpp

+ --- 3Depict-0.0.22/src/gui/mainFrame.cpp.wx32	2022-08-04 16:54:09.801980447 -0400

+ +++ 3Depict-0.0.22/src/gui/mainFrame.cpp	2022-08-04 18:47:41.785789266 -0400

+ @@ -1814,8 +1814,8 @@ void MainWindowFrame::OnFileExportVideo(

+  

+  

+  	//Force a paint update for the scene, to  ensure aspect ratio information is preserved

+ -	wxPaintEvent ptEvent;

+ -	wxPostEvent(panelTop,ptEvent);

+ +	panelTop->Refresh();

+ +	panelTop->Update();

+  }

+  

+  

+ diff -up 3Depict-0.0.22/src/wx/propertyGridUpdater.h.wx32 3Depict-0.0.22/src/wx/propertyGridUpdater.h

+ --- 3Depict-0.0.22/src/wx/propertyGridUpdater.h.wx32	2018-06-05 18:52:57.000000000 -0400

+ +++ 3Depict-0.0.22/src/wx/propertyGridUpdater.h	2022-08-04 17:51:35.619683708 -0400

+ @@ -19,7 +19,9 @@

+  #ifndef PROPERTYGRIDUPDATER_H

+  #define PROPERTYGRIDUPDATER_H

+  

+ +#include <wx/bmpbndl.h>

+  #include <wx/propgrid/propgrid.h>

+ +#include <wx/propgrid/editors.h>

+  #include <wx/msgdlg.h>

+  #include "backend/filter.h"

+  #include "gui/dialogs/transferFuncDialog.h"

+ diff -up 3Depict-0.0.22/src/wx/wxcomponents.h.wx32 3Depict-0.0.22/src/wx/wxcomponents.h

+ --- 3Depict-0.0.22/src/wx/wxcomponents.h.wx32	2018-06-05 18:52:57.000000000 -0400

+ +++ 3Depict-0.0.22/src/wx/wxcomponents.h	2022-08-04 17:57:47.144135600 -0400

+ @@ -39,10 +39,10 @@

+  

+  //!3D combo grid renderer, from

+  //http://nomadsync.cvs.sourceforge.net/nomadsync/nomadsync/src/EzGrid.cpp?view=markup (GPL)

+ -class wxGridCellChoiceRenderer : public wxGridCellStringRenderer

+ +class wxGridCellChoiceRenderer_ : public wxGridCellStringRenderer

+  {

+  public:

+ -	wxGridCellChoiceRenderer(wxLayoutAlignment border = wxLAYOUT_NONE) :

+ +	wxGridCellChoiceRenderer_(wxLayoutAlignment border = wxLAYOUT_NONE) :

+  			m_border(border) {}

+  	virtual void Draw(wxGrid& grid,

+  	                  wxGridCellAttr& attr,

+ @@ -52,7 +52,7 @@ public:

+  	                  bool isSelected);

+  	virtual wxGridCellRenderer *Clone() const

+  	{

+ -		return new wxGridCellChoiceRenderer;

+ +		return new wxGridCellChoiceRenderer_;

+  	}

+  private:

+  	wxLayoutAlignment m_border;

file modified
+8 -2
@@ -1,6 +1,6 @@ 

  Name:		3Depict

  Version:	0.0.22

- Release:	13%{?dist}

+ Release:	14%{?dist}

  Summary:	Valued 3D point cloud visualization and analysis

  

  
@@ -23,7 +23,7 @@ 

  #Desktop file utils for installing desktop file

  BuildRequires: desktop-file-utils

  #WX widgets

- BuildRequires: wxGTK3-devel

+ BuildRequires: wxGTK-devel

  #Vigra, for voxelisation

  BuildRequires: vigra-devel

  
@@ -46,6 +46,8 @@ 

  #wxGLCanvas not supported under wayland.

  # wx bug 17702

  Patch4: %{name}-%{version}-wayland.patch

+ # Fixes for wxWidgets 3.2 compatibility

+ Patch5: %{name}-%{version}-wx3.2.patch

  %description

  This software is designed to help users visualize and analyze 3D point clouds

  with an associated real value, in a fast and flexible fashion. It is 
@@ -61,6 +63,7 @@ 

  %patch2

  %patch3

  %patch4

+ %patch5 -p1

  

  %if 0%{?fedora} > 24

  # Installation directory has changed
@@ -127,6 +130,9 @@ 

  

  

  %changelog

+ * Mon Sep 12 2022 Scott Talbert <swt@techie.net> - 0.0.22-14

+ - Rebuild with wxWidgets 3.2

+ 

  * Tue Aug 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.0.22-13

  - Rebuild for gsl-2.7.1

  

no initial comment

rebased onto bffe9da

a year ago

Hi, just following up on this PR.

This change moves from wxWidgets 3.0 to wxWidgets 3.2. wxWidgets 3.0 is no longer maintained by upstream and ideally I would like to retire it before F38. Any chance you could merge and build this PR, please?

Let me know if you have any questions or feedback.

Pull-Request has been merged by mycae

a year ago

@mycae can you please do a build in rawhide with this change?

Metadata