Пример #1
0
void AssignSliderHotKey::initView()
{
  QString str = QString::null;
  str += QString("<HTML><HEAD><TITLE>Assign Slider Keys</TITLE></HEAD><BODY>");
  str += QString("<CENTER><H1>Assign Slider Keys</H1>");
  str += QString("Move the Mouse Cursor over the field, for the orientation you want to assign. ");
  str += QString("Hit the key-combination that you want to assign. ");
  str += QString("You may hit either a single key or a key-combination");
  str += QString("with a CTRL, ALT, and/or SHIFT.</CENTER>");
  str += QString("</BODY></HTML>");
  m_infoText->setText(str);
  m_infoText->setFocusPolicy(NoFocus);

  m_previewUpEdit->setReadOnly(true);
  m_previewUpEdit->setFocusPolicy(NoFocus);
  m_previewUpEdit->setAlignment(AlignCenter);

  m_previewDownEdit->setReadOnly(true);
  m_previewDownEdit->setFocusPolicy(NoFocus);
  m_previewDownEdit->setAlignment(AlignCenter);

  connect((QObject*) m_ok, SIGNAL(clicked()),
	  this, SLOT(slotOKClicked()));
  connect((QObject*) m_cancel, SIGNAL(clicked()),
	  this, SLOT(slotCancelClicked()));

}
Пример #2
0
void AboutBox::initDialog()
{
  setCaption("About QLC");
  resize(200, 200);
  setMinimumSize(200, 200);
  setMaximumSize(200, 200);

  m_qlc = new QLabel(this);
  m_qlc->setGeometry(10, 10, 180, 20);
  m_qlc->setAlignment(AlignCenter);
  m_qlc->setText("Q Light Controller 2.0.10");
  
  m_copyright = new QLabel(this);
  m_copyright->setGeometry(10, 30, 180, 20);
  m_copyright->setAlignment(AlignCenter);
  m_copyright->setText("(c) 2002 Heikki junnila");
      
  m_email = new QLabel(this);
  m_email->setGeometry(10, 50, 180, 20);
  m_email->setAlignment(AlignCenter);
  m_email->setText("*****@*****.**");

  m_ok = new QPushButton(this);
  m_ok->setGeometry(50, 160, 100, 30);
  m_ok->setMinimumSize(100, 30);
  m_ok->setDefault(false);
  m_ok->setText("&OK");
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));
}
Пример #3
0
void CreateSmileyWindow::init( )
{
	if(!m_FileName.isEmpty()){
		TQString file = m_FileName.right( m_FileName.length() - m_FileName.findRev("/") - 1);
		lblSelect->setText(file);
		btnSelect->setEnabled(false);

		leShortcut->setText(file.left(6));
		
		leTip->setText(file.left( file.findRev(".") ) );
	}

	TQString dir = EvaMain::user->getSetting()->getCustomSmileyDir() + "/";
	m_Config = new CustomFaceConfig(dir);

	if(m_Config->loadXML()){
		TQStringList groups = m_Config->groupNames();
		cbbGroup->insertStringList(m_Config->groupNames());
	}
	cbbGroup->setCurrentItem(m_DefaultGroup);

	connect(btnOK, SIGNAL(clicked()), this, SLOT(slotOKClicked() ));
	connect(btnCancel, SIGNAL(clicked()), this, SLOT(close()));

	connect(btnSelect, SIGNAL(clicked()), this, SLOT(slotSelectImagesClicked() ));
}
Пример #4
0
void ChaserEditor::init()
{
  setCaption("Chaser Editor");
  resize(520, 300);
  setFixedSize(520, 300);

  m_nameLabel = new QLabel(this);
  m_nameLabel->setGeometry(10, 10, 130, 30);
  m_nameLabel->setText("Chaser Name");

  m_nameEdit = new QLineEdit(this);
  m_nameEdit->setGeometry(130, 10, 230, 30);
  m_nameEdit->setText(m_function->name());
  m_nameEdit->setFocus();
  m_nameEdit->setSelection(0, m_function->name().length());

  m_functionList = new QListView(this);
  m_functionList->setGeometry(10, 50, 350, 230);
  m_functionList->setSorting(-1);
  m_functionList->addColumn("#");
  m_functionList->addColumn("Device");
  m_functionList->addColumn("Function");
  m_functionList->setAllColumnsShowFocus(true);
  m_functionList->setResizeMode(QListView::LastColumn);

  m_raiseButton = new QToolButton(UpArrow, this);
  m_raiseButton->setGeometry(360, 50, 20, 115);
  connect(m_raiseButton, SIGNAL(clicked()), this, SLOT(slotRaiseClicked()));

  m_lowerButton = new QToolButton(DownArrow, this);
  m_lowerButton->setGeometry(360, 165, 20, 115);
  connect(m_lowerButton, SIGNAL(clicked()), this, SLOT(slotLowerClicked()));
  
  m_addButton = new QPushButton(this);
  m_addButton->setText("&Add Step");
  m_addButton->setGeometry(390, 50, 120, 30);
  connect(m_addButton, SIGNAL(clicked()), this, SLOT(slotAddClicked()));

  m_removeButton = new QPushButton(this);
  m_removeButton->setText("&Remove step");
  m_removeButton->setGeometry(390, 90, 120, 30);
  connect(m_removeButton, SIGNAL(clicked()), this, SLOT(slotRemoveClicked()));

  m_editButton = new QPushButton(this);
  m_editButton->setText("&Edit step");
  m_editButton->setGeometry(390, 130, 120, 30);
  connect(m_editButton, SIGNAL(clicked()), this, SLOT(slotEditClicked()));

  m_ok = new QPushButton(this);
  m_ok->setText("&OK");
  m_ok->setGeometry(390, 220, 120, 30);
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));

  m_cancel = new QPushButton(this);
  m_cancel->setText("&Cancel");
  m_cancel->setGeometry(390, 260, 120, 30);
  connect(m_cancel, SIGNAL(clicked()), this, SLOT(slotCancelClicked()));

  addItems();
}
Пример #5
0
void AddFixture::slotTreeDoubleClicked(QListViewItem* item)
{
	slotSelectionChanged(item);

	if (item != NULL && item->parent() != NULL)
		slotOKClicked();
}
Пример #6
0
void AboutBox::initDialog()
{
  QColor white(255, 255, 255);
  int w = 350;
  int h = 123;

  setCaption("About Q Light Controller");

  m_pm = new QPixmap(_app->settings()->pixmapPath() + "qlc-big.xpm");
  m_logo = new QLabel(this);

  if (m_pm->isNull() == false)
    {
      m_logo->setGeometry(50, 0, 254, h);
      m_logo->setPixmap(*m_pm);
    }
  else
    {
      m_logo->setGeometry(0, 0, w, h);
      m_logo->setBackgroundColor(QColor(255, 255, 255));
      m_logo->setAlignment(AlignCenter);
      m_logo->setText("Incorrect pixmap path!");
    }

  setFixedSize(w, h + 220);
  setBackgroundColor(white);

  m_version = new QLabel(this);
  m_version->setGeometry(0, h, w, 20);
  m_version->setAlignment(AlignCenter);
  m_version->setText(IDS_APP_VERSION_STR);
  m_version->setBackgroundColor(white);
  
  m_copyright = new QLabel(this);
  m_copyright->setGeometry(0, h + 30, w, 50);
  m_copyright->setAlignment(AlignCenter);
  m_copyright->setTextFormat(RichText);
  m_copyright->setText("QLC is licensed under the GNU GPL and is<BR>copyrighted &copy; by<BR><B>the people involved in QLC development:</B>");
  m_copyright->setBackgroundColor(white);

  m_people = new QListBox(this);
  m_people->setGeometry(5, h + 90, w - 10, 80);
  m_people->setFocusPolicy(QWidget::NoFocus);
  m_people->setSelectionMode(QListBox::NoSelection);
  m_people->setFrameStyle(QFrame::Panel);
  m_people->setScrollBar(true);
  m_people->insertItem("Heikki Junnila <*****@*****.**>    (Author)");
  m_people->insertItem("Stefan Krumm <*****@*****.**>");
  m_people->insertItem("Dirk Jagdmann <*****@*****.**>");
  m_people->setBackgroundColor(white);

  m_ok = new QPushButton(this);
  m_ok->setGeometry(133, h + 180, 100, 30);
  m_ok->setMinimumSize(100, 30);
  m_ok->setDefault(false);
  m_ok->setText("&OK");
  m_ok->setBackgroundColor(white);
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));
}
Пример #7
0
void NewDevice::initView()
{
  QString config;

  setFixedSize(400, 270);
  setCaption("Add New Output Device");

  m_tree = new QListView(this);
  m_tree->setGeometry(10, 10, 220, 230);
  m_tree->addColumn("Device Classes");
  m_tree->setColumnWidth(0, 215);
  m_tree->setRootIsDecorated(true);
  connect(m_tree, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectionChanged(QListViewItem*)));
  connect(m_tree, SIGNAL(doubleClicked(QListViewItem*)), this, SLOT(slotTreeDoubleClicked(QListViewItem*)));
  fillTree();

  m_treeOpenCheckBox = new QCheckBox(this);
  m_treeOpenCheckBox->setGeometry(10, 240, 230, 20);
  m_treeOpenCheckBox->setText("Open all list items by default");
  _app->settings()->get(KEY_NEWDEVICE_TREE_OPEN, config);
  m_treeOpenCheckBox->setChecked( (config == Settings::trueValue()) ? true : false );
  connect(m_treeOpenCheckBox, SIGNAL(clicked()), this, SLOT(slotTreeOpenCheckBoxClicked()));

  m_nameLabel = new QLabel(this);
  m_nameLabel->setGeometry(240, 10, 150, 20);
  m_nameLabel->setText("Name");

  m_nameEdit = new QLineEdit(this);
  m_nameEdit->setGeometry(240, 30, 150, 20);
  connect(m_nameEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotNameChanged(const QString &)));

  m_typeLabel = new QLabel(this);
  m_typeLabel->setGeometry(240, 55, 150, 20);
  m_typeLabel->setText("Type: ");

  m_addressLabel = new QLabel(this);
  m_addressLabel->setGeometry(240, 80, 150, 20);
  m_addressLabel->setText("Address");

  m_addressSpin = new QSpinBox(this);
  m_addressSpin->setGeometry(240, 100, 100, 20);
  m_addressSpin->setRange(0, 511);
  m_addressSpin->setValue(0);

  m_dipButton = new QPushButton(this);
  m_dipButton->setGeometry(340, 100, 50, 20);
  m_dipButton->setText("DIP");
  connect(m_dipButton, SIGNAL(clicked()), this, SLOT(slotDIPClicked()));

  m_ok = new QPushButton(this);
  m_ok->setGeometry(240, 190, 150, 30);
  m_ok->setText("&OK");
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));

  m_cancel = new QPushButton(this);
  m_cancel->setGeometry(240, 230, 150, 30);
  m_cancel->setText("&Cancel");
  connect(m_cancel, SIGNAL(clicked()), this, SLOT(slotCancelClicked()));
}
Пример #8
0
CustomSmileyManager::CustomSmileyManager()
	: m_Config(0), m_IsChanged(false), m_MoveToMenu(0)
{
	init();

	connect(btnOK, SIGNAL(clicked()), this, SLOT(slotOKClicked() ));
	connect(btnCancel, SIGNAL(clicked()), this, SLOT(close()));
}
Пример #9
0
void NewDevice::initView()
{
  setFixedSize(400, 270);
  setCaption("Add New Output Device");

  m_tree = new QListView(this);
  m_tree->setGeometry(10, 10, 220, 230);
  m_tree->addColumn("Device Classes");
  m_tree->setColumnWidth(0, 215);
  m_tree->setRootIsDecorated(true);
  connect(m_tree, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectionChanged(QListViewItem*)));
  connect(m_tree, SIGNAL(doubleClicked(QListViewItem*)), this, SLOT(slotTreeDoubleClicked(QListViewItem*)));
  fillTree();

  m_treeOpenCheckBox = new QCheckBox(this);
  m_treeOpenCheckBox->setGeometry(10, 240, 230, 20);
  m_treeOpenCheckBox->setText("Open all list items by default");
  m_treeOpenCheckBox->setChecked(_app->settings()->newDeviceTreeOpen());
  connect(m_treeOpenCheckBox, SIGNAL(clicked()), this, SLOT(slotTreeOpenCheckBoxClicked()));

  m_nameLabel = new QLabel(this);
  m_nameLabel->setGeometry(240, 10, 150, 20);
  m_nameLabel->setText("Name");

  m_nameEdit = new QLineEdit(this);
  m_nameEdit->setGeometry(240, 30, 150, 20);
  connect(m_nameEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotNameChanged(const QString &)));

  m_typeLabel = new QLabel(this);
  m_typeLabel->setGeometry(240, 55, 150, 20);
  m_typeLabel->setText("Type: ");

  m_addressLabel = new QLabel(this);
  m_addressLabel->setGeometry(240, 80, 150, 20);
  m_addressLabel->setText("Address");

  m_addressSpin = new QSpinBox(this);
  m_addressSpin->setGeometry(240, 100, 150, 20);
  m_addressSpin->setRange(0, 511);
  m_addressSpin->setValue(0);

  m_autoAddress = new QCheckBox(this);
  m_autoAddress->setGeometry(240, 130, 150, 30);
  m_autoAddress->setText("Automatic address");
  m_autoAddress->setChecked(_app->settings()->autoAddressAssign());
  slotAutoAddressClicked();
  connect(m_autoAddress, SIGNAL(clicked()), this, SLOT(slotAutoAddressClicked()));

  m_ok = new QPushButton(this);
  m_ok->setGeometry(240, 190, 150, 30);
  m_ok->setText("&OK");
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));

  m_cancel = new QPushButton(this);
  m_cancel->setGeometry(240, 230, 150, 30);
  m_cancel->setText("&Cancel");
  connect(m_cancel, SIGNAL(clicked()), this, SLOT(slotCancelClicked()));
}
Пример #10
0
void NewDevice::init()
{
  resize(340, 250);
  setFixedSize(340, 250);
  setCaption("Add New Device");

  m_qlabel1 = new QLabel(this);
  m_qlabel1->setGeometry(10, 10, 130, 30);
  m_qlabel1->setText("Manufacturer");

  m_manufacturer = new QComboBox(this);
  m_manufacturer->setGeometry(130, 10, 200, 30);
  connect(m_manufacturer, SIGNAL(activated(int)), this, SLOT(slotManufacturerActivated(int)));

  m_qlabel2 = new QLabel(this);
  m_qlabel2->setGeometry(10, 50, 130, 30);
  m_qlabel2->setText("Model");

  m_model = new QComboBox(this);
  m_model->setGeometry(130, 50, 200, 30);
  connect(m_model, SIGNAL(activated(int)), this, SLOT(slotModelActivated(int)));

  m_qlabel3 = new QLabel(this);
  m_qlabel3->setGeometry(10, 90, 130, 30);
  m_qlabel3->setText("Name");

  m_name = new QLineEdit(this);
  m_name->setGeometry(130, 90, 200, 30);
  connect(m_name, SIGNAL(textChanged(const QString &)), this, SLOT(slotNameChanged(const QString &)));

  m_qlabel4 = new QLabel(this);
  m_qlabel4->setGeometry(10, 130, 130, 30);
  m_qlabel4->setText("Address");

  m_address = new QSpinBox(this);
  m_address->setGeometry(130, 130, 200, 30);
  m_address->setRange(1, 512);
  m_address->setValue(1);

  m_autoAddress = new QCheckBox(this);
  m_autoAddress->setGeometry(130, 170, 200, 30);
  m_autoAddress->setText("Automatic address");
  m_autoAddress->setChecked(_app->settings()->getAutoAddressAssign());
  slotAutoAddressClicked();
  connect(m_autoAddress, SIGNAL(clicked()), this, SLOT(slotAutoAddressClicked()));

  showManufacturers();

  m_ok = new QPushButton(this);
  m_ok->setGeometry(130, 210, 100, 30);
  m_ok->setText("&OK");
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));

  m_cancel = new QPushButton(this);
  m_cancel->setGeometry(230, 210, 100, 30);
  m_cancel->setText("&Cancel");
  connect(m_cancel, SIGNAL(clicked()), this, SLOT(slotCancelClicked()));
}
Пример #11
0
void AccDialog::CreateButtonBox()
{
    iButtonBox = new QDialogButtonBox(this);
    iOk = new QPushButton(tr("OK"), this);
    connect(iOk, SIGNAL(clicked()),
            this, SLOT(slotOKClicked()));
    iButtonBox->addButton(iOk, QDialogButtonBox::ActionRole);
    
    iCancel = new QPushButton(tr("Cancel"), this);
    connect(iCancel, SIGNAL(clicked()),
            this, SLOT(close()));
    iButtonBox->addButton(iCancel, QDialogButtonBox::ActionRole);
    
    iLayout->addWidget(iButtonBox, 6, 0, 1, 2);
}
Пример #12
0
void NewDevice::slotTreeDoubleClicked(QListViewItem* item)
{
  slotSelectionChanged(item);

  slotOKClicked();
}
Пример #13
0
void AboutBox::initDialog()
{
	QColor white(255, 255, 255);
	int w = 350;
	int h = 123;

	setCaption(QString("About ") + KApplicationNameLong);

	m_pm = new QPixmap(QString(PIXMAPS) + QString("/qlc-big.png"));
	m_logo = new QLabel(this);

	if (m_pm->isNull() == false)
	{
		m_logo->setGeometry(50, 0, 254, h);
		m_logo->setPixmap(*m_pm);
	}
	else
	{
		m_logo->setGeometry(0, 0, w, h);
		m_logo->setBackgroundColor(QColor(255, 255, 255));
		m_logo->setAlignment(AlignCenter);
		m_logo->setText("Incorrect pixmap path!");
	}

	setFixedSize(w, h + 220);
	setBackgroundColor(white);

	QFont font;
	font.setPixelSize(12);

	m_version = new QLabel(this);
	m_version->setFont(font);
	m_version->setGeometry(0, h, w, 20);
	m_version->setAlignment(AlignCenter);
	m_version->setText(KApplicationVersion);
	m_version->setBackgroundColor(white);

	m_copyright = new QLabel(this);
	m_copyright->setFont(font);
	m_copyright->setGeometry(0, h + 30, w, 50);
	m_copyright->setAlignment(AlignCenter);
	m_copyright->setTextFormat(RichText);
	m_copyright->setText("QLC is licensed under the GNU GPL<BR>" \
			     "and contains &copy; material created by<BR>" \
			     "<B>the people involved in QLC development:</B>");
	m_copyright->setBackgroundColor(white);

	m_people = new QListBox(this);
	m_people->setFont(font);
	m_people->setGeometry(5, h + 90, w - 10, 80);
	m_people->setFocusPolicy(QWidget::NoFocus);
	m_people->setFrameStyle(QFrame::Panel);
	m_people->setScrollBar(true);
	m_people->insertItem("Heikki Junnila <*****@*****.**>");
	m_people->insertItem("Stefan Krumm <*****@*****.**>");
	m_people->insertItem("Christian Sühs <*****@*****.**>");
	m_people->insertItem("Christopher Staite <*****@*****.**>");
	m_people->setBackgroundColor(white);

	m_ok = new QPushButton(this);
	m_ok->setGeometry(133, h + 180, 100, 30);
	m_ok->setMinimumSize(100, 30);
	m_ok->setDefault(false);
	m_ok->setText("&OK");
	m_ok->setBackgroundColor(white);
	connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));
}
Пример #14
0
void AboutBox::initDialog()
{
  QColor white(255, 255, 255);
  int w = 350;
  int h = 123;

  setCaption(QString("About ") + KApplicationNameLong);

  m_pm = new QPixmap(QString(PIXMAPS) + QString("/qlc-big.xpm"));
  m_logo = new QLabel(this);

  if (m_pm->isNull() == false)
    {
      m_logo->setGeometry(50, 0, 254, h);
      m_logo->setPixmap(*m_pm);
    }
  else
    {
      m_logo->setGeometry(0, 0, w, h);
      m_logo->setBackgroundColor(QColor(255, 255, 255));
      m_logo->setAlignment(AlignCenter);
      m_logo->setText("Incorrect pixmap path!");
    }

  setFixedSize(w, h + 220);
  setBackgroundColor(white);

  QFont font;
  font.setPixelSize(12);

  m_version = new QLabel(this);
  m_version->setFont(font);
  m_version->setGeometry(0, h, w, 20);
  m_version->setAlignment(AlignCenter);
  m_version->setText(KApplicationNameLong + " " + KApplicationVersion);
  m_version->setBackgroundColor(white);
  
  m_copyright = new QLabel(this);
  m_copyright->setFont(font);
  m_copyright->setGeometry(0, h + 30, w, 50);
  m_copyright->setAlignment(AlignCenter);
  m_copyright->setTextFormat(RichText);
  m_copyright->setText("QLC is licensed under the GNU GPL and is<BR>copyrighted &copy; by<BR><B>the people involved in QLC development:</B>");
  m_copyright->setBackgroundColor(white);

  m_people = new QListBox(this);
  m_people->setFont(font);
  m_people->setGeometry(5, h + 90, w - 10, 80);
  m_people->setFocusPolicy(QWidget::NoFocus);
  m_people->setSelectionMode(QListBox::NoSelection);
  m_people->setFrameStyle(QFrame::Panel);
  m_people->setScrollBar(true);
  m_people->insertItem("Heikki Junnila <*****@*****.**>");
  m_people->insertItem("Stefan Krumm <*****@*****.**>");
  m_people->setBackgroundColor(white);

  m_ok = new QPushButton(this);
  m_ok->setGeometry(133, h + 180, 100, 30);
  m_ok->setMinimumSize(100, 30);
  m_ok->setDefault(false);
  m_ok->setText("&OK");
  m_ok->setBackgroundColor(white);
  connect(m_ok, SIGNAL(clicked()), this, SLOT(slotOKClicked()));
}
Пример #15
0
RmSmileyGroupDialog::RmSmileyGroupDialog(  int indexOfRm, CustomFaceConfig *config, TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl ), m_IndexOfRm(indexOfRm), m_Config(config)
{
	if ( !name )
		setName( "RmSmileyGroupUI" );
	RmSmileyGroupUILayout = new TQGridLayout( this, 1, 1, 16, 7, "RmSmileyGroupUILayout"); 
	
	layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
	spacer3 = new TQSpacerItem( 81, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
	layout3->addItem( spacer3 );
	
	btnOK = new TQPushButton( this, "btnOK" );
	layout3->addWidget( btnOK );
	
	btnCancel = new TQPushButton( this, "btnCancel" );
	layout3->addWidget( btnCancel );
	
	RmSmileyGroupUILayout->addLayout( layout3, 1, 0 );
	
	layout7 = new TQVBoxLayout( 0, 6, 15, "layout7"); 
	
	rbtnRmAll = new TQRadioButton( this, "rbtnRmAll" );
	layout7->addWidget( rbtnRmAll );
	
	layout6 = new TQVBoxLayout( 0, 0, 6, "layout6"); 
	
	rbtnRmMv = new TQRadioButton( this, "rbtnRmMv" );
	layout6->addWidget( rbtnRmMv );
	
	layout4 = new TQHBoxLayout( 0, 0, 6, "layout4"); 
	spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
	layout4->addItem( spacer4 );
	
	lblGroupTip = new TQLabel( this, "lblGroupTip" );
	layout4->addWidget( lblGroupTip );
	
	cbbGroups = new TQComboBox( FALSE, this, "cbbGroups" );
	layout4->addWidget( cbbGroups );
	layout6->addLayout( layout4 );
	layout7->addLayout( layout6 );
	
	RmSmileyGroupUILayout->addLayout( layout7, 0, 0 );
	languageChange();
	resize( TQSize(309, 171).expandedTo(minimumSizeHint()) );
	clearWState( WState_Polished );

	// make remove all smileys in this group as the default
	rbtnRmAll->setChecked( true);
	rbtnRmMv->setChecked( false );

	// setup combo box
	TQString dir = EvaMain::user->getSetting()->getCustomSmileyDir() + "/";
	m_Config = new CustomFaceConfig(dir);

	if(m_Config->loadXML()){
		TQStringList groups = m_Config->groupNames();
		for( int i=0; i < (int)(groups.count()); i++){
			if(i != m_IndexOfRm )  // ignore the group we are operating on
				cbbGroups->insertItem(groups[i]);
		}
	}
	cbbGroups->setCurrentItem(0);
	m_Result = -2;
	
	connect(rbtnRmAll, SIGNAL(clicked()), this, SLOT(slotRmAllClicked()));
	connect(rbtnRmMv, SIGNAL(clicked()), this, SLOT(slotRmMvClicked()));

	connect(btnOK, SIGNAL(clicked()), this, SLOT(slotOKClicked() ));
	connect(btnCancel, SIGNAL(clicked()), this, SLOT(close()));
}