MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
MAKLogger::DtPreferencesPageDialog Class Reference

The DtPreferencesPageDialog is a generic dialog that contains a number of DtPages that it displays individually using a Tabbed Widget. More...

+ Inheritance diagram for MAKLogger::DtPreferencesPageDialog:
+ Collaboration diagram for MAKLogger::DtPreferencesPageDialog:

Public Member Functions

 DtPreferencesPageDialog (QWidget *parent=0)
 CTOR.
virtual ~DtPreferencesPageDialog ()
 DTOR.
void setStatus (const QString &status)
virtual void setIconsPerpendicularToTab (bool)
 If layout of tabs is in West or East mode, and, this flag is true, rotate icons to be perpendicular to the tab (90 degrees)
bool iconsPerpendicularToTab () const
- Public Member Functions inherited from MAKLogger::DtPreferencesPageCollection
 DtPreferencesPageCollection ()
 CTOR.
virtual ~DtPreferencesPageCollection ()
 DTOR, this will delete all currently added pages.
void addPage (DtPage *page)
 Add a page to the collection, the collection will assume ownership of the pointer.
void removePage (DtPage *page, bool deletePage=true)
 Remove a page that was previously added.
DtPagefindPage (const std::string &pageClassName)
 Find a page. Returns 0 if the page wasn't added.
const DtPagefindPage (const std::string &pageClassName) const
 Find a page. Returns 0 if the page wasn't added.
const PageMappages () const
 Get the currently available pages.
virtual void removeContainer ()
 Removes the collection from the GUI (does not delete it)
virtual void bringToTop ()
 Brings the panel to the front (when it is tabbed)

Protected Slots

virtual void onCurrentChanged (int index)
virtual void onAccept ()
virtual void onReject ()

Protected Member Functions

virtual void showEvent (QShowEvent *event)
virtual void hideEvent (QHideEvent *event)
virtual void addPageToGui (DtPage *)
 Implementation of adding the page to the GUI.
virtual void removePageFromGui (DtPage *)
 Implementation of removing a page from the GUI.
virtual void selectPageInGui (DtPage *page)
 Implementation of selecting a page in the GUI.
void setupGui ()
 Creates the widgets.
void rotateIcon (int, int deg)
 Gets the icon at the specified position and rotates it by the specified amount and replaces.
virtual void keyPressEvent (QKeyEvent *e)
 Override base implementation to stop Escape & Enter closing the dialog.
- Protected Member Functions inherited from MAKLogger::DtPreferencesPageCollection
virtual void activatePage (DtPage *)
virtual void deactivatePage (DtPage *)
virtual void loadPages ()
virtual void acceptPages ()
virtual void rejectPages ()
virtual void selectPage (const std::string &pageClassName)
 Implements selecting a page by name.

Protected Attributes

QVBoxLayout * myMainLayout
QTabWidget * myTabs
QFrame * myHorizontalLine
QHBoxLayout * myBottomLayout
QLabel * myStatusLabel
QDialogButtonBox * myCloseButton
DtPagemyActivePage
bool myIconsPerpendicularToTab
- Protected Attributes inherited from MAKLogger::DtPreferencesPageCollection
PageMap myPages

Additional Inherited Members

- Public Types inherited from MAKLogger::DtPreferencesPageCollection
typedef std::map< std::string,
DtPage * > 
PageMap

Detailed Description

The DtPreferencesPageDialog is a generic dialog that contains a number of DtPages that it displays individually using a Tabbed Widget.

Constructor & Destructor Documentation

MAKLogger::DtPreferencesPageDialog::DtPreferencesPageDialog ( QWidget parent = 0)

CTOR.

virtual MAKLogger::DtPreferencesPageDialog::~DtPreferencesPageDialog ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtPreferencesPageDialog::addPageToGui ( DtPage )
protectedvirtual

Implementation of adding the page to the GUI.

Implements MAKLogger::DtPreferencesPageCollection.

virtual void MAKLogger::DtPreferencesPageDialog::hideEvent ( QHideEvent *  event)
protectedvirtual
bool MAKLogger::DtPreferencesPageDialog::iconsPerpendicularToTab ( ) const
virtual void MAKLogger::DtPreferencesPageDialog::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Override base implementation to stop Escape & Enter closing the dialog.

virtual void MAKLogger::DtPreferencesPageDialog::onAccept ( )
protectedvirtualslot
virtual void MAKLogger::DtPreferencesPageDialog::onCurrentChanged ( int  index)
protectedvirtualslot
virtual void MAKLogger::DtPreferencesPageDialog::onReject ( )
protectedvirtualslot
virtual void MAKLogger::DtPreferencesPageDialog::removePageFromGui ( DtPage )
protectedvirtual

Implementation of removing a page from the GUI.

Implements MAKLogger::DtPreferencesPageCollection.

void MAKLogger::DtPreferencesPageDialog::rotateIcon ( int  ,
int  deg 
)
protected

Gets the icon at the specified position and rotates it by the specified amount and replaces.

virtual void MAKLogger::DtPreferencesPageDialog::selectPageInGui ( DtPage page)
protectedvirtual

Implementation of selecting a page in the GUI.

Implements MAKLogger::DtPreferencesPageCollection.

virtual void MAKLogger::DtPreferencesPageDialog::setIconsPerpendicularToTab ( bool  )
virtual

If layout of tabs is in West or East mode, and, this flag is true, rotate icons to be perpendicular to the tab (90 degrees)

void MAKLogger::DtPreferencesPageDialog::setStatus ( const QString &  status)
void MAKLogger::DtPreferencesPageDialog::setupGui ( )
protected

Creates the widgets.

virtual void MAKLogger::DtPreferencesPageDialog::showEvent ( QShowEvent *  event)
protectedvirtual

Member Data Documentation

DtPage* MAKLogger::DtPreferencesPageDialog::myActivePage
protected
QHBoxLayout* MAKLogger::DtPreferencesPageDialog::myBottomLayout
protected
QDialogButtonBox* MAKLogger::DtPreferencesPageDialog::myCloseButton
protected
QFrame* MAKLogger::DtPreferencesPageDialog::myHorizontalLine
protected
bool MAKLogger::DtPreferencesPageDialog::myIconsPerpendicularToTab
protected
QVBoxLayout* MAKLogger::DtPreferencesPageDialog::myMainLayout
protected
QLabel* MAKLogger::DtPreferencesPageDialog::myStatusLabel
protected
QTabWidget* MAKLogger::DtPreferencesPageDialog::myTabs
protected

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

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)