mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Classes "ElementPerso" et "PanelAppareils" renommees en "CustomElement" et "ElementsPanel"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@48 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
23
elementspanel.h
Normal file
23
elementspanel.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef PANELAPPAREILS_H
|
||||
#define PANELAPPAREILS_H
|
||||
#include <QtGui>
|
||||
#include "qetapp.h"
|
||||
/**
|
||||
Cette classe represente le panel d'appareils (en tant qu'element
|
||||
graphique) dans lequel l'utilisateur choisit les composants de
|
||||
son choix et les depose sur le schema par drag'n drop.
|
||||
*/
|
||||
class ElementsPanel : public QTreeWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ElementsPanel(QWidget * = 0);
|
||||
static QString categoryName(QDir &);
|
||||
public slots:
|
||||
void dragMoveEvent(QDragMoveEvent *);
|
||||
void dropEvent(QDropEvent *);
|
||||
void startDrag(Qt::DropActions);
|
||||
private:
|
||||
void ajouterFichier(QTreeWidgetItem *, QString);
|
||||
void ajouterDossier(QTreeWidgetItem *, QString, QString = QString());
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user