Menu_RouteListClose::Menu_RouteListClose(QWidget *parent) : NaviBaseWnd(parent) { ui.setupUi(this); connect(ui.btn_back,SIGNAL(clicked()),this,SLOT(slotback()),Qt::QueuedConnection); connect(ui.btn_map,SIGNAL(clicked()),this,SLOT(mapSlot()),Qt::QueuedConnection); connect(ui.lst_route,SIGNAL(itemClicked(QListWidgetItem*)),this,SLOT(itemSelectSlot(QListWidgetItem*)), Qt::QueuedConnection); updatelist(); }
Menu_SetSound::Menu_SetSound(QWidget *parent) : NaviBaseWnd(parent) { ui.setupUi(this); connect(ui.btn_back,SIGNAL(clicked()),this,SLOT(backSlot()),Qt::QueuedConnection); connect(ui.btn_map,SIGNAL(clicked()),this,SLOT(mapSlot()),Qt::QueuedConnection); connect(ui.btn_timesadd,SIGNAL(clicked()),this,SLOT(addbroadcastFrequencySlot()),Qt::QueuedConnection); connect(ui.btn_timesdec,SIGNAL(clicked()),this,SLOT(decbroadcastFrequencySlot()),Qt::QueuedConnection); connect(ui.btn_addvolumn,SIGNAL(clicked()),this,SLOT(addbroadcastVolumeSlot()),Qt::QueuedConnection); connect(ui.btn_decvolumn,SIGNAL(clicked()),this,SLOT(downbroadcastVolumeSlot()),Qt::QueuedConnection); }
Menu_Search::Menu_Search(QWidget *parent) : NaviBaseWnd(parent) { ui.setupUi(this); ui.pic_title->setText(UI_SEARCH_MENU); connect(ui.btn_back,SIGNAL(clicked()),this,SLOT(backSlot()),Qt::QueuedConnection); connect(ui.btn_map,SIGNAL(clicked()),this,SLOT(mapSlot()),Qt::QueuedConnection); connect(ui.btn_keyword,SIGNAL(clicked()),this,SLOT(keywordSlot()),Qt::QueuedConnection); connect(ui.btn_around,SIGNAL(clicked()),this,SLOT(searcharoundSlot()),Qt::QueuedConnection); connect(ui.btn_cross,SIGNAL(clicked()),this,SLOT(searchcrossSlot()),Qt::QueuedConnection); connect(ui.btn_category,SIGNAL(clicked()),this,SLOT(searchcategorySlot()),Qt::QueuedConnection); }
Menu_RouteHeadClose::Menu_RouteHeadClose(QWidget *parent) : NaviBaseWnd(parent) { ui.setupUi(this); connect(ui.btn_back,SIGNAL(clicked()),this,SLOT(slotback()),Qt::QueuedConnection); connect(ui.btn_map,SIGNAL(clicked()),this,SLOT(mapSlot()),Qt::QueuedConnection); connect(ui.btn_1km,SIGNAL(clicked()),this,SLOT(close1km()),Qt::QueuedConnection); // connect(ui.btn_2km,SIGNAL(clicked()),this,SLOT(close2km()),Qt::QueuedConnection); connect(ui.btn_5km,SIGNAL(clicked()),this,SLOT(close5km()),Qt::QueuedConnection); connect(ui.btn_10km,SIGNAL(clicked()),this,SLOT(close10km()),Qt::QueuedConnection); connect(ui.btn_15km,SIGNAL(clicked()),this,SLOT(close20km()),Qt::QueuedConnection); connect(ui.btn_20km,SIGNAL(clicked()),this,SLOT(close20km()),Qt::QueuedConnection); connect(ui.btn_25km,SIGNAL(clicked()),this,SLOT(close20km()),Qt::QueuedConnection); connect(ui.btn_30km,SIGNAL(clicked()),this,SLOT(close20km()),Qt::QueuedConnection); connect(ui.btn_35km,SIGNAL(clicked()),this,SLOT(close20km()),Qt::QueuedConnection); connect(ui.btn_40km,SIGNAL(clicked()),this,SLOT(close50km()),Qt::QueuedConnection); connect(ui.btn_45km,SIGNAL(clicked()),this,SLOT(close50km()),Qt::QueuedConnection); // connect(ui.btn_50km,SIGNAL(clicked()),this,SLOT(close50km()),Qt::QueuedConnection); }
// Constructor. qtractorMidiControlForm::qtractorMidiControlForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // Window modality (let plugin/tool windows rave around). QDialog::setWindowModality(Qt::WindowModal); m_iDirtyCount = 0; m_iDirtyMap = 0; m_iUpdating = 0; QHeaderView *pHeader = m_ui.FilesListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); #if QT_VERSION >= 0x050000 // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionResizeMode(QHeaderView::ResizeToContents); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setResizeMode(QHeaderView::ResizeToContents); pHeader->setMovable(false); #endif pHeader = m_ui.ControlMapListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); #if QT_VERSION >= 0x050000 // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionResizeMode(QHeaderView::ResizeToContents); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setResizeMode(QHeaderView::ResizeToContents); pHeader->setMovable(false); #endif m_pControlTypeGroup = new qtractorMidiControlTypeGroup(NULL, m_ui.ControlTypeComboBox, m_ui.ParamComboBox, m_ui.ParamTextLabel); m_ui.ControlTypeComboBox->setCurrentIndex(3); // Controller (default). // m_ui.ChannelComboBox->clear(); m_ui.ChannelComboBox->addItem("*"); for (unsigned short iChannel = 0; iChannel < 16; ++iChannel) m_ui.ChannelComboBox->addItem(textFromChannel(iChannel)); const QIcon iconCommand(":/images/itemChannel.png"); // m_ui.CommandComboBox->clear(); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_GAIN)); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_PANNING)); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_MONITOR)); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_RECORD)); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_MUTE)); m_ui.CommandComboBox->addItem(iconCommand, qtractorMidiControl::nameFromCommand(qtractorMidiControl::TRACK_SOLO)); m_ui.SyncCheckBox->setChecked(qtractorMidiControl::isSync()); stabilizeTypeChange(); refreshFiles(); adjustSize(); // UI signal/slot connections... QObject::connect(m_ui.FilesListView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(stabilizeForm())); QObject::connect(m_ui.ControlMapListView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(stabilizeForm())); QObject::connect(m_ui.ImportPushButton, SIGNAL(clicked()), SLOT(importSlot())); QObject::connect(m_ui.RemovePushButton, SIGNAL(clicked()), SLOT(removeSlot())); QObject::connect(m_ui.MoveUpPushButton, SIGNAL(clicked()), SLOT(moveUpSlot())); QObject::connect(m_ui.MoveDownPushButton, SIGNAL(clicked()), SLOT(moveDownSlot())); QObject::connect(m_pControlTypeGroup, SIGNAL(controlTypeChanged(int)), SLOT(typeChangedSlot())); QObject::connect(m_pControlTypeGroup, SIGNAL(controlParamChanged(int)), SLOT(keyChangedSlot())); QObject::connect(m_ui.ChannelComboBox, SIGNAL(activated(int)), SLOT(keyChangedSlot())); QObject::connect(m_ui.TrackCheckBox, SIGNAL(toggled(bool)), SLOT(keyChangedSlot())); QObject::connect(m_ui.TrackSpinBox, SIGNAL(valueChanged(int)), SLOT(valueChangedSlot())); QObject::connect(m_ui.CommandComboBox, SIGNAL(activated(int)), SLOT(valueChangedSlot())); QObject::connect(m_ui.FeedbackCheckBox, SIGNAL(toggled(bool)), SLOT(valueChangedSlot())); QObject::connect(m_ui.MapPushButton, SIGNAL(clicked()), SLOT(mapSlot())); QObject::connect(m_ui.UnmapPushButton, SIGNAL(clicked()), SLOT(unmapSlot())); QObject::connect(m_ui.SyncCheckBox, SIGNAL(toggled(bool)), SLOT(syncSlot(bool))); QObject::connect(m_ui.ReloadPushButton, SIGNAL(clicked()), SLOT(reloadSlot())); QObject::connect(m_ui.ExportPushButton, SIGNAL(clicked()), SLOT(exportSlot())); QObject::connect(m_ui.ClosePushButton, SIGNAL(clicked()), SLOT(reject())); }