currentKeyset);
}
+ selectKeysetForm->selectKeyset(currentKeyset);
+
// Add the corner buttons:
insertCornerButtons();
enableButtons();
- QListWidget *fkw = favoritesDialog->getFavoritesListWidget();
-
- connect(
- fkw,
- SIGNAL(itemActivated(QListWidgetItem *)),
- this,
- SLOT(keysetSelectionChanged(QListWidgetItem *)),
- Qt::QueuedConnection);
-
// Make sure the three selection lists don't show different selections:
QListWidget *klw = selectKeysetForm->getKeysetListWidget();
QListWidget *dlw = selectDeviceForm->getDeviceListWidget();
- // favorites -> keyset name
- connect(
- fkw,
- SIGNAL(itemActivated(QListWidgetItem *)),
- klw,
- SLOT(clearSelection()),
- Qt::QueuedConnection);
-
- // favorites -> device name
- connect(
- fkw,
- SIGNAL(itemActivated(QListWidgetItem *)),
- dlw,
- SLOT(clearSelection()),
- Qt::QueuedConnection);
-
- // keyset name -> favorites
- connect(
- klw,
- SIGNAL(itemActivated(QListWidgetItem *)),
- fkw,
- SLOT(clearSelection()),
- Qt::QueuedConnection);
-
- // device name -> favorites
- connect(
- dlw,
- SIGNAL(itemActivated(QListWidgetItem *)),
- fkw,
- SLOT(clearSelection()),
- Qt::QueuedConnection);
-
// keyset name -> device name
connect(
klw,
*/
-void MainWindow::startRepeating(
+bool MainWindow::startRepeating(
PIRKeyName name)
{
QMutexLocker locker(&commandIFMutex);
{
commandInFlight = true;
emit buttonPressed(currentKeyset, name);
+ return true;
+ }
+ else
+ {
+ return false;
}
}
-void MainWindow::startRepeating(
+bool MainWindow::startRepeating(
PIRKeyName name,
unsigned int keysetID)
{
{
commandInFlight = true;
emit buttonPressed(keysetID, name);
+ return true;
+ }
+ else
+ {
+ return false;
}
}
{
return selectKeysetForm->selectPrevKeyset();
}
+
+
+bool MainWindow::selectFirstKeyset()
+{
+ return selectKeysetForm->selectFirstKeyset();
+}
+
+
+void MainWindow::openCurrentKeysetDialog()
+{
+ selectKeysetForm->openCurrentKeysetDialog();
+}
+
+
+void MainWindow::updateKeysetSelection(
+ unsigned int targetID)
+{
+ selectKeysetForm->selectKeyset(targetID);
+}