QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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 insertDiagramAbove ()
 ElementsPanelWidget::insertDiagramAbove Emit requestForNewDiagramAt with the position of the currently selected diagram, inserting the new folio right before it.
void insertDiagramBelow ()
 ElementsPanelWidget::insertDiagramBelow Emit requestForNewDiagramAt with the position right after the currently selected diagram, inserting the new folio right after it.
void deleteDiagram ()
void duplicateDiagram ()
void moveDiagramUp ()
void moveDiagramDown ()
void moveDiagramUpTop ()
void moveDiagramUpx10 ()
void moveDiagramUpx100 ()
void moveDiagramDownx10 ()
void moveDiagramDownx100 ()
void addTitleBlockTemplate ()
void editTitleBlockTemplate ()
void removeTitleBlockTemplate ()
void updateButtons ()
void handleContextMenu (const QPoint &)
void filterEdited (const QString &)

Signals

void requestForProject (QETProject *)
void requestForNewDiagram (QETProject *)
void requestForNewDiagramAt (QETProject *, int)
void requestForProjectClosing (QETProject *)
void requestForProjectPropertiesEdition (QETProject *)
void requestForDiagramPropertiesEdition (Diagram *)
void requestForDiagramDeletion (Diagram *)
void requestForDiagramsDeletion (const QList< Diagram * > &diagrams)
void requestForDiagramMoveUp (const QList< Diagram * > &diagrams)
void requestForDiagramMoveDown (const QList< Diagram * > &diagrams)
void requestForDiagramMoveUpTop (const QList< Diagram * > &diagrams)
void requestForDiagramMoveUpx10 (const QList< Diagram * > &diagrams)
void requestForDiagramMoveUpx100 (const QList< Diagram * > &diagrams)
void requestForDiagramMoveDownx10 (const QList< Diagram * > &diagrams)
void requestForDiagramMoveDownx100 (const QList< Diagram * > &diagrams)

Public Member Functions

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

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_insert_diagram_above
QAction * prj_insert_diagram_below
QAction * prj_del_diagram
QAction * prj_duplicate_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_upx100
QAction * prj_move_diagram_downx10
QAction * prj_move_diagram_downx100
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:
Here is the caller graph for this function:

◆ ~ElementsPanelWidget()

ElementsPanelWidget::~ElementsPanelWidget ( )
override

Destructeur

◆ ElementsPanelWidget() [2/2]

ElementsPanelWidget::ElementsPanelWidget ( const ElementsPanelWidget & )
private
Here is the call graph for this function:

Member Function Documentation

◆ activateProject

void ElementsPanelWidget::activateProject ( )
slot

Emit the requestForProject signal with the selected project

Here is the call graph for this function:
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 call graph for this function:
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 requestForDiagramsDeletion avec les schemas selectionnes

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

◆ duplicateDiagram

void ElementsPanelWidget::duplicateDiagram ( )
slot

Duplicates the selected folios (pages) along with their content and properties, and cleanly resolves cross-references.

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

◆ editDiagramProperties

void ElementsPanelWidget::editDiagramProperties ( )
slot

Emet le signal requestForDiagramPropertiesEdition avec le schema selectionne

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

◆ editProjectProperties

void ElementsPanelWidget::editProjectProperties ( )
slot

Emet le signal requestForProjectPropertiesEdition avec le projet selectionne

Here is the call graph for this function:
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:

◆ insertDiagramAbove

void ElementsPanelWidget::insertDiagramAbove ( )
slot

ElementsPanelWidget::insertDiagramAbove Emit requestForNewDiagramAt with the position of the currently selected diagram, inserting the new folio right before it.

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

◆ insertDiagramBelow

void ElementsPanelWidget::insertDiagramBelow ( )
slot

ElementsPanelWidget::insertDiagramBelow Emit requestForNewDiagramAt with the position right after the currently selected diagram, inserting the new folio right after it.

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 Treat key press event inside elements panel widget. Respects the enabled/disabled state of the corresponding QActions.

Here is the call graph for this function:

◆ moveDiagramDown

void ElementsPanelWidget::moveDiagramDown ( )
slot

Emits the requestForDiagramMoveDown signal with all selected diagrams.

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

◆ moveDiagramDownx10

void ElementsPanelWidget::moveDiagramDownx10 ( )
slot

Emits the requestForDiagramMoveDownx10 signal with all selected diagrams.

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

◆ moveDiagramDownx100

void ElementsPanelWidget::moveDiagramDownx100 ( )
slot

Emits the requestForDiagramMoveDownx100 signal with all selected diagrams.

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

◆ moveDiagramUp

void ElementsPanelWidget::moveDiagramUp ( )
slot

Emits the requestForDiagramMoveUp signal with all selected diagrams.

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

◆ moveDiagramUpTop

void ElementsPanelWidget::moveDiagramUpTop ( )
slot

Emits the requestForDiagramMoveUpTop signal with all selected diagrams.

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

◆ moveDiagramUpx10

void ElementsPanelWidget::moveDiagramUpx10 ( )
slot

Emits the requestForDiagramMoveUpx10 signal with all selected diagrams.

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

◆ moveDiagramUpx100

void ElementsPanelWidget::moveDiagramUpx100 ( )
slot

Emits the requestForDiagramMoveUpx100 signal with all selected diagrams.

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

◆ newDiagram

void ElementsPanelWidget::newDiagram ( )
slot

Emet le signal requestForNewDiagram avec le projet selectionne

Here is the call graph for this function:
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

◆ 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:

◆ requestForDiagramDeletion

void ElementsPanelWidget::requestForDiagramDeletion ( Diagram * )
signal

◆ requestForDiagramMoveDown

void ElementsPanelWidget::requestForDiagramMoveDown ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveDownx10

void ElementsPanelWidget::requestForDiagramMoveDownx10 ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveDownx100

void ElementsPanelWidget::requestForDiagramMoveDownx100 ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUp

void ElementsPanelWidget::requestForDiagramMoveUp ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUpTop

void ElementsPanelWidget::requestForDiagramMoveUpTop ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUpx10

void ElementsPanelWidget::requestForDiagramMoveUpx10 ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramMoveUpx100

void ElementsPanelWidget::requestForDiagramMoveUpx100 ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForDiagramPropertiesEdition

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

◆ requestForDiagramsDeletion

void ElementsPanelWidget::requestForDiagramsDeletion ( const QList< Diagram * > & diagrams)
signal
Here is the caller graph for this function:

◆ requestForNewDiagram

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

◆ requestForNewDiagramAt

void ElementsPanelWidget::requestForNewDiagramAt ( QETProject * ,
int  )
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_duplicate_diagram

QAction * ElementsPanelWidget::prj_duplicate_diagram
private

◆ prj_edit_prop

QAction * ElementsPanelWidget::prj_edit_prop
private

◆ prj_insert_diagram_above

QAction * ElementsPanelWidget::prj_insert_diagram_above
private

◆ prj_insert_diagram_below

QAction * ElementsPanelWidget::prj_insert_diagram_below
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_downx100

QAction * ElementsPanelWidget::prj_move_diagram_downx100
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_move_diagram_upx100

QAction * ElementsPanelWidget::prj_move_diagram_upx100
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: