Exemple #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()));

}
Exemple #2
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();
}
Exemple #3
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()));
}
void SmugWindow::slotStopAndCloseProgressBar()
{
    slotCancelClicked();

    writeSettings();
    m_widget->imagesList()->listView()->clear();
    reject();
}
Exemple #5
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()));
}
Exemple #6
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()));
}
Exemple #7
0
bool K3bInteractionDialog::eventFilter( QObject* o, QEvent* ev )
{
  if( dynamic_cast<K3bInteractionDialog*>(o) == this &&
      ev->type() == QEvent::KeyPress ) {

    QKeyEvent* kev = dynamic_cast<QKeyEvent*>(ev);

    switch ( kev->key() ) {
    case Key_Enter:
    case Key_Return:
      // if the process finished this closes the dialog
      if( m_defaultButton == START_BUTTON ) {
	if( m_buttonStart->isEnabled() )
	  slotStartClickedInternal();
      }
      else if( m_defaultButton == CANCEL_BUTTON ) {
	if( m_buttonCancel->isEnabled() )
	  slotCancelClicked();
      }
      else if( m_defaultButton == SAVE_BUTTON ) {
	if( m_buttonSave->isEnabled() )
	  slotSaveClicked();
      }
      return true;

    case Key_Escape:
      // simulate button clicks
      if( m_buttonCancel ) {
	if( m_buttonCancel->isEnabled() )
	  slotCancelClicked();
      }
      return true;
    }
  }

  return KDialog::eventFilter( o, ev );
}
AddDialog::AddDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AddDialog),
    mRoot{nullptr},
    mNewItem{nullptr},
    mParent{nullptr}
{
    ui->setupUi(this);
    setWindowTitle("Add...");

    ui->typeComboBox->addItem("Menu Item", MenuItemType);
    ui->typeComboBox->addItem("Menu", MenuType);

    connect(ui->backPushButton, SIGNAL(clicked(bool)), this, SLOT(slotBackClicked()), Qt::UniqueConnection);
    connect(ui->cancelPushButton_2, SIGNAL(clicked(bool)), this, SLOT(slotCancelClicked()), Qt::UniqueConnection);
    connect(ui->nextPushButton, SIGNAL(clicked(bool)), this, SLOT(slotNextClicked()), Qt::UniqueConnection);
    connect(ui->okPushButton, SIGNAL(clicked(bool)), this, SLOT(slotOkClicked()), Qt::UniqueConnection);
    connect(ui->widget, SIGNAL(itemChanged()), this, SLOT(slotChanged()), Qt::UniqueConnection);
}
Exemple #9
0
void K3bInteractionDialog::initConnections()
{
  if( m_buttonStart ) {
    connect( m_buttonStart, SIGNAL(clicked()),
	     this, SLOT(slotStartClickedInternal()) );
  }
  if( m_buttonSave ) {
//     connect( m_buttonSave, SIGNAL(clicked()),
// 	     this, SLOT(slotSaveLastSettings()) );
    connect( m_buttonSave, SIGNAL(clicked()),
	     this, SLOT(slotSaveClicked()) );
  }
  if( m_buttonCancel )
    connect( m_buttonCancel, SIGNAL(clicked()),
	     this, SLOT(slotCancelClicked()) );

  if( !m_configGroup.isEmpty() ) {
    connect( m_buttonSaveSettings, SIGNAL(clicked()),
	     this, SLOT(slotSaveUserDefaults()) );
  }
}
Exemple #10
0
void NewDevice::closeEvent(QCloseEvent* e)
{
  slotCancelClicked();
}
Exemple #11
0
ios::InputPage::InputPage(QWidget * _parent):
	BaseWidget(_parent),
	data(new InputPageData)
{
	data->layout = new QGridLayout;
	data->layout->setSizeConstraint(QLayout::SetFixedSize);

	data->label = new QLabel("最小值:0   最大值:99999   当前值:0   单位:米");
	data->label->setAlignment(Qt::AlignCenter);

	data->edit = new QLineEdit("0");

	QFont font = data->edit->font();
	font.setPointSize(font.pointSize() + 8);
	data->edit->setFont(font);

	data->edit->setAlignment(Qt::AlignRight);
	data->edit->setReadOnly(true);
	data->edit->setFixedHeight(40);

	for (size_t i = 0; i < 10; i++)
	{
		data->button[i] = new QPushButton(QString::number((i + 1) % 10));
	}
	data->button[10] = new QPushButton(".");
	data->button[11] = new QPushButton("-");
	data->button[12] = new QPushButton("<-");
	data->button[13] = new QPushButton("Clear");
	data->button[14] = new QPushButton("Cancel");
	data->button[15] = new QPushButton("Excute");

	data->layout->addWidget(data->label, 0, 0, 1, 4);
	data->layout->addWidget(data->edit, 1, 0, 1, 4);

	for (size_t i = 0; i < 16; i++)
	{
		data->button[i]->setFixedHeight(40);
		data->button[i]->setFixedWidth(60);
		if (i < 10)
		{
			data->layout->addWidget(data->button[i], i / 3 + 2, i % 3);
			connect(data->button[i], SIGNAL(clicked()), this, SLOT(slotDigitClicked()));
			data->button[i]->setShortcut(QKeySequence(QString::number((i + 1) % 10)));
		}
	}

	data->layout->addWidget(data->button[10], 5, 1);
	data->layout->addWidget(data->button[11], 5, 2);
	data->layout->addWidget(data->button[12], 2, 3);
	data->layout->addWidget(data->button[13], 3, 3);
	data->layout->addWidget(data->button[14], 4, 3);
	data->layout->addWidget(data->button[15], 5, 3);

	connect(data->button[10], SIGNAL(clicked()), this, SLOT(slotPointClicked()));
	connect(data->button[11], SIGNAL(clicked()), this, SLOT(slotMinusClicked()));
	connect(data->button[12], SIGNAL(clicked()), this, SLOT(slotBackClicked()));
	connect(data->button[13], SIGNAL(clicked()), this, SLOT(slotClearClicked()));
	connect(data->button[14], SIGNAL(clicked()), this, SLOT(slotCancelClicked()));
	connect(data->button[15], SIGNAL(clicked()), this, SLOT(slotExcuteClicked()));

	data->button[10]->setShortcut(QKeySequence("."));
	data->button[11]->setShortcut(QKeySequence("-"));
	data->button[12]->setShortcut(QKeySequence("BackSpace"));
	data->button[13]->setShortcut(QKeySequence("Delete"));
	data->button[14]->setShortcut(QKeySequence("Esc"));
	data->button[15]->setShortcut(QKeySequence("Enter"));
	
	setLayout(data->layout);

	setAttribute(Qt::WA_DeleteOnClose, true);
}
Exemple #12
0
QubanWizard::QubanWizard(QWidget* parent)
    : QDialog(parent)
{
	setupUi(this);

	config = Configuration::getConfig();

	prefGeneral = new PrefGeneral(generalFrame);
    generalLayout->addWidget(prefGeneral);
	prefUnpack = new PrefUnpack(unpackFrame);
    unpackLayout2->addWidget(prefUnpack);

	fromCheck->setChecked(config->showFrom);
	detailsCheck->setChecked(config->showDetails);
	dateCheck->setChecked(config->showDate);
	sortCheck->setChecked(config->rememberSort);
	sizeCheck->setChecked(config->rememberWidth);
	compressedCheck->setChecked(config->downloadCompressed);
    groupingSizeSpinBox->setValue(config->groupCheckCount);

    deleteBtn->setChecked(config->deleteFailed);
    keepBtn->setChecked(!config->deleteFailed);
    overwriteBtn->setChecked(config->overwriteExisting);
    renameBtn->setChecked(!config->overwriteExisting);

    if (config->singleViewTab)
    {
            oneTabBtn->setChecked(true);
            askBtn->setEnabled(false);
    }
    else
            multiTabBtn->setChecked(true);

    if (config->dViewed == Configuration::Ask)
    {
            if (!config->singleViewTab)
                    askBtn_2->setChecked(true);
            else
                    keepBtn_2->setChecked(true);
    }
    else if (config->dViewed == Configuration::No)
            keepBtn_2->setChecked(true);
    else
            deleteBtn_2->setChecked(true);

    textFileSuffixes->setText(config->textSuffixes);

    activateBtn->setChecked(config->activateTab);

    statusBtn->setChecked(config->showStatusBar);

	if (config->markOpt == Configuration::Ask)
		askBtn->setChecked(true);
	else if (config->markOpt == Configuration::No)
		nullBtn->setChecked(true);
	else markBtn->setChecked(true);

	if (config->checkDaysValue)
	{
		checkDaysValue->setValue(config->checkDaysValue);
		checkHeadersCheck->setChecked(config->checkDaysValue);
	}

    bulkLoadValue->setValue(config->bulkLoadThreshold);
    bulkDeleteValue->setValue(config->bulkDeleteThreshold);

	connect(okButton, SIGNAL(clicked()), this, SLOT(slotOkClicked()));
	connect(cancelButton, SIGNAL(clicked()), this, SLOT(slotCancelClicked()));
	connect(addServerButton, SIGNAL(clicked()), this, SIGNAL(newServer()));
	connect(getGroupListButton, SIGNAL(clicked()), this, SIGNAL(sigGetGroups()));

	connect(checkHeadersCheck, SIGNAL(toggled(bool)), this, SLOT(slotToggleDay(bool)));
}
Exemple #13
0
void dialogEditIP::programInit(QString name)
{
  JailDir = pcbsd::Utils::getValFromPCConf("/usr/local/etc/warden.conf", "JDIR");
  jailName = name;
  QFile file;
  QString tmp;

  // Is VNET enabled?
  file.setFileName( JailDir + "/." + jailName + ".meta/vnet" );
  if ( file.exists() )
    checkVNET->setChecked(true);

  // Lets start loading IP addresses
  file.setFileName( JailDir + "/." + jailName + ".meta/ipv4" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIP->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv4->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/bridge-ipv4" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIPBridge->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv4Bridge->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/defaultrouter-ipv4" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIPRouter->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv4Router->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/ipv6" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIP6->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv6->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/bridge-ipv6" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIP6Bridge->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv6Bridge->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/defaultrouter-ipv6" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); tmp=""; tmp = stream.readLine();
     lineIP6Router->setText(tmp);
     if ( ! tmp.isEmpty() )
        checkIPv6Router->setChecked(true);
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/alias-ipv4" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); 
     while ( ! file.atEnd() )
       IPv4Alias << stream.readLine();
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/alias-bridge-ipv4" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); 
     while ( ! file.atEnd() )
       IPv4AliasBridge << stream.readLine();
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/alias-ipv6" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); 
     while ( ! file.atEnd() )
       IPv6Alias << stream.readLine();
     file.close();
  }

  file.setFileName( JailDir + "/." + jailName + ".meta/alias-bridge-ipv6" );
  if ( file.exists() && file.open( QIODevice::ReadOnly ) ) {
     QTextStream stream( &file ); 
     while ( ! file.atEnd() )
       IPv6AliasBridge << stream.readLine();
     file.close();
  }

  // Our buttons / slots
  connect( checkVNET, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv4, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv4Bridge, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv4Router, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv6, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv6Bridge, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );
  connect( checkIPv6Router, SIGNAL( clicked() ), this, SLOT( slotCheckChecks() ) );

  connect( comboIPType, SIGNAL( currentIndexChanged(int) ), this, SLOT( slotComboIPChanged() ) );

  connect( pushSave, SIGNAL( clicked() ), this, SLOT( slotSaveClicked() ) );
  connect( pushCancel, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );
  connect( pushAdd, SIGNAL( clicked() ), this, SLOT( slotAddClicked() ) );
  connect( pushRemove, SIGNAL( clicked() ), this, SLOT( slotRemClicked() ) );

  slotCheckChecks();
  slotComboIPChanged();
  loadPerms();
}