35 #ifndef PAINTERPANEL_H
36 #define PAINTERPANEL_H
48 #include <QListWidget>
50 #include <QPushButton>
53 namespace PainterPanel {
54 using namespace Frapper;
72 PainterPanel ( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
103 void fillToolBars ( QToolBar *mainToolBar, QToolBar *panelToolBar );
109 static QList <PainterPanelImageListItemData*>
s_items;
124 void selectedNodeChanged(
Node * selectedNode);
131 void sceneChanged( QGraphicsScene *scene);
136 void updateImageList();
141 void imageListItemChanged(QListWidgetItem *clickedItem);
146 void historyListItemChanged(QListWidgetItem *clickedItem);
151 void historyListLayoutChanged();
158 void selectionChanged(
bool selected);
168 void changeDrawMode(
int mode );
173 void onSceneSelectionChanged(QList<QGraphicsItem*> selectedItems);
179 void onPenChanged( QPen pen);
185 void onBrushChanged( QBrush brush);
190 void onFillCheckToggled(
bool checked);
195 void onRefreshButtonClicked();
200 void updateDrawModeCombo(
int drawmode);
205 void selectPenColor();
210 void selectPenSize( QString size);
215 void selectBrushColor();
222 void triggerRedraw();
229 void setPenColorButton( QColor color);
234 void setBrushColorButton( QColor color);
240 static void deleteListItems();