src/MainWindow.h

changeset 642
751a8df42842
parent 641
425b169a82aa
child 646
1ccb092cebed
equal deleted inserted replaced
641:425b169a82aa 642:751a8df42842
55 #define CTRL_SHIFT(N) (Qt::CTRL | Qt::SHIFT | Qt::Key_##N) 55 #define CTRL_SHIFT(N) (Qt::CTRL | Qt::SHIFT | Qt::Key_##N)
56 56
57 // ============================================================================= 57 // =============================================================================
58 class LDQuickColor 58 class LDQuickColor
59 { 59 {
60 PROPERTY (public, LDColor*, Color, NO_OPS, STOCK_WRITE) 60 PROPERTY (public, LDColor*, color, setColor, STOCK_WRITE)
61 PROPERTY (public, QToolButton*, ToolButton, NO_OPS, STOCK_WRITE) 61 PROPERTY (public, QToolButton*, toolButton, setToolButton, STOCK_WRITE)
62 62
63 public: 63 public:
64 LDQuickColor (LDColor* color, QToolButton* toolButton); 64 LDQuickColor (LDColor* color, QToolButton* toolButton);
65 bool isSeparator() const; 65 bool isSeparator() const;
66 66
107 void updateDocumentListItem (LDDocument* f); 107 void updateDocumentListItem (LDDocument* f);
108 int getSelectedColor(); 108 int getSelectedColor();
109 LDObject::Type getUniformSelectedType(); 109 LDObject::Type getUniformSelectedType();
110 void scrollToSelection(); 110 void scrollToSelection();
111 void spawnContextMenu (const QPoint pos); 111 void spawnContextMenu (const QPoint pos);
112 void deleteObjects (LDObjectList objs);
113 int deleteSelection(); 112 int deleteSelection();
114 void deleteByColor (const int colnum); 113 void deleteByColor (const int colnum);
115 bool save (LDDocument* f, bool saveAs); 114 bool save (LDDocument* f, bool saveAs);
116 void updateActions(); 115 void updateActions();
117 116

mercurial