QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Signals | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TerminalStripTreeDockWidget Class Reference

#include <terminalstriptreedockwidget.h>

Inherits QDockWidget.

Collaboration diagram for TerminalStripTreeDockWidget:
Collaboration graph

Signals

void currentStripChanged (TerminalStrip *strip)
 

Public Member Functions

 TerminalStripTreeDockWidget (QETProject *project, QWidget *parent=nullptr)
 
 ~TerminalStripTreeDockWidget ()
 
void reload ()
 TerminalStripTreeDockWidget::reload.
 
bool currentIsStrip () const
 TerminalStripTreeDockWidget::currentIsStrip.
 
TerminalStripcurrentStrip () const
 TerminalStripTreeDockWidget::currentStrip.
 
QString currentInstallation () const
 TerminalStripTreeDockWidget::currentInstallation.
 
QString currentLocation () const
 TerminalStripTreeDockWidget::currentLocation.
 
void setSelectedStrip (TerminalStrip *strip)
 TerminalStripTreeDockWidget::setSelectedStrip.
 
QSharedPointer< RealTerminalcurrentRealTerminal () const
 TerminalStripTreeDockWidget::currentRealTerminal.
 

Private Types

enum  TreeWidgetType {
  Root , Terminal , FreeTerminal , Installation ,
  Location , Strip
}
 

Private Slots

void on_m_tree_view_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 TerminalStripTreeDockWidget::on_m_tree_view_currentItemChanged.
 

Private Member Functions

void buildTree ()
 TerminalStripTreeDockWidget::buildTree.
 
QTreeWidgetItem * addTerminalStrip (TerminalStrip *terminal_strip)
 
void addFreeTerminal ()
 TerminalStripTreeDockWidget::addFreeTerminal.
 
void setCurrentStrip (TerminalStrip *strip)
 

Private Attributes

Ui::TerminalStripTreeDockWidget * ui
 
QPointer< QETProjectm_project
 
QPointer< TerminalStripm_current_strip
 
QHash< QTreeWidgetItem *, TerminalStrip * > m_item_strip_H
 
QHash< QUuid, QSharedPointer< RealTerminal > > m_uuid_terminal_H
 
QHash< QUuid, QPointer< TerminalStrip > > m_uuid_strip_H
 
QVector< QMetaObject::Connection > m_strip_changed_connection
 
bool m_current_is_free_terminal {false}
 

Static Private Attributes

static constexpr int UUID_USER_ROLE {Qt::UserRole + 1}
 

Member Enumeration Documentation

◆ TreeWidgetType

Enumerator
Root 
Terminal 
FreeTerminal 
Installation 
Location 
Strip 

Constructor & Destructor Documentation

◆ TerminalStripTreeDockWidget()

TerminalStripTreeDockWidget::TerminalStripTreeDockWidget ( QETProject project,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~TerminalStripTreeDockWidget()

TerminalStripTreeDockWidget::~TerminalStripTreeDockWidget ( )

Member Function Documentation

◆ addFreeTerminal()

void TerminalStripTreeDockWidget::addFreeTerminal ( )
private

TerminalStripTreeDockWidget::addFreeTerminal.

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

◆ addTerminalStrip()

QTreeWidgetItem * TerminalStripTreeDockWidget::addTerminalStrip ( TerminalStrip terminal_strip)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ buildTree()

void TerminalStripTreeDockWidget::buildTree ( )
private

TerminalStripTreeDockWidget::buildTree.

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

◆ currentInstallation()

QString TerminalStripTreeDockWidget::currentInstallation ( ) const

TerminalStripTreeDockWidget::currentInstallation.

Returns
the installation according to the current selection
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentIsStrip()

bool TerminalStripTreeDockWidget::currentIsStrip ( ) const

TerminalStripTreeDockWidget::currentIsStrip.

Returns
true if the current selected item is a terminal strip.
Here is the caller graph for this function:

◆ currentLocation()

QString TerminalStripTreeDockWidget::currentLocation ( ) const

TerminalStripTreeDockWidget::currentLocation.

Returns
the location according to the current selection
Here is the caller graph for this function:

◆ currentRealTerminal()

QSharedPointer< RealTerminal > TerminalStripTreeDockWidget::currentRealTerminal ( ) const

TerminalStripTreeDockWidget::currentRealTerminal.

Returns
the current real terminal or a null QSharedPointer.
Here is the caller graph for this function:

◆ currentStrip()

TerminalStrip * TerminalStripTreeDockWidget::currentStrip ( ) const

TerminalStripTreeDockWidget::currentStrip.

Returns
The current selected strip or nullptr if there is no strip selected;
Here is the caller graph for this function:

◆ currentStripChanged

void TerminalStripTreeDockWidget::currentStripChanged ( TerminalStrip strip)
signal
Here is the caller graph for this function:

◆ on_m_tree_view_currentItemChanged

void TerminalStripTreeDockWidget::on_m_tree_view_currentItemChanged ( QTreeWidgetItem *  current,
QTreeWidgetItem *  previous 
)
privateslot

TerminalStripTreeDockWidget::on_m_tree_view_currentItemChanged.

Parameters
current
previous
Here is the call graph for this function:

◆ reload()

void TerminalStripTreeDockWidget::reload ( )

TerminalStripTreeDockWidget::reload.

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

◆ setCurrentStrip()

void TerminalStripTreeDockWidget::setCurrentStrip ( TerminalStrip strip)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedStrip()

void TerminalStripTreeDockWidget::setSelectedStrip ( TerminalStrip strip)

TerminalStripTreeDockWidget::setSelectedStrip.

Parameters
strip
Here is the caller graph for this function:

Member Data Documentation

◆ m_current_is_free_terminal

bool TerminalStripTreeDockWidget::m_current_is_free_terminal {false}
private

◆ m_current_strip

QPointer<TerminalStrip> TerminalStripTreeDockWidget::m_current_strip
private

◆ m_item_strip_H

QHash<QTreeWidgetItem *, TerminalStrip *> TerminalStripTreeDockWidget::m_item_strip_H
private

◆ m_project

QPointer<QETProject> TerminalStripTreeDockWidget::m_project
private

◆ m_strip_changed_connection

QVector<QMetaObject::Connection> TerminalStripTreeDockWidget::m_strip_changed_connection
private

◆ m_uuid_strip_H

QHash<QUuid, QPointer<TerminalStrip> > TerminalStripTreeDockWidget::m_uuid_strip_H
private

◆ m_uuid_terminal_H

QHash<QUuid, QSharedPointer<RealTerminal> > TerminalStripTreeDockWidget::m_uuid_terminal_H
private

◆ ui

Ui::TerminalStripTreeDockWidget* TerminalStripTreeDockWidget::ui
private

◆ UUID_USER_ROLE

constexpr int TerminalStripTreeDockWidget::UUID_USER_ROLE {Qt::UserRole + 1}
staticconstexprprivate

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