mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Refactoring
This commit is contained in:
		
							parent
							
								
									1c1a6b933a
								
							
						
					
					
						commit
						8a824bb8c2
					
				
					 5 changed files with 6 additions and 6 deletions
				
			
		|  | @ -3778,7 +3778,7 @@ void GLCanvas3D::set_tooltip(const std::string& tooltip) const | |||
|     if (m_canvas != nullptr) | ||||
|     { | ||||
| #if ENABLE_CANVAS_TOOLTIP_USING_IMGUI | ||||
|         m_tooltip.set_text(std::string((_(L(tooltip))).ToUTF8())); | ||||
|         m_tooltip.set_text(tooltip); | ||||
| #else | ||||
|         wxString txt = wxString::FromUTF8(tooltip.data()); | ||||
|         if (m_canvas->GetToolTipText() != txt) | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ public: | |||
|     double get_cut_z() const { return m_cut_z; } | ||||
|     void set_cut_z(double cut_z) const; | ||||
| 
 | ||||
|     virtual std::string get_tooltip() const; | ||||
|     std::string get_tooltip() const override; | ||||
| 
 | ||||
| protected: | ||||
|     virtual bool on_init(); | ||||
|  |  | |||
|  | @ -30,7 +30,7 @@ public: | |||
| 
 | ||||
|     const Vec3d& get_displacement() const { return m_displacement; } | ||||
| 
 | ||||
|     virtual std::string get_tooltip() const; | ||||
|     std::string get_tooltip() const override; | ||||
| 
 | ||||
| protected: | ||||
|     virtual bool on_init(); | ||||
|  |  | |||
|  | @ -49,7 +49,7 @@ public: | |||
|     double get_angle() const { return m_angle; } | ||||
|     void set_angle(double angle); | ||||
| 
 | ||||
|     virtual std::string get_tooltip() const; | ||||
|     std::string get_tooltip() const override; | ||||
| 
 | ||||
| protected: | ||||
|     virtual bool on_init(); | ||||
|  | @ -83,7 +83,7 @@ public: | |||
|     Vec3d get_rotation() const { return Vec3d(m_gizmos[X].get_angle(), m_gizmos[Y].get_angle(), m_gizmos[Z].get_angle()); } | ||||
|     void set_rotation(const Vec3d& rotation) { m_gizmos[X].set_angle(rotation(0)); m_gizmos[Y].set_angle(rotation(1)); m_gizmos[Z].set_angle(rotation(2)); } | ||||
| 
 | ||||
|     virtual std::string get_tooltip() const | ||||
|     std::string get_tooltip() const override | ||||
|     { | ||||
|         std::string tooltip = m_gizmos[X].get_tooltip(); | ||||
|         if (tooltip.empty()) | ||||
|  |  | |||
|  | @ -42,7 +42,7 @@ public: | |||
| 
 | ||||
|     const Vec3d& get_offset() const { return m_offset; } | ||||
| 
 | ||||
|     virtual std::string get_tooltip() const; | ||||
|     std::string get_tooltip() const override; | ||||
| 
 | ||||
| protected: | ||||
|     virtual bool on_init(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966