SMILX  1.01
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
milxQtManager Class Reference

A manager (tabbed) widget class for displaying information about data such as case ID etc. More...

#include <milxQtManager.h>

Inheritance diagram for milxQtManager:

Public Slots

int newTab (QString tabTitle, QStringList headings)
 Creates a new tab in the manager with the title and headings provided. More...
 
void closeTab (int index)
 Close the current tab.
 
void clearTab ()
 Clear the current tab.
 
void clearTab (int tabIndex)
 Clear the tab given by index. More...
 
void exportTab (QString filename="")
 Clear the tab given by index. More...
 
void addItem (QStringList entries, Qt::ItemFlags flags=Qt::ItemIsEnabled|Qt::ItemIsSelectable)
 Add all the entries in list to the view. More...
 
void addItem (int tabIndex, QStringList entries, Qt::ItemFlags flags=Qt::ItemIsEnabled|Qt::ItemIsSelectable)
 Add all the entries in list to the view. More...
 
void addItem (int tabIndex, QStringList entries, QWidget *itemWidgetToAdd, int widgetColumn)
 Add all the entries in list to the view, as well as the widget provided. More...
 
void addTreeItem (int tabIndex, QStringList topLevelName, QList< QStringList > entryList, Qt::ItemFlags flags=Qt::ItemIsEnabled|Qt::ItemIsSelectable)
 Add all the entries in list to the view like a tree. More...
 

Public Member Functions

 milxQtManager (QWidget *theParent=0)
 The standard constructor.
 

Protected Member Functions

void createActions ()
 Create the actions for context menu etc.
 
void createConnections ()
 Create the connections for context menu etc.
 
void contextMenuEvent (QContextMenuEvent *event)
 The context menu setup member. More...
 

Protected Attributes

QAction * actionExportTab
 export tab action
 
QAction * actionClearTab
 clear tab action
 
QAction * actionClear
 clear manager action
 

Detailed Description

A manager (tabbed) widget class for displaying information about data such as case ID etc.

Plugins can utilise the class for case browsing etc.

Definition at line 31 of file milxQtManager.h.

Member Function Documentation

◆ addItem [1/3]

void milxQtManager::addItem ( QStringList  entries,
Qt::ItemFlags  flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable 
)
slot

Add all the entries in list to the view.

Parameters
entriesThe entries for the current item or row to be add.
flagsitem properties, is it Qt::ItemIsEditable etc.

Definition at line 132 of file milxQtManager.cpp.

◆ addItem [2/3]

void milxQtManager::addItem ( int  tabIndex,
QStringList  entries,
Qt::ItemFlags  flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable 
)
slot

Add all the entries in list to the view.

Parameters
indextab index of the entry to be inserted
entriesThe entries for the current item or row to be add.
flagsitem properties, is it Qt::ItemIsEditable etc.

Definition at line 143 of file milxQtManager.cpp.

◆ addItem [3/3]

void milxQtManager::addItem ( int  tabIndex,
QStringList  entries,
QWidget *  itemWidgetToAdd,
int  widgetColumn 
)
slot

Add all the entries in list to the view, as well as the widget provided.

Parameters
indextab index of the entry to be inserted
entriesThe entries for the current item or row to be add.
itemWidgetToAddthe widget to be added to the item
widgetColumncolumn where the widget is to go

Definition at line 155 of file milxQtManager.cpp.

◆ addTreeItem

void milxQtManager::addTreeItem ( int  tabIndex,
QStringList  topLevelName,
QList< QStringList >  entryList,
Qt::ItemFlags  flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable 
)
slot

Add all the entries in list to the view like a tree.

Parameters
indextab index of the entry to be inserted
entriesThe entries for the current item or row to be add.
flagsitem properties, is it Qt::ItemIsEditable etc.

Definition at line 167 of file milxQtManager.cpp.

◆ clearTab

void milxQtManager::clearTab ( int  tabIndex)
slot

Clear the tab given by index.

Parameters
tabIndexindex for the tab to be cleared

Definition at line 74 of file milxQtManager.cpp.

◆ contextMenuEvent()

void milxQtManager::contextMenuEvent ( QContextMenuEvent *  event)
protected

The context menu setup member.

< Only exists for the duration of the context selection

Definition at line 210 of file milxQtManager.cpp.

◆ exportTab

void milxQtManager::exportTab ( QString  filename = "")
slot

Clear the tab given by index.

Parameters
tabIndexindex for the tab to be cleared

<

Todo:
Check and validate extensions support at Open in Main class

Definition at line 84 of file milxQtManager.cpp.

◆ newTab

int milxQtManager::newTab ( QString  tabTitle,
QStringList  headings 
)
slot

Creates a new tab in the manager with the title and headings provided.

Parameters
tabTitleTitle of the tab
headingsHeadings of the fields within the view
Returns
The index of the created tab

Definition at line 36 of file milxQtManager.cpp.


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