QElectroTech  0.8-dev
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ElementsPanelWidget Class Reference

The ElementsPanelWidget class This class embeds an elements panel under a toolbar providing various actions to manage elements. More...

#include <elementspanelwidget.h>

Inherits QWidget.

Collaboration diagram for ElementsPanelWidget:
Collaboration graph

Public Slots

void openDirectoryForSelectedItem ()
 
void copyPathForSelectedItem ()
 
void reloadAndFilter ()
 
void activateProject ()
 
void closeProject ()
 
void editProjectProperties ()
 
void editDiagramProperties ()
 
void newDiagram ()
 
void deleteDiagram ()
 
void moveDiagramUp ()
 
void moveDiagramDown ()
 
void moveDiagramUpTop ()
 
void moveDiagramUpx10 ()
 
void moveDiagramDownx10 ()
 
void addTitleBlockTemplate ()
 
void editTitleBlockTemplate ()
 
void removeTitleBlockTemplate ()
 
void updateButtons ()
 
void handleContextMenu (const QPoint &)
 
void filterEdited (const QString &)
 

Signals

void requestForDiagram (Diagram *)
 
void requestForProject (QETProject *)
 
void requestForNewDiagram (QETProject *)
 
void requestForProjectClosing (QETProject *)
 
void requestForProjectPropertiesEdition (QETProject *)
 
void requestForDiagramPropertiesEdition (Diagram *)
 
void requestForDiagramDeletion (Diagram *)
 
void requestForDiagramMoveUp (Diagram *)
 
void requestForDiagramMoveDown (Diagram *)
 
void requestForDiagramMoveUpTop (Diagram *)
 
void requestForDiagramMoveUpx10 (Diagram *)
 
void requestForDiagramMoveDownx10 (Diagram *)
 

Public Member Functions

 ElementsPanelWidget (QWidget *=nullptr)
 
 ~ElementsPanelWidget () override
 
ElementsPanelelementsPanel () const
 ElementsPanelWidget::elementsPanel. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 

Private Member Functions

 ElementsPanelWidget (const ElementsPanelWidget &)
 

Private Attributes

ElementsPanelelements_panel
 
QAction * open_directory
 
QAction * copy_path
 
QAction * prj_activate
 
QAction * prj_close
 
QAction * prj_edit_prop
 
QAction * prj_prop_diagram
 
QAction * prj_add_diagram
 
QAction * prj_del_diagram
 
QAction * prj_move_diagram_up
 
QAction * prj_move_diagram_top
 
QAction * prj_move_diagram_down
 
QAction * prj_move_diagram_upx10
 
QAction * prj_move_diagram_downx10
 
QAction * tbt_add
 
QAction * tbt_edit
 
QAction * tbt_remove
 
QMenu * context_menu
 
QLineEdit * filter_textfield
 
QString previous_filter_
 

Detailed Description

The ElementsPanelWidget class This class embeds an elements panel under a toolbar providing various actions to manage elements.

See also
ElementsPanel

Constructor & Destructor Documentation

◆ ElementsPanelWidget() [1/2]

ElementsPanelWidget::ElementsPanelWidget ( QWidget *  parent = nullptr)

Constructeur

Parameters
parentLe QWidget parent de ce widget
Here is the call graph for this function:

◆ ~ElementsPanelWidget()

ElementsPanelWidget::~ElementsPanelWidget ( )
override

Destructeur

◆ ElementsPanelWidget() [2/2]

ElementsPanelWidget::ElementsPanelWidget ( const ElementsPanelWidget )
private

Member Function Documentation

◆ activateProject

void ElementsPanelWidget::activateProject ( )
slot

Emit the requestForProject signal with te selected project

Here is the caller graph for this function:

◆ addTitleBlockTemplate

void ElementsPanelWidget::addTitleBlockTemplate ( )
slot

Opens a template editor to create a new title block template.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeProject

void ElementsPanelWidget::closeProject ( )
slot

Emet le signal requestForProjectClosing avec le projet selectionne

Here is the caller graph for this function:

◆ copyPathForSelectedItem

void ElementsPanelWidget::copyPathForSelectedItem ( )
slot

Copy the full path to the file represented by the selected item to the clipboard.

Here is the caller graph for this function:

◆ deleteDiagram

void ElementsPanelWidget::deleteDiagram ( )
slot

Emet le signal requestForDiagramDeletion avec le schema selectionne

Here is the caller graph for this function:

◆ editDiagramProperties

void ElementsPanelWidget::editDiagramProperties ( )
slot

Emet le signal requestForDiagramPropertiesEdition avec le schema selectionne

Here is the caller graph for this function:

◆ editProjectProperties

void ElementsPanelWidget::editProjectProperties ( )
slot

Emet le signal requestForProjectPropertiesEdition avec le projet selectionne

Here is the caller graph for this function:

◆ editTitleBlockTemplate

void ElementsPanelWidget::editTitleBlockTemplate ( )
slot

Opens an editor to edit the currently selected title block template, if any.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementsPanel()

ElementsPanel & ElementsPanelWidget::elementsPanel ( ) const
inline

ElementsPanelWidget::elementsPanel.

Returns
The elements panel embedded within this widget.

◆ filterEdited

void ElementsPanelWidget::filterEdited ( const QString &  next_text)
slot
Here is the caller graph for this function:

◆ handleContextMenu

void ElementsPanelWidget::handleContextMenu ( const QPoint &  pos)
slot

Gere le menu contextuel du panel d'elements

Parameters
posPosition ou le menu contextuel a ete demande
Here is the call graph for this function:
Here is the caller graph for this function:

◆ keyPressEvent()

void ElementsPanelWidget::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Treat key press event inside elements panel widget

◆ moveDiagramDown

void ElementsPanelWidget::moveDiagramDown ( )
slot

Emet le signal requestForDiagramMoveDown avec le schema selectionne

Here is the caller graph for this function:

◆ moveDiagramDownx10

void ElementsPanelWidget::moveDiagramDownx10 ( )
slot

Emet le signal requestForDiagramMoveDownx10 avec le schema selectionne

Here is the caller graph for this function:

◆ moveDiagramUp

void ElementsPanelWidget::moveDiagramUp ( )
slot

Emet le signal requestForDiagramMoveUp avec le schema selectionne

Here is the caller graph for this function:

◆ moveDiagramUpTop

void ElementsPanelWidget::moveDiagramUpTop ( )
slot
    Emet le signal requestForDiagramMoveUpTop avec le schema selectionne
Here is the caller graph for this function:

◆ moveDiagramUpx10

void ElementsPanelWidget::moveDiagramUpx10 ( )
slot

Emet le signal requestForDiagramMoveUpx10 avec le schema selectionne

Here is the caller graph for this function:

◆ newDiagram

void ElementsPanelWidget::newDiagram ( )
slot

Emet le signal requestForNewDiagram avec le projet selectionne

Here is the caller graph for this function:

◆ openDirectoryForSelectedItem

void ElementsPanelWidget::openDirectoryForSelectedItem ( )
slot

Require the desktop environment to open the directory containing the file represented by the selected item, if any.

Here is the caller graph for this function:

◆ reloadAndFilter

void ElementsPanelWidget::reloadAndFilter ( )
slot

Recharge le panel d'elements

Here is the caller graph for this function:

◆ removeTitleBlockTemplate

void ElementsPanelWidget::removeTitleBlockTemplate ( )
slot

Delete the currently selected title block template, if any.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestForDiagram

void ElementsPanelWidget::requestForDiagram ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramDeletion

void ElementsPanelWidget::requestForDiagramDeletion ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveDown

void ElementsPanelWidget::requestForDiagramMoveDown ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveDownx10

void ElementsPanelWidget::requestForDiagramMoveDownx10 ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUp

void ElementsPanelWidget::requestForDiagramMoveUp ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUpTop

void ElementsPanelWidget::requestForDiagramMoveUpTop ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUpx10

void ElementsPanelWidget::requestForDiagramMoveUpx10 ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForDiagramPropertiesEdition

void ElementsPanelWidget::requestForDiagramPropertiesEdition ( Diagram )
signal
Here is the caller graph for this function:

◆ requestForNewDiagram

void ElementsPanelWidget::requestForNewDiagram ( QETProject )
signal
Here is the caller graph for this function:

◆ requestForProject

void ElementsPanelWidget::requestForProject ( QETProject )
signal
Here is the caller graph for this function:

◆ requestForProjectClosing

void ElementsPanelWidget::requestForProjectClosing ( QETProject )
signal
Here is the caller graph for this function:

◆ requestForProjectPropertiesEdition

void ElementsPanelWidget::requestForProjectPropertiesEdition ( QETProject )
signal
Here is the caller graph for this function:

◆ updateButtons

void ElementsPanelWidget::updateButtons ( )
slot

Met a jour les boutons afin d'assurer la coherence de l'interface

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ context_menu

QMenu* ElementsPanelWidget::context_menu
private

◆ copy_path

QAction * ElementsPanelWidget::copy_path
private

◆ elements_panel

ElementsPanel* ElementsPanelWidget::elements_panel
private

◆ filter_textfield

QLineEdit* ElementsPanelWidget::filter_textfield
private

◆ open_directory

QAction* ElementsPanelWidget::open_directory
private

◆ previous_filter_

QString ElementsPanelWidget::previous_filter_
private

◆ prj_activate

QAction* ElementsPanelWidget::prj_activate
private

◆ prj_add_diagram

QAction * ElementsPanelWidget::prj_add_diagram
private

◆ prj_close

QAction * ElementsPanelWidget::prj_close
private

◆ prj_del_diagram

QAction * ElementsPanelWidget::prj_del_diagram
private

◆ prj_edit_prop

QAction * ElementsPanelWidget::prj_edit_prop
private

◆ prj_move_diagram_down

QAction * ElementsPanelWidget::prj_move_diagram_down
private

◆ prj_move_diagram_downx10

QAction * ElementsPanelWidget::prj_move_diagram_downx10
private

◆ prj_move_diagram_top

QAction * ElementsPanelWidget::prj_move_diagram_top
private

◆ prj_move_diagram_up

QAction * ElementsPanelWidget::prj_move_diagram_up
private

◆ prj_move_diagram_upx10

QAction * ElementsPanelWidget::prj_move_diagram_upx10
private

◆ prj_prop_diagram

QAction * ElementsPanelWidget::prj_prop_diagram
private

◆ tbt_add

QAction* ElementsPanelWidget::tbt_add
private

◆ tbt_edit

QAction * ElementsPanelWidget::tbt_edit
private

◆ tbt_remove

QAction * ElementsPanelWidget::tbt_remove
private

The documentation for this class was generated from the following files: