mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	Massive UI revamping (v7): Changed auto stack tool button to button switch for better on/off visibility. Part of #1209
This commit is contained in:
		
							parent
							
								
									520106c7ba
								
							
						
					
					
						commit
						e1640e7ee1
					
				@ -30,6 +30,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "gui/samplingdevicedialog.h"
 | 
					#include "gui/samplingdevicedialog.h"
 | 
				
			||||||
#include "gui/rollupcontents.h"
 | 
					#include "gui/rollupcontents.h"
 | 
				
			||||||
 | 
					#include "gui/buttonswitch.h"
 | 
				
			||||||
#include "channel/channelgui.h"
 | 
					#include "channel/channelgui.h"
 | 
				
			||||||
#include "feature/featuregui.h"
 | 
					#include "feature/featuregui.h"
 | 
				
			||||||
#include "device/devicegui.h"
 | 
					#include "device/devicegui.h"
 | 
				
			||||||
@ -117,7 +118,8 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) :
 | 
				
			|||||||
    m_stackSubWindows->setToolTip("Stack sub windows");
 | 
					    m_stackSubWindows->setToolTip("Stack sub windows");
 | 
				
			||||||
    m_stackSubWindows->setFixedSize(20, 20);
 | 
					    m_stackSubWindows->setFixedSize(20, 20);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    m_autoStackSubWindows = new QPushButton("AS");
 | 
					    m_autoStackSubWindows = new ButtonSwitch();
 | 
				
			||||||
 | 
					    m_autoStackSubWindows->setText("AS");
 | 
				
			||||||
    m_autoStackSubWindows->setCheckable(true);
 | 
					    m_autoStackSubWindows->setCheckable(true);
 | 
				
			||||||
    //QIcon autoStackSubWindowsIcon(":/autostack.png"); // FIXME
 | 
					    //QIcon autoStackSubWindowsIcon(":/autostack.png"); // FIXME
 | 
				
			||||||
    //m_autoStackSubWindows->setIcon(autoStackSubWindowsIcon);
 | 
					    //m_autoStackSubWindows->setIcon(autoStackSubWindowsIcon);
 | 
				
			||||||
 | 
				
			|||||||
@ -31,6 +31,7 @@ class QStringList;
 | 
				
			|||||||
class QMdiArea;
 | 
					class QMdiArea;
 | 
				
			||||||
class QMdiSubWindow;
 | 
					class QMdiSubWindow;
 | 
				
			||||||
class QFrame;
 | 
					class QFrame;
 | 
				
			||||||
 | 
					class ButtonSwitch;
 | 
				
			||||||
class ChannelGUI;
 | 
					class ChannelGUI;
 | 
				
			||||||
class FeatureGUI;
 | 
					class FeatureGUI;
 | 
				
			||||||
class DeviceGUI;
 | 
					class DeviceGUI;
 | 
				
			||||||
@ -71,7 +72,7 @@ private:
 | 
				
			|||||||
    QPushButton *m_cascadeSubWindows;
 | 
					    QPushButton *m_cascadeSubWindows;
 | 
				
			||||||
    QPushButton *m_tileSubWindows;
 | 
					    QPushButton *m_tileSubWindows;
 | 
				
			||||||
    QPushButton *m_stackSubWindows;
 | 
					    QPushButton *m_stackSubWindows;
 | 
				
			||||||
    QPushButton *m_autoStackSubWindows;
 | 
					    ButtonSwitch *m_autoStackSubWindows;
 | 
				
			||||||
    QWidget *m_titleBar;
 | 
					    QWidget *m_titleBar;
 | 
				
			||||||
    QHBoxLayout *m_titleBarLayout;
 | 
					    QHBoxLayout *m_titleBarLayout;
 | 
				
			||||||
    QLabel *m_titleLabel;
 | 
					    QLabel *m_titleLabel;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user