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

#include <diagramschooser.h>

Inherits QScrollArea.

Collaboration diagram for DiagramsChooser:
Collaboration graph

Public Slots

void updateList ()
 

Signals

void selectionChanged ()
 

Public Member Functions

 DiagramsChooser (QETProject *, QWidget *=nullptr)
 
 ~DiagramsChooser () override
 
QETProjectproject () const
 
QList< Diagram * > selectedDiagrams () const
 
QList< Diagram * > nonSelectedDiagrams () const
 
bool diagramIsSelected (Diagram *const) const
 
void setSelectedDiagrams (const QList< Diagram * > &, bool=true, bool=true)
 
void setSelectedAllDiagrams (bool=true)
 

Private Member Functions

 DiagramsChooser (const DiagramsChooser &)
 
void buildLayout ()
 

Private Attributes

QETProjectproject_
 
QWidget * widget0_
 
QVBoxLayout * vlayout0_
 
QHash< Diagram *, QCheckBox * > diagrams_
 

Detailed Description

This class provides a widget which allows users to select 0 to n diagrams among those of a particular project.

Constructor & Destructor Documentation

◆ DiagramsChooser() [1/2]

DiagramsChooser::DiagramsChooser ( QETProject project,
QWidget *  parent = nullptr 
)

Constructeur

Parameters
projectProjet dont il faut afficher les schemas
parentQWidget parent de ce widget
Here is the call graph for this function:

◆ ~DiagramsChooser()

DiagramsChooser::~DiagramsChooser ( )
override

Destructeur

◆ DiagramsChooser() [2/2]

DiagramsChooser::DiagramsChooser ( const DiagramsChooser )
private

Member Function Documentation

◆ buildLayout()

void DiagramsChooser::buildLayout ( )
private

Met en place la disposition du widget

Here is the caller graph for this function:

◆ diagramIsSelected()

bool DiagramsChooser::diagramIsSelected ( Diagram * const  diagram) const
Parameters
diagramUn schema cense etre present dans ce widget

◆ nonSelectedDiagrams()

QList< Diagram * > DiagramsChooser::nonSelectedDiagrams ( ) const
Returns
la liste des schemas qui ne sont pas selectionnes

◆ project()

QETProject * DiagramsChooser::project ( ) const
Returns
le projet dont ce widget affiche les schemas

◆ selectedDiagrams()

QList< Diagram * > DiagramsChooser::selectedDiagrams ( ) const
Returns
la liste des schemas selectionnes
Here is the caller graph for this function:

◆ selectionChanged

void DiagramsChooser::selectionChanged ( )
signal
Here is the caller graph for this function:

◆ setSelectedAllDiagrams()

void DiagramsChooser::setSelectedAllDiagrams ( bool  select = true)

Selectionne ou deselectionne tous les schemas

Parameters
selecttrue pour selectionne les schemas de la liste, false pour les deselectionner

◆ setSelectedDiagrams()

void DiagramsChooser::setSelectedDiagrams ( const QList< Diagram * > &  diagrams_list,
bool  select = true,
bool  reset = true 
)

Selectionne les schemas contenus dans la liste diagrams_list

Parameters
diagrams_listListe de schemas a selectionner
selecttrue pour selectionne les schemas de la liste, false pour les deselectionner
resettrue pour deselectionner tous les schemas avant de selectionner ceux de la liste

◆ updateList

void DiagramsChooser::updateList ( )
slot

Met a jour la liste des schemas du projet

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

Member Data Documentation

◆ diagrams_

QHash<Diagram *, QCheckBox *> DiagramsChooser::diagrams_
private

◆ project_

QETProject* DiagramsChooser::project_
private

◆ vlayout0_

QVBoxLayout* DiagramsChooser::vlayout0_
private

◆ widget0_

QWidget* DiagramsChooser::widget0_
private

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