src/configDialog.h

changeset 421
7d26db0be944
parent 402
ec95fc95e5f3
child 430
8458cf2719d1
--- a/src/configDialog.h	Fri Aug 02 15:57:03 2013 +0300
+++ b/src/configDialog.h	Fri Aug 02 16:33:30 2013 +0300
@@ -27,19 +27,17 @@
 class QDoubleSpinBox;
 
 // =============================================================================
-class ShortcutListItem : public QListWidgetItem
-{
+class ShortcutListItem : public QListWidgetItem {
 	PROPERTY (keyseqconfig*, keyConfig, setKeyConfig)
 	PROPERTY (QAction*, action, setAction)
 	
 public:
-	explicit ShortcutListItem( QListWidget* view = null, int type = Type ) :
-		QListWidgetItem( view, type ) {}
+	explicit ShortcutListItem (QListWidget* view = null, int type = Type) :
+		QListWidgetItem (view, type) {}
 };
 
 // =============================================================================
-class ConfigDialog : public QDialog
-{
+class ConfigDialog : public QDialog {
 	Q_OBJECT
 	
 public:
@@ -51,7 +49,7 @@
 	
 	List<LDQuickColor> quickColors;
 	QDoubleSpinBox* dsb_gridData[3][4];
-
+	
 private:
 	Ui_ConfigUI* ui;
 	QLabel* lb_gridLabels[3];
@@ -64,15 +62,15 @@
 	void initGridTab();
 	void initExtProgTab();
 	void addShortcut (keyseqconfig& cfg, QAction* act, ulong& i);
-	void setButtonBackground( QPushButton* button, str value );
-	void pickColor( strconfig& cfg, QPushButton* button );
-	void updateQuickColorList( LDQuickColor* sel = null );
+	void setButtonBackground (QPushButton* button, str value);
+	void pickColor (strconfig& cfg, QPushButton* button);
+	void updateQuickColorList (LDQuickColor* sel = null);
 	void setShortcutText (ShortcutListItem* item);
-	int getItemRow( QListWidgetItem* item, List<QListWidgetItem*>& haystack );
+	int getItemRow (QListWidgetItem* item, List<QListWidgetItem*>& haystack);
 	str quickColorString();
 	QListWidgetItem* getSelectedQuickColor();
 	QList<ShortcutListItem*> getShortcutSelection();
-
+	
 private slots:
 	void slot_setGLBackground();
 	void slot_setGLForeground();
@@ -90,23 +88,22 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
-class KeySequenceDialog : public QDialog
-{
+class KeySequenceDialog : public QDialog {
 	Q_OBJECT
 
 public:
-	explicit KeySequenceDialog( QKeySequence seq, QWidget* parent = null, Qt::WindowFlags f = 0 );
-	static bool staticDialog( keyseqconfig* cfg, QWidget* parent = null );
-
+	explicit KeySequenceDialog (QKeySequence seq, QWidget* parent = null, Qt::WindowFlags f = 0);
+	static bool staticDialog (keyseqconfig* cfg, QWidget* parent = null);
+	
 	QLabel* lb_output;
 	QDialogButtonBox* bbx_buttons;
 	QKeySequence seq;
-
+	
 private:
 	void updateOutput();
-
+	
 private slots:
-	virtual void keyPressEvent( QKeyEvent* ev ) override;
+	virtual void keyPressEvent (QKeyEvent* ev) override;
 };
 
-#endif // CONFIGDIALOG_H
+#endif // CONFIGDIALOG_H
\ No newline at end of file

mercurial