File: uicomponent.cpp

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 (40 lines) | stat: -rw-r--r-- 544 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
#include <uicomponent.h>

UIComponent::UIComponent(unsigned uId, const char* sId, const char* folder, const char* icon, const char* toolbar)
{
  _IdNumber=uId;
  _IdName=sId;

  if( !folder )
    folderName="/Magellan";
  else
    folderName=folder;

  if(icon)
    iconName=icon;
  else
    iconName=_IdName;

  if(toolbar)
    toolbarName=toolbar;
  else
    toolbarName=_IdName;
}

UIComponent::~UIComponent()
{
}

unsigned UIComponent::idNumber() const
{
  return _IdNumber;
}

QString UIComponent::idName() const
{
  return _IdName;
}