File: uicomponent.h

package info (click to toggle)
aethera 0.9.3-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,588 kB
  • ctags: 7,282
  • sloc: cpp: 64,544; sh: 9,913; perl: 1,756; makefile: 1,680; python: 258
file content (43 lines) | stat: -rw-r--r-- 997 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef UICOMPONENT_H
#define UICOMPONENT_H

#include <qstring.h>

/** what needs a UI component for Aethera UI.*/
class UIComponent
{
  public:
    // Constructor and destructor
    UIComponent(unsigned uId, const char* sId, const char* folder, const char* icon=0, const char* toolbar=0);
    ~UIComponent();

    // Public methods
    /** Get the id number.*/
    unsigned idNumber() const;
    /** Get the id name.*/
    QString idName() const;

    // Public attributes
    /** The name of the icon image file.*/
    QString iconName;
    /** The name of root folder.*/
    QString folderName;
    /** The toolbar name.*/
    QString toolbarName;

  private:
    /** Disable the default constructor.*/
    UIComponent();
    /** Disable the default copy constructor.*/
    UIComponent( UIComponent& );

    /** The id number, it will be used like a key into a QMap.*/
    unsigned _IdNumber;
    /** The id string, it will be used like a key into a QDict.*/
    QString _IdName;
};

#endif