GUITab.cpp

Idź do dokumentacji tego pliku.
00001 #include "GUITab.h"
00002 
00003 GUITab::GUITab(QWidget *parent, QHostAddress ip, QString label, bool can_be_closed,
00004                                 QString sm, QString um, QString bc, bool onLine):QWidget(parent)
00005 {
00006         QVBoxLayout *mainLayout = new QVBoxLayout;
00007         mainLayout->setMargin(1);
00008         chat = new GUIChatView(parent,sm,um,bc);
00009         
00010         mainLayout->addWidget(chat);
00011         this->setIp(ip);
00012         this->setLabel(label);
00013         this->setCBC(can_be_closed);
00014         this->setOnline(onLine);
00015         setLayout(mainLayout); 
00016 }
00017 
00018 GUITab::~GUITab()
00019 {
00020         delete chat;
00021 }
00022 
00023 void GUITab::setIp(QHostAddress s_ip)
00024 {
00025          this->ip = s_ip;
00026 }
00027 
00028 
00029 QHostAddress GUITab::getIp()
00030 {
00031      return this->ip;
00032 }
00033 
00034 void GUITab::setLabel(QString s_label)
00035 {
00036          this->label = s_label;
00037 }
00038 
00039 QString GUITab::getLabel()
00040 {
00041          return this->label;
00042 }
00043 
00044 void GUITab::setCBC(bool state)
00045 {
00046          this->can_be_closed = state;
00047 }
00048 
00049 bool GUITab::getCBC()
00050 {
00051          return this->can_be_closed;
00052 }
00053 
00054 void GUITab::setOnline(bool onLine)
00055 {
00056          this->online = onLine;
00057 }
00058 
00059 bool GUITab::getOnline()
00060 {
00061          return this->online;
00062 }
00063 
00064 void GUITab::show()
00065 {
00066          chat->show();
00067 }

Wygenerowano Sun Jun 11 12:55:08 2006 dla lanChat programem  doxygen 1.4.6