You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
#ifndef UBLIBPALETTE_H
|
|
#define UBLIBPALETTE_H
|
|
|
|
#include <QWidget>
|
|
#include <QVBoxLayout>
|
|
#include <QStackedWidget>
|
|
#include <QDragEnterEvent>
|
|
#include <QDropEvent>
|
|
#include <QDragMoveEvent>
|
|
#include <QMimeData>
|
|
#include <QMouseEvent>
|
|
#include <QResizeEvent>
|
|
|
|
#include "UBDockPalette.h"
|
|
#include "UBLibNavigatorWidget.h"
|
|
#include "UBLibItemProperties.h"
|
|
#include "UBLibActionBar.h"
|
|
|
|
#define ID_NAVIGATOR 0
|
|
#define ID_PROPERTIES 1
|
|
|
|
class UBLibPalette : public UBDockPalette
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
UBLibPalette(QWidget* parent=0, const char* name="libPalette");
|
|
~UBLibPalette();
|
|
|
|
UBLibActionBar* actionBar(){return mActionBar;}
|
|
|
|
protected:
|
|
void updateMaxWidth();
|
|
void dragEnterEvent(QDragEnterEvent* pEvent);
|
|
void dropEvent(QDropEvent *pEvent);
|
|
void dragMoveEvent(QDragMoveEvent* pEvent);
|
|
void mouseMoveEvent(QMouseEvent *event);
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
private slots:
|
|
void showProperties(UBLibElement* elem);
|
|
void showFolder();
|
|
|
|
private:
|
|
void processMimeData(const QMimeData* pData);
|
|
|
|
/** The layout */
|
|
QVBoxLayout* mLayout;
|
|
/** The stacked layout */
|
|
QStackedWidget* mStackedWidget;
|
|
/** The Navigator widget */
|
|
UBLibNavigatorWidget* mNavigator;
|
|
/** The Properties widget */
|
|
UBLibItemProperties* mProperties;
|
|
/** UBLibActionBar */
|
|
UBLibActionBar* mActionBar;
|
|
};
|
|
|
|
#endif // UBLIBPALETTE_H
|
|
|