Class representing a view for displaying and editing parameters of nodes.
More...
#include <PoemReaderPanel.h>
|
void | sendPoem (int buttonId) |
| Reduces the wordcloud given a word associated to a poem.
|
|
void | visualizeCloud () |
| To visualize the cloud in OGRE.
|
|
void | clicked (int buttonId) |
|
|
| PoemReaderPanel (QWidget *parent=0, Qt::WindowFlags flags=0) |
| Constructor of the PoemReaderPanel class.
|
|
virtual | ~PoemReaderPanel () |
| Destructor of the PoemReaderPanel class.
|
|
virtual void | registerControl (NodeModel *nodeModel, SceneModel *sceneModel) |
| Connects the panel with the scene.
|
|
QListWidgetItem * | addItem (Parameter *parameter, bool groupElement) |
| Adds a item to the list.
|
|
void | createWordsTable (Node *selectedNode) |
| Fills the table with with the words parameters of the PoemReaderNode.
|
|
bool | findWord (QString word, int &listIndex) |
|
bool | obtainWord (QString word) |
|
void | loadXmlFile () |
|
void | renderWords (QGraphicsScene *scene, QString word, qreal size, int &posx, int &posy, int &gWordHeight) |
| Render the words in the scene view.
|
|
void | clearLayout (QLayout *layout, bool deleteWidgets) |
|
| ViewPanel (Type viewPanelType, QWidget *parent=0, Qt::WindowFlags flags=0) |
| Constructor of the ViewPanel class.
|
|
Type | getViewPanelType () |
| Returns the type of the view panel.
|
|
| Panel (QWidget *parent=0, Qt::WindowFlags flags=0) |
| Constructor of the Panel class.
|
|
virtual | ~Panel () |
| Destructor of the Panel class.
|
|
virtual void | fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar) |
| Fills the given tool bars in a panel frame with actions for the panel.
|
|
QMap< QString, QString > | getPanelParameters () |
| Gets the panel parameters. For load and save functionality.
|
|
virtual void | setPanelParameters (const QMap< QString, QString > ¶meterMap) |
| Sets the panel parameters. For load and save functionality.
|
|
|
void | updateSelectedNode (Node *selectedNode) |
| Is called a node is selected.
|
|
void | update () |
| Updates the panel if the node model changes.
|
|
void | nodeSelected (QListWidgetItem *listItem) |
| Updates the scene and the panel if a node is selected in the panel.
|
|
|
enum | Type {
T_Documentation,
T_Viewport,
T_NetworkEditor,
T_HierarchyEditor,
T_ParameterEditor,
T_CurveEditor,
T_Timeline,
T_PluginPanel,
T_PainterPanel,
T_NumTypes
} |
| Nested enumeration for the different types of view panels. More...
|
|
static QString | getTypeName (Type panelType) |
| Returns the name of the given panel type.
|
|
static QString | getTypeIconName (Type panelType) |
| Returns the icon name for the given panel type.
|
|
QMap< QString, QString > | m_parameterMap |
| Map with default values. For load and save functionality.
|
|
Class representing a view for displaying and editing parameters of nodes.
PoemReaderPanel::PoemReaderPanel |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
flags = 0 |
|
) |
| |
Constructor of the PoemReaderPanel class.
Constructors and Destructors.
- Parameters
-
parent | The parent widget the created instance will be a child of. |
flags | Extra widget options. |
Constructor of the PoemReaderPanel class.
- Parameters
-
parent | The parent widget the created instance will be a child of. |
flags | Extra widget options. |
PoemReaderPanel::~PoemReaderPanel |
( |
| ) |
|
|
virtual |
Destructor of the PoemReaderPanel class.
Destructor of the NetworkPanel class.
Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.
void PoemReaderPanel::sendPoem |
( |
int |
buttonId | ) |
|
|
slot |
Reduces the wordcloud given a word associated to a poem.
Reduces the amount of words in the wordCloud (Diana)
void PoemReaderPanel::visualizeCloud |
( |
| ) |
|
|
slot |
To visualize the cloud in OGRE.
Reduces the amount of words in the wordCloud (Diana)
void PoemReaderPanel::clicked |
( |
int |
buttonId | ) |
|
|
slot |
Connects the panel with the scene.
Public Funcitons.
- Parameters
-
Connects the panel with the scene.
- Parameters
-
Reimplemented from Frapper::Panel.
QListWidgetItem* Frapper::PoemReaderPanel::addItem |
( |
Parameter * |
parameter, |
|
|
bool |
groupElement |
|
) |
| |
Adds a item to the list.
- Parameters
-
parameter | Parameter to be added to a list |
groupElement | true if element of a parameter group |
- Returns
- the created QListWidgetItem
void PoemReaderPanel::createWordsTable |
( |
Node * |
selectedNode | ) |
|
Fills the table with with the words parameters of the PoemReaderNode.
- Parameters
-
node | Is the selected node of the scene |
bool Frapper::PoemReaderPanel::findWord |
( |
QString |
word, |
|
|
int & |
listIndex |
|
) |
| |
bool Frapper::PoemReaderPanel::obtainWord |
( |
QString |
word | ) |
|
void Frapper::PoemReaderPanel::loadXmlFile |
( |
| ) |
|
void PoemReaderPanel::renderWords |
( |
QGraphicsScene * |
scene, |
|
|
QString |
word, |
|
|
qreal |
size, |
|
|
int & |
posx, |
|
|
int & |
posy, |
|
|
int & |
gWordHeight |
|
) |
| |
Render the words in the scene view.
Render the words in the given view.
\param scene The scene where to render
- Parameters
-
word | The string to render. |
size | Is the point size of the word according to its frequency of appearance |
posx | Is the position in X that the word will occupy |
posy | Is the position in Y that the word will occupy |
gWordHeight | Contains the height of the word with the greates height in one line |
void PoemReaderPanel::clearLayout |
( |
QLayout * |
layout, |
|
|
bool |
deleteWidgets = true |
|
) |
| |
void PoemReaderPanel::updateSelectedNode |
( |
Node * |
selectedNode | ) |
|
|
privateslot |
Is called a node is selected.
Private Slots.
- Parameters
-
selecedNode | the selected wich was selected |
Is called when a node is selected
- Parameters
-
selectedNode | the node which was selected |
void PoemReaderPanel::update |
( |
| ) |
|
|
privateslot |
Updates the panel if the node model changes.
void PoemReaderPanel::nodeSelected |
( |
QListWidgetItem * |
listItem | ) |
|
|
privateslot |
Updates the scene and the panel if a node is selected in the panel.
NodeModel* Frapper::PoemReaderPanel::m_nodeModel |
|
private |
Node* Frapper::PoemReaderPanel::m_node |
|
private |
SceneModel* Frapper::PoemReaderPanel::m_sceneModel |
|
private |
QListWidget* Frapper::PoemReaderPanel::m_ListNodes |
|
private |
List Widget to show all nodes in the scene.
QLineEdit* Frapper::PoemReaderPanel::m_lineEdit |
|
private |
Line Edit to introduce the word to render.
QTableWidget* Frapper::PoemReaderPanel::m_wordsTable |
|
private |
QStringList Frapper::PoemReaderPanel::m_poemsindex |
|
private |
int Frapper::PoemReaderPanel::rowsInTable |
|
private |
QStringList Frapper::PoemReaderPanel::poems |
|
private |
bool Frapper::PoemReaderPanel::done |
|
private |
QGraphicsScene* Frapper::PoemReaderPanel::scene |
|
private |
QGraphicsView* Frapper::PoemReaderPanel::view |
|
private |
QHBoxLayout* Frapper::PoemReaderPanel::m_hboxLayout |
|
private |
QVBoxLayout* Frapper::PoemReaderPanel::m_leftvboxLayout |
|
private |
QVBoxLayout* Frapper::PoemReaderPanel::m_rightvboxLayout |
|
private |
QPushButton* Frapper::PoemReaderPanel::m_buttonSelector |
|
private |
QPushButton* Frapper::PoemReaderPanel::buttonCloudGenerator |
|
private |
QTabWidget* Frapper::PoemReaderPanel::m_tabWidget |
|
private |
QSignalMapper* Frapper::PoemReaderPanel::m_signalMapper |
|
private |
The documentation for this class was generated from the following files: