ALBA
mmaApplicationLayout.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: mmaApplicationLayout
5 Authors: Paolo Quadrani
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __mmaApplicationLayout_H__
18#define __mmaApplicationLayout_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaAttribute.h"
24
25
26//----------------------------------------------------------------------------
27// mmaApplicationLayout:
28//----------------------------------------------------------------------------
30class ALBA_EXPORT mmaApplicationLayout : public albaAttribute
31{
32public:
35
37
38
40 virtual void DeepCopy(const albaAttribute *a);
41
43 virtual bool Equals(const albaAttribute *a);
44
46 void SetApplicationInfo(int maximized, int pos[2], int size[2]);
47
49 void GetApplicationInfo(int &maximized, int pos[2], int size[2]);
50
52 void SetInterfaceElementVisibility(albaString panel_name, int visibility);
53
55 int GetToolBarVisibility() {return m_ToolBarVisibility;};
56
58 int GetLogBarVisibility() {return m_LogBarVisibility;};
59
61 int GetSideBarVisibility() {return m_SideBarVisibility;};
62
64 void SetVMEChooserInfo(int pos[2], int size[2]);
65
67 void GetVMEChooserInfo(int pos[2], int size[2]);
68
69protected:
70 virtual int InternalStore(albaStorageElement *parent);
72
74 int m_AppPosition[2];
75 int m_AppSize[2];
76
80
81 int m_VMEChooserPosition[2];
82 int m_VMEChooserSize[2];
83};
84#endif
An abstract class for objects representing an attribute for albaVMEs.
Definition: albaAttribute.h:34
Abstract class representing the interface for the unit of information stored in the storage.
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
virtual int InternalStore(albaStorageElement *parent)
This is called by Store() and must be reimplemented by subclasses.
int GetSideBarVisibility()
Return the stored visibility for the Sidebar.
virtual ~mmaApplicationLayout()
virtual int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
virtual void DeepCopy(const albaAttribute *a)
Copy the contents of another Meter attribute into this one.
void GetVMEChooserInfo(int pos[2], int size[2])
Retrieve the stored frame settings.
int GetLogBarVisibility()
Return the stored visibility for the Logbar.
void SetInterfaceElementVisibility(albaString panel_name, int visibility)
Set the visibility for the corresponding interface element.
albaTypeMacro(mmaApplicationLayout, albaAttribute)
int GetToolBarVisibility()
Return the stored visibility for the Toolbar.
void SetVMEChooserInfo(int pos[2], int size[2])
Set a informations regarding the VMEChooser dimension, position.
void GetApplicationInfo(int &maximized, int pos[2], int size[2])
Retrieve the stored frame settings.
virtual bool Equals(const albaAttribute *a)
Compare with another Meter attribute.
void SetApplicationInfo(int maximized, int pos[2], int size[2])
Set a informations regarding the application dimension, position and maximize state.