本文整理汇总了C++中pressed函数的典型用法代码示例。如果您正苦于以下问题:C++ pressed函数的具体用法?C++ pressed怎么用?C++ pressed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pressed函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: connect
connect(boneWeights, SIGNAL(enabled(bool)), this, SLOT(toggleBoneWeights(bool)), Qt::UniqueConnection);
connect(boneWeightsUI, SIGNAL(returnToParent()), this, SLOT(returnToWidget()), Qt::UniqueConnection);
connect(table, SIGNAL(cellDoubleClicked(int,int)), this, SLOT(viewSelected(int,int)), Qt::UniqueConnection);
}else{
disconnect(name, SIGNAL(textEdited(QString)), this, SLOT(setName(QString)));
disconnect(enable, SIGNAL(released()), this, SLOT(setEnable()));
disconnect(maxForce, SIGNAL(editingFinished()), this, SLOT(setMaxForce()));
disconnect(tau, SIGNAL(editingFinished()), this, SLOT(setTau()));
disconnect(damping, SIGNAL(editingFinished()), this, SLOT(setDamping()));
disconnect(proportionalRecoveryVelocity, SIGNAL(released()), this, SLOT(setProportionalRecoveryVelocity()));
disconnect(constantRecoveryVelocity, SIGNAL(released()), this, SLOT(setConstantRecoveryVelocity()));
disconnect(poseMatchingBone0, SIGNAL(editingFinished()), this, SLOT(setPoseMatchingBone0()));
disconnect(poseMatchingBone1, SIGNAL(editingFinished()), this, SLOT(setPoseMatchingBone1()));
disconnect(poseMatchingBone2, SIGNAL(editingFinished()), this, SLOT(setPoseMatchingBone2()));
disconnect(mode, SIGNAL(currentIndexChanged(int)), this, SLOT(setMode(int)));
disconnect(bones, SIGNAL(pressed()), this, SLOT(viewBones()));
disconnect(bones, SIGNAL(enabled(bool)), this, SLOT(toggleBones(bool)));
disconnect(boneIndexUI, SIGNAL(returnToParent()), this, SLOT(returnToWidget()));
disconnect(boneWeights, SIGNAL(pressed()), this, SLOT(viewBoneWeights()));
disconnect(boneWeights, SIGNAL(enabled(bool)), this, SLOT(toggleBoneWeights(bool)));
disconnect(boneWeightsUI, SIGNAL(returnToParent()), this, SLOT(returnToWidget()));
disconnect(table, SIGNAL(cellDoubleClicked(int,int)), this, SLOT(viewSelected(int,int)));
}
}
void PoweredRagdollControlsModifierUI::connectToTables(GenericTableWidget *variables, GenericTableWidget *properties, GenericTableWidget *ragdollBones){
if (variables && properties && ragdollBones){
disconnect(variables, SIGNAL(elementSelected(int,QString)), 0, 0);
disconnect(properties, SIGNAL(elementSelected(int,QString)), 0, 0);
disconnect(ragdollBones, SIGNAL(elementSelected(int,QString)), 0, 0);
connect(variables, SIGNAL(elementSelected(int,QString)), this, SLOT(setBindingVariable(int,QString)), Qt::UniqueConnection);
示例2: TrackView
InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerView* tcv ) :
TrackView( _it, tcv ),
m_window( NULL ),
m_lastPos( -1, -1 )
{
setAcceptDrops( true );
setFixedHeight( 32 );
m_tlb = new TrackLabelButton( this, getTrackSettingsWidget() );
m_tlb->setCheckable( true );
m_tlb->setIcon( embed::getIconPixmap( "instrument_track" ) );
m_tlb->move( 3, 1 );
m_tlb->show();
connect( m_tlb, SIGNAL( toggled( bool ) ),
this, SLOT( toggleInstrumentWindow( bool ) ) );
connect( _it, SIGNAL( nameChanged() ),
m_tlb, SLOT( update() ) );
// creation of widgets for track-settings-widget
int widgetWidth;
if( ConfigManager::inst()->value( "ui",
"compacttrackbuttons" ).toInt() )
{
widgetWidth = DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT;
}
else
{
widgetWidth = DEFAULT_SETTINGS_WIDGET_WIDTH;
}
m_volumeKnob = new Knob( knobSmall_17, getTrackSettingsWidget(),
tr( "Volume" ) );
m_volumeKnob->setVolumeKnob( true );
m_volumeKnob->setModel( &_it->m_volumeModel );
m_volumeKnob->setHintText( tr( "Volume:" ), "%" );
m_volumeKnob->move( widgetWidth-2*24, 2 );
m_volumeKnob->setLabel( tr( "VOL" ) );
m_volumeKnob->show();
m_volumeKnob->setWhatsThis( tr( volume_help ) );
m_panningKnob = new Knob( knobSmall_17, getTrackSettingsWidget(),
tr( "Panning" ) );
m_panningKnob->setModel( &_it->m_panningModel );
m_panningKnob->setHintText( tr( "Panning:" ), "%" );
m_panningKnob->move( widgetWidth-24, 2 );
m_panningKnob->setLabel( tr( "PAN" ) );
m_panningKnob->show();
m_midiMenu = new QMenu( tr( "MIDI" ), this );
// sequenced MIDI?
if( !Engine::mixer()->midiClient()->isRaw() )
{
_it->m_midiPort.m_readablePortsMenu = new MidiPortMenu(
MidiPort::Input );
_it->m_midiPort.m_writablePortsMenu = new MidiPortMenu(
MidiPort::Output );
_it->m_midiPort.m_readablePortsMenu->setModel(
&_it->m_midiPort );
_it->m_midiPort.m_writablePortsMenu->setModel(
&_it->m_midiPort );
m_midiInputAction = m_midiMenu->addMenu(
_it->m_midiPort.m_readablePortsMenu );
m_midiOutputAction = m_midiMenu->addMenu(
_it->m_midiPort.m_writablePortsMenu );
}
else
{
m_midiInputAction = m_midiMenu->addAction( "" );
m_midiOutputAction = m_midiMenu->addAction( "" );
m_midiInputAction->setCheckable( true );
m_midiOutputAction->setCheckable( true );
connect( m_midiInputAction, SIGNAL( changed() ), this,
SLOT( midiInSelected() ) );
connect( m_midiOutputAction, SIGNAL( changed() ), this,
SLOT( midiOutSelected() ) );
connect( &_it->m_midiPort, SIGNAL( modeChanged() ),
this, SLOT( midiConfigChanged() ) );
}
m_midiInputAction->setText( tr( "Input" ) );
m_midiOutputAction->setText( tr( "Output" ) );
m_activityIndicator = new FadeButton( QApplication::palette().color( QPalette::Active,
QPalette::Background),
QApplication::palette().color( QPalette::Active,
QPalette::BrightText ),
getTrackSettingsWidget() );
m_activityIndicator->setGeometry(
widgetWidth-2*24-11, 2, 8, 28 );
m_activityIndicator->show();
connect( m_activityIndicator, SIGNAL( pressed() ),
this, SLOT( activityIndicatorPressed() ) );
connect( m_activityIndicator, SIGNAL( released() ),
this, SLOT( activityIndicatorReleased() ) );
connect( _it, SIGNAL( newNote() ),
m_activityIndicator, SLOT( activate() ) );
connect( &_it->m_mutedModel, SIGNAL( dataChanged() ), this, SLOT( muteChanged() ) );
//.........这里部分代码省略.........
示例3: QDialogEx
CConnector::CConnector(QWidget *pMainWindow)
: QDialogEx(pMainWindow)
{
m_pMainLayout = new QFormLayout();
m_pMainLayout->setMargin(5);
m_Mode = -1;
int Counter = 0;
m_pMainLayout->setWidget(Counter, QFormLayout::SpanningRole, new QLabel(tr( "Setup NeoLoader Mode of operation\r\n"
"\r\n"
"Unified - Single Process\r\n"
"Separate - GUI in a separate process\r\n"
"Local - Core in a separate console process\r\n"
"Remote - No Core, only remote GUI \r\n"
"\r\n"
)));
Counter++;
m_pLabel = new QLabel(tr("<b>Restart NeoLoader to apply changes.</b><br />"));
m_pLabel->setVisible(false);
m_pMainLayout->setWidget(Counter, QFormLayout::SpanningRole, m_pLabel);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Operation Mode")));
m_pMode = new QComboBox();
m_pMode->addItem(tr("Single Process"), "Unified");
m_pMode->addItem(tr("Separated Process"), "Separate");
m_pMode->addItem(tr("Local Core"), "Local");
m_pMode->addItem(tr("Remote Core"), "Remote");
connect(m_pMode, SIGNAL(currentIndexChanged(int)), this, SLOT(OnModeChanged(int)));
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pMode);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Password")));
m_pPassword = new QLineEdit();
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pPassword);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Host Port")));
m_pHostPort = new QLineEdit();
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pHostPort);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Host Name")));
m_pHostName = new QLineEdit();
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pHostName);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Pipe Name")));
m_pPipeName = new QLineEdit();
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pPipeName);
Counter++;
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, new QLabel(tr("Auto Connect")));
m_pAutoConnect = new QComboBox();
m_pAutoConnect->addItem(tr("No"));
m_pAutoConnect->addItem(tr("Yes"));
m_pAutoConnect->addItem(tr("Yes & Start"));
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pAutoConnect);
/*QtServiceController svc(theLoader->Cfg()->GetString("Core/ServiceName"));
Counter++;
m_pServiceBtn = new QPushButton(svc.isInstalled() ? tr("Remove Service") : tr("Install Service"));
connect(m_pServiceBtn, SIGNAL(pressed()), this, SLOT(OnService()));
m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, m_pServiceBtn);
m_pServiceName = new QLineEdit();
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pServiceName);*/
Counter++;
//m_pStartBtn = new QPushButton(tr("Start"));
//connect(m_pStartBtn, SIGNAL(pressed()), this, SLOT(OnStart()));
//m_pMainLayout->setWidget(Counter, QFormLayout::LabelRole, m_pStartBtn);
m_pConnectBtn = new QPushButton(tr("Connect"));
connect(m_pConnectBtn, SIGNAL(pressed()), this, SLOT(OnConnect()));
m_pMainLayout->setWidget(Counter, QFormLayout::FieldRole, m_pConnectBtn);
Counter++;
m_pButtonBox = new QDialogButtonBox(QDialogButtonBox::Apply | QDialogButtonBox::Cancel, Qt::Horizontal, this);
QObject::connect(m_pButtonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(OnClicked(QAbstractButton*)));
m_pMainLayout->setWidget(Counter, QFormLayout::SpanningRole, m_pButtonBox);
setLayout(m_pMainLayout);
Load();
m_uTimerID = startTimer(100);
}
示例4: ModelPanel
//.........这里部分代码省略.........
label->setMouseTracking(true);
label->setProperty("index", i);
label->setText(tr("SF%1").arg(i+1));
label->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum);
connect(label, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(fsw_customContextMenuRequested(QPoint)));
gridLayout->addWidget(label, i+1, 0);
// The switch
fswtchSwtch[i] = new QComboBox(this);
fswtchSwtch[i]->setProperty("index", i);
fswtchSwtch[i]->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum);
connect(fswtchSwtch[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
gridLayout->addWidget(fswtchSwtch[i], i+1, 1);
// The function
fswtchFunc[i] = new QComboBox(this);
fswtchFunc[i]->setProperty("index", i);
connect(fswtchFunc[i], SIGNAL(currentIndexChanged(int)), this, SLOT(functionEdited()));
gridLayout->addWidget(fswtchFunc[i], i+1, 2);
QHBoxLayout *paramLayout = new QHBoxLayout();
gridLayout->addLayout(paramLayout, i+1, 3);
fswtchGVmode[i] = new QComboBox(this);
fswtchGVmode[i]->setProperty("index", i);
connect(fswtchGVmode[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
paramLayout->addWidget(fswtchGVmode[i]);
fswtchParamGV[i] = new QCheckBox(this);
fswtchParamGV[i]->setProperty("index", i);
fswtchParamGV[i]->setText("GV");
fswtchParamGV[i]->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum);
connect(fswtchParamGV[i], SIGNAL(stateChanged(int)), this, SLOT(customFunctionEdited()));
paramLayout->addWidget(fswtchParamGV[i]);
fswtchParam[i] = new QDoubleSpinBox(this);
fswtchParam[i]->setProperty("index", i);
fswtchParam[i]->setAccelerated(true);
fswtchParam[i]->setDecimals(0);
connect(fswtchParam[i], SIGNAL(editingFinished()), this, SLOT(customFunctionEdited()));
paramLayout->addWidget(fswtchParam[i]);
fswtchParamTime[i] = new QTimeEdit(this);
fswtchParamTime[i]->setProperty("index", i);
fswtchParamTime[i]->setAccelerated(true);
fswtchParamTime[i]->setDisplayFormat("hh:mm:ss");
connect(fswtchParamTime[i], SIGNAL(editingFinished()), this, SLOT(customFunctionEdited()));
paramLayout->addWidget(fswtchParamTime[i]);
fswtchParamT[i] = new QComboBox(this);
fswtchParamT[i]->setProperty("index", i);
paramLayout->addWidget(fswtchParamT[i]);
connect(fswtchParamT[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
fswtchParamArmT[i] = new QComboBox(this);
fswtchParamArmT[i]->setProperty("index", i);
fswtchParamArmT[i]->setEditable(true);
paramLayout->addWidget(fswtchParamArmT[i]);
connect(fswtchParamArmT[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
connect(fswtchParamArmT[i], SIGNAL(editTextChanged ( const QString)), this, SLOT(customFunctionEdited()));
fswtchBLcolor[i] = new QSlider(this);
fswtchBLcolor[i]->setProperty("index", i);
fswtchBLcolor[i]->setMinimum(0);
fswtchBLcolor[i]->setMaximum(100);
fswtchBLcolor[i]->setSingleStep(1);
fswtchBLcolor[i]->setOrientation(Qt::Horizontal);
paramLayout->addWidget(fswtchBLcolor[i]);
connect(fswtchBLcolor[i], SIGNAL(sliderReleased()), this, SLOT(customFunctionEdited()));
#ifdef PHONON
playBT[i] = new QPushButton(this);
playBT[i]->setProperty("index", i);
playBT[i]->setIcon(playIcon);
paramLayout->addWidget(playBT[i]);
connect(playBT[i], SIGNAL(pressed()), this, SLOT(playMusic()));
#endif
QHBoxLayout *repeatLayout = new QHBoxLayout();
gridLayout->addLayout(repeatLayout, i+1, 4);
fswtchRepeat[i] = new RepeatComboBox(this, model.funcSw[i].repeatParam);
repeatLayout->addWidget(fswtchRepeat[i], i+1);
connect(fswtchRepeat[i], SIGNAL(modified()), this, SLOT(onChildModified()));
fswtchEnable[i] = new QCheckBox(this);
fswtchEnable[i]->setProperty("index", i);
fswtchEnable[i]->setText(tr("ON"));
fswtchEnable[i]->setFixedWidth( 80 );
repeatLayout->addWidget(fswtchEnable[i], i+1);
connect(fswtchEnable[i], SIGNAL(stateChanged(int)), this, SLOT(customFunctionEdited()));
}
// Push rows upward
addDoubleSpring(gridLayout, 5, num_fsw+1);
disableMouseScrolling();
lock = false;
}
示例5: QMainWindow
EditorMainWindow::EditorMainWindow(QWidget *parent)
: QMainWindow(parent)
{
camera_ = 0;
ui.setupUi(this);
QApplication::connect(ui.action_Open, SIGNAL(triggered()), this, SLOT(openRequested()));
QApplication::connect(ui.action_Save, SIGNAL(triggered()), this, SLOT(saveRequested()));
QApplication::connect(ui.actionDerive_map, SIGNAL(triggered()), this, SLOT(deriveMap()));
QApplication::connect(ui.action_Quit, SIGNAL(triggered()), QApplication::instance(), SLOT(quit()));
QApplication::connect(ui.actionZoom_In, SIGNAL(triggered()), this, SLOT(zoominRequested()));
QApplication::connect(ui.actionZoom_Out, SIGNAL(triggered()), this, SLOT(zoomoutRequested()));
QApplication::connect(ui.horizontalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(horzScroll(int)));
QApplication::connect(ui.verticalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(vertScroll(int)));
QApplication::connect(ui.actionRotate_Left, SIGNAL(triggered()), this, SLOT(rotateLeft()));
QApplication::connect(ui.actionRotate_Right, SIGNAL(triggered()), this, SLOT(rotateRight()));
QApplication::connect(ui.actionTilt_Up, SIGNAL(triggered()), this, SLOT(tiltUp()));
QApplication::connect(ui.actionTilt_Down, SIGNAL(triggered()), this, SLOT(tiltDown()));
QApplication::connect(ui.actionUndo, SIGNAL(triggered()), this, SLOT(undo()));
QApplication::connect(ui.actionRedo, SIGNAL(triggered()), this, SLOT(redo()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_S),this), SIGNAL(activated()), this, SLOT(saveRequested()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_O),this), SIGNAL(activated()), this, SLOT(openRequested()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_Z),this), SIGNAL(activated()), this, SLOT(zoominRequested()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_X),this), SIGNAL(activated()), this, SLOT(zoomoutRequested()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Left),this), SIGNAL(activated()), this, SLOT(rotateLeft()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Right),this), SIGNAL(activated()), this, SLOT(rotateRight()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Up),this), SIGNAL(activated()), this, SLOT(tiltUp()));
QApplication::connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Down),this), SIGNAL(activated()), this, SLOT(tiltDown()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_Left),this), SIGNAL(activated()), this, SLOT(panLeft()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_Right),this), SIGNAL(activated()), this, SLOT(panRight()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_Up),this), SIGNAL(activated()), this, SLOT(panUp()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_Down),this), SIGNAL(activated()), this, SLOT(panDown()));
ui.action_Save->setEnabled(false);
ui.editorGLWidget->setEnabled(false);
QToolButton* party_button = new QToolButton();
party_button->setText("Parties");
party_button->setCheckable(true);
party_button->setChecked(false);
handlers_.push_back(new TerrainHandler(*this, "party", false, tool_buttons_.size()));
QApplication::connect(party_button, SIGNAL(pressed()), handlers_.back(), SLOT(terrainSelected()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_P),this), SIGNAL(activated()), handlers_.back(), SLOT(terrainSelected()));
ui.tilesToolBar->addWidget(party_button);
tool_buttons_.push_back(party_button);
QToolButton* height_button = new QToolButton();
height_button->setText("Height");
height_button->setCheckable(true);
height_button->setChecked(true);
handlers_.push_back(new TerrainHandler(*this, "", false, tool_buttons_.size()));
QApplication::connect(height_button, SIGNAL(pressed()), handlers_.back(), SLOT(terrainSelected()));
QApplication::connect(new QShortcut(QKeySequence(Qt::Key_H),this), SIGNAL(activated()), handlers_.back(), SLOT(terrainSelected()));
ui.tilesToolBar->addWidget(height_button);
tool_buttons_.push_back(height_button);
QToolButton* picker_button = new QToolButton();
picker_button->setText("Picker");
picker_button->setCheckable(true);
handlers_.push_back(new TerrainHandler(*this, "", true, tool_buttons_.size()));
QApplication::connect(picker_button, SIGNAL(pressed()), handlers_.back(), SLOT(terrainSelected()));
ui.tilesToolBar->addWidget(picker_button);
tool_buttons_.push_back(picker_button);
std::vector<std::string> terrain_ids;
hex::base_terrain::get_terrain_ids(terrain_ids);
for(int n = 0; n != terrain_ids.size(); ++n) {
QToolButton* b = new QToolButton();
b->setText(hex::base_terrain::get(terrain_ids[n])->name().c_str());
b->setCheckable(true);
handlers_.push_back(new TerrainHandler(*this, terrain_ids[n], false, tool_buttons_.size()));
QApplication::connect(b, SIGNAL(pressed()), handlers_.back(), SLOT(terrainSelected()));
ui.tilesToolBar->addWidget(b);
tool_buttons_.push_back(b);
}
terrain_ids.clear();
hex::terrain_feature::get_feature_ids(terrain_ids);
for(int n = 0; n != terrain_ids.size(); ++n) {
QToolButton* b = new QToolButton();
b->setText(hex::terrain_feature::get(terrain_ids[n])->name().c_str());
b->setCheckable(true);
handlers_.push_back(new TerrainHandler(*this, terrain_ids[n], true, tool_buttons_.size()));
QApplication::connect(b, SIGNAL(pressed()), handlers_.back(), SLOT(terrainSelected()));
ui.tilesToolBar->addWidget(b);
tool_buttons_.push_back(b);
}
}
示例6: m_pStyle
m_pStyle(0)
{
parentButton = new QToolButton(this);
parentButton->setMaximumSize( QSize( 22, 22 ) );
parentButton->setCheckable( true );
parentButton->setText( tr("P", "P as in Parent"));
parentButton->setToolTip( tr("Use parent style's alignment instead of overriding it"));
GroupAlignLayout->addWidget( parentButton );
resize(minimumSizeHint());
parentButton->hide();
}
void SMAlignSelect::setStyle(int i)
{
disconnect(this, SIGNAL(State(int)), this, SLOT(styleChanged()));
disconnect(parentButton, SIGNAL(pressed()), this, SLOT(pbPressed()));
setFont(false);
m_hasParent = false;
m_pStyle = 0;
parentButton->hide();
AlignSelect::setStyle(i);
}
void SMAlignSelect::setStyle(int i, bool isParentValue)
{
disconnect(this, SIGNAL(State(int)), this, SLOT(styleChanged()));
disconnect(parentButton, SIGNAL(pressed()), this, SLOT(pbPressed()));
m_hasParent = true;
m_pStyle = i;
setFont(!isParentValue);
if (isParentValue)
示例7: pressed
void ResetWidgetPushButton::myPressed()
{
emit pressed(m_name);
}
示例8: m_pOSGView
Motion::Motion(GraphicsView* view, QWidget* parent)
: m_pOSGView(view), QWidget(parent)
{
ui.setupUi(this);
addSphere();
connect(ui.radioButton, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_2, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_3, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_4, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_5, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_6, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_7, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_8, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_9, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_10, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_11, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_12, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_13, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_14, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_15, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_16, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_17, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_18, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_19, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_20, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_21, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_22, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_23, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_24, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_25, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_26, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
connect(ui.radioButton_27, SIGNAL(pressed()), this, SLOT(slotRadioChanged()));
}
示例9: loadEvents
Calendar::Calendar()
{
eventListCounter = 0;
loadEvents();
actualDate = new QDate;
*actualDate = QDate::currentDate(); //get's information about current date and sets proper label
int actualDay, actualMonth, actualYear;
actualDate->getDate(&actualDay, &actualMonth, &actualYear);
// essential variables initialization
actualDate->getDate(&year,&month,&day);
QDate dayOfWeek(year,month,1); //gets information about first day of selected month and year
whatDay = dayOfWeek.dayOfWeek();
// end of essential variables initialization
actualWeek = actualDate->weekNumber();
// future note: array are better than days[0], days[1], days[2]... :P
days = new Day*[7];
days[0] = new Day("Monday");
days[1] = new Day("Tuesday");
days[2] = new Day("Wednesday");
days[3] = new Day("Thursday");
days[4] = new Day("Friday");
days[5] = new Day("Saturday");
days[6] = new Day("Sunday");
daysLayout = new QHBoxLayout;
navigationLayout = new QHBoxLayout; // horizontal layout for navigation elements
// creating elements for navigation box
navigationLeft = new QPushButton("<<");
navigationRight = new QPushButton(">>");
dateLabel = new QLabel(); // QLabel initialization
navigationLayout->addWidget(navigationLeft);
navigationLayout->addWidget(dateLabel);
navigationLayout->addWidget(navigationRight);
mainLayout = new QVBoxLayout; // vertical layout for navigation and days boxes
mainLayout->addLayout(navigationLayout);
mainLayout->addLayout(daysLayout);
this->setLayout(mainLayout);
QString initialDateLabel = dateToString(actualYear, actualMonth, actualDay);
dateLabel->setText("<center>" + initialDateLabel + "</center>");
sortButtons();
connect(navigationLeft,SIGNAL(pressed()),this,SLOT(navigationLeftClicked())); //connects navigation buttons with action (changing day's range or month)
connect(navigationRight,SIGNAL(pressed()),this,SLOT(navigationRightClicked()));
/* Signal mapper is used to send parameter to slot method. The parameter here is
* integer which reprenets offset of certain days of week. */
QSignalMapper* signalMapper = new QSignalMapper(this); // signal mapping is needed to parametrize slot :(
connect(days[0], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[1], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[2], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[3], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[4], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[5], SIGNAL(pressed()), signalMapper, SLOT(map()));
connect(days[6], SIGNAL(pressed()), signalMapper, SLOT(map()));
signalMapper->setMapping(days[0], 0);
signalMapper->setMapping(days[1], 1);
signalMapper->setMapping(days[2], 2);
signalMapper->setMapping(days[3], 3);
signalMapper->setMapping(days[4], 4);
signalMapper->setMapping(days[5], 5);
signalMapper->setMapping(days[6], 6);
connect(signalMapper, SIGNAL(mapped(int)), this, SLOT(scheduleDay(int)));
colorTask();
}
示例10: QPushButton
ResetWidgetPushButton::ResetWidgetPushButton(QWidget *parent) : QPushButton(parent)
{
connect(this, SIGNAL(pressed()), this, SLOT(myPressed()));
}
示例11: QWidget
QgsMapStylingWidget::QgsMapStylingWidget( QgsMapCanvas* canvas, QWidget *parent )
: QWidget( parent )
, mMapCanvas( canvas )
, mBlockAutoApply( false )
, mCurrentLayer( nullptr )
, mVectorStyleWidget( nullptr )
{
QBoxLayout* layout = new QVBoxLayout();
layout->setContentsMargins( 0, 0, 0, 0 );
this->setLayout( layout );
mAutoApplyTimer = new QTimer( this );
mAutoApplyTimer->setSingleShot( true );
connect( mAutoApplyTimer, SIGNAL( timeout() ), this, SLOT( apply() ) );
mStackedWidget = new QStackedWidget( this );
mMapStyleTabs = new QTabWidget( this );
mMapStyleTabs->setDocumentMode( true );
mNotSupportedPage = mStackedWidget->addWidget( new QLabel( "Not supported currently" ) );
mVectorPage = mStackedWidget->addWidget( mMapStyleTabs );
// create undo widget
mUndoWidget = new QgsUndoWidget( this->mMapStyleTabs, mMapCanvas );
mUndoWidget->setObjectName( "Undo Styles" );
mLayerTitleLabel = new QLabel();
mLayerTitleLabel->setAlignment( Qt::AlignHCenter );
layout->addWidget( mLayerTitleLabel );
layout->addWidget( mStackedWidget );
mButtonBox = new QDialogButtonBox( QDialogButtonBox::Apply );
mLiveApplyCheck = new QCheckBox( "Live update" );
mLiveApplyCheck->setChecked( true );
mUndoButton = new QToolButton( this );
mUndoButton->setIcon( QgsApplication::getThemeIcon( "mActionUndo.png" ) );
mRedoButton = new QToolButton( this );
mRedoButton->setIcon( QgsApplication::getThemeIcon( "mActionRedo.png" ) );
connect( mUndoButton, SIGNAL( pressed() ), mUndoWidget, SLOT( undo() ) );
connect( mRedoButton, SIGNAL( pressed() ), mUndoWidget, SLOT( redo() ) );
QHBoxLayout* bottomLayout = new QHBoxLayout( );
bottomLayout->addWidget( mUndoButton );
bottomLayout->addWidget( mRedoButton );
bottomLayout->addWidget( mButtonBox );
bottomLayout->addWidget( mLiveApplyCheck );
layout->addLayout( bottomLayout );
mLabelingWidget = new QgsLabelingWidget( 0, mMapCanvas, this );
mLabelingWidget->setDockMode( true );
connect( mLabelingWidget, SIGNAL( widgetChanged() ), this, SLOT( autoApply() ) );
// Only labels for now but styles and diagrams will come later
QScrollArea* stylescroll = new QScrollArea;
stylescroll->setWidgetResizable( true );
stylescroll->setFrameStyle( QFrame::NoFrame );
QScrollArea* labelscroll = new QScrollArea;
labelscroll->setWidgetResizable( true );
labelscroll->setFrameStyle( QFrame::NoFrame );
labelscroll->setWidget( mLabelingWidget );
mStyleTabIndex = mMapStyleTabs->addTab( stylescroll, QgsApplication::getThemeIcon( "propertyicons/symbology.png" ), "Styles" );
mLabelTabIndex = mMapStyleTabs->addTab( labelscroll, QgsApplication::getThemeIcon( "labelingSingle.svg" ), "Labeling" );
mMapStyleTabs->addTab( mUndoWidget, QgsApplication::getThemeIcon( "labelingSingle.svg" ), "History" );
// int diagramTabIndex = mMapStyleTabs->addTab( new QWidget(), QgsApplication::getThemeIcon( "propertyicons/diagram.png" ), "Diagrams" );
// mMapStyleTabs->setTabEnabled( styleTabIndex, false );
// mMapStyleTabs->setTabEnabled( diagramTabIndex, false );
mMapStyleTabs->setCurrentIndex( mStyleTabIndex );
connect( mMapStyleTabs, SIGNAL( currentChanged( int ) ), this, SLOT( updateCurrentWidgetLayer( int ) ) );
connect( mLiveApplyCheck, SIGNAL( toggled( bool ) ), mButtonBox->button( QDialogButtonBox::Apply ), SLOT( setDisabled( bool ) ) );
connect( mButtonBox->button( QDialogButtonBox::Apply ), SIGNAL( clicked() ), this, SLOT( apply() ) );
mButtonBox->button( QDialogButtonBox::Apply )->setEnabled( false );
}
示例12: QWidget
MainWidget::MainWidget(const QString &token, const QString &user_id, QWidget *parent)
: QWidget(parent), m_token(token), m_user_id(user_id), m_playState(false)
{
m_removeCurrent = false;
m_player = new QMediaPlayer;
m_player->setVolume(100);
m_mediaWebPlaylist = new QMediaPlaylist(m_player);
m_mediaWebPlaylist->setObjectName("web");
m_player->setPlaylist(m_mediaWebPlaylist);
loadUserPlaylist();
this->resize(800, 600);
this->setWindowTitle("VK Music Player");
QDir dir("./cache/");
if(!dir.exists())
dir.mkpath(".");
QGridLayout* mainLayout = new QGridLayout;
m_currentLabel = new QLabel;
m_currentLabel->setFont(QFont("Arial", 16));
m_currentLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
mainLayout->addWidget(m_currentLabel, 0, 0, 1, 9, Qt::AlignCenter);
ImageButton *prevButton = new ImageButton("prevbutton.png");
mainLayout->addWidget(prevButton, 2, 3, 1, 1, Qt::AlignTop | Qt::AlignRight);
m_playPauseButton = new ImageButton("playbutton.png");
mainLayout->addWidget(m_playPauseButton, 2, 4, 1, 1, Qt::AlignTop);
ImageButton *nextButton = new ImageButton("nextbutton.png");
mainLayout->addWidget(nextButton, 2, 5, 1, 1, Qt::AlignTop | Qt::AlignLeft);
m_playlistWidget = new PlaylistWidget;
mainLayout->addWidget(m_playlistWidget, 3, 0, 3, 9);
m_seekslider = new QSlider;
m_seekslider->setOrientation(Qt::Horizontal);
mainLayout->addWidget(m_seekslider, 1, 0, 1, 7);
m_volumeSlider = new QSlider;
m_volumeSlider->setOrientation(Qt::Horizontal);
m_volumeSlider->setMaximum(100);
m_volumeSlider->setValue(100);
m_volumeSlider->setSingleStep(1);
mainLayout->addWidget(m_volumeSlider, 1, 7, 1, 2);
m_timeLabel = new QLabel;
m_timeLabel->setText("0:00");
mainLayout->addWidget(m_timeLabel, 2, 0, 1, 2, Qt::AlignTop);
m_volumeLabel = new QLabel;
m_volumeLabel->setText(QString::number(m_player->volume())+"%");
mainLayout->addWidget(m_volumeLabel, 2, 7, 1, 2, Qt::AlignTop | Qt::AlignHCenter);
m_cacheCurrent = new QCheckBox(tr("&Save"));
mainLayout->addWidget(m_cacheCurrent, 2, 7, 1, 2, Qt::AlignBottom | Qt::AlignRight);
m_searchEdit = new QLineEdit;
m_searchEdit->setPlaceholderText(tr("Search"));
mainLayout->addWidget(m_searchEdit, 2, 0, 1, 8, Qt::AlignBottom);
this->setLayout(mainLayout);
connect(this, SIGNAL(playlistReady()),
SLOT(fillPlaylistWidget_slot()));
connect(this, SIGNAL(playStateChanged(bool)),
SLOT(playStateChanged_slot(bool)));
connect(m_playPauseButton, SIGNAL(pressed()), this, SLOT(playOrPause()));
connect(nextButton, &ImageButton::pressed,
[=](){
m_playlistWidget->setCurrent(m_playlistWidget->getCurrentId()+1);
m_player->play();
emit playStateChanged(true);
});
connect(prevButton, &ImageButton::pressed,
[=](){
m_playlistWidget->setCurrent(m_playlistWidget->getCurrentId()-1);
m_player->play();
emit playStateChanged(true);
});
connect(m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)),
this, SLOT(mediaStatusChanged_slot(QMediaPlayer::MediaStatus)));
connect(m_playlistWidget, SIGNAL(currentChanged(PlaylistMember*)),
this, SLOT(currentChanged_slot(PlaylistMember*)));
connect(m_player, SIGNAL(positionChanged(qint64)),
this, SLOT(updateSlider(qint64)));
connect(m_player, &QMediaPlayer::volumeChanged,
[=](int v){ m_volumeLabel->setText(QString::number(v)+"%"); });
//.........这里部分代码省略.........
示例13: red_active
// constructor
MyWindow::MyWindow(int w, int h) :
red_active(false),
red_set(*(new Polygon_set)),
blue_set(*(new Polygon_set)),
res_set(*(new Polygon_set))
{
widget = new CGAL::Qt_widget(this); //Constructs a widget which is a child of this window
/* Sets the central widget for this main window to w.
* The central widget is surrounded by the left, top, right and bottom dock areas.
* The menu bar is above the top dock area
*/
setCentralWidget(widget);
file_name= QString::null;
//create a timer for checking if somthing changed
QTimer *timer = new QTimer( this ); // constructs a timer whose parent is this window
connect( timer, SIGNAL(timeout()),
this, SLOT(timer_done()) ); // connects the timer to the window
timer->start( 200, FALSE ); // Starts the timer with a msec milliseconds timeout
// file menu
QPopupMenu * file = new QPopupMenu( this );
menuBar()->insertItem( "&File", file );
file->insertItem("&New", this, SLOT(new_instance()), CTRL+Key_N);
file->insertItem("New &Window", this, SLOT(new_window()), CTRL+Key_W);
file->insertSeparator();
file->insertItem("&Open Linear Polygon file", this, SLOT(open_linear_polygon_file()),CTRL+Key_O);
file->insertItem("&Open DXF file", this, SLOT(open_dxf_file()),CTRL+Key_D);
file->insertSeparator();
//file->insertItem("&Save",this ,SLOT(save_file()),CTRL+Key_S);
//file->insertItem("&Save as",this ,SLOT(save_file_as()));
file->insertSeparator();
file->insertItem("Print", widget, SLOT(print_to_ps()), CTRL+Key_P);
file->insertSeparator();
file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_X );
file->insertItem( "&Quit", qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
// help menu
QPopupMenu * help = new QPopupMenu( this );
menuBar()->insertItem( "&Help", help );
help->insertItem("How To", this, SLOT(howto()), Key_F1);
help->insertSeparator();
help->insertItem("&About", this, SLOT(about()), CTRL+Key_A );
help->insertItem("About &Qt", this, SLOT(aboutQt()) );
//the standard toolbar
stoolbar = new CGAL::Qt_widget_standard_toolbar (widget, this, "ST");
radiotoolbar = new QToolBar(this, "polygon type");
blue_pgn = new QRadioButton ("Blue", radiotoolbar);
blue_pgn->toggle();
red_pgn = new QRadioButton("Red", radiotoolbar);
radio_group = new QVButtonGroup(this,"Radios");
radio_group->insert(blue_pgn);
radio_group->insert(red_pgn);
radio_group->setRadioButtonExclusive(true);
connect(blue_pgn, SIGNAL(toggled (bool)),
this, SLOT(radio_selected()));
connect(red_pgn, SIGNAL(toggled (bool)),
this, SLOT(radio_selected()));
//layers
//widget->attach(&testlayer);
//the new tools toolbar
newtoolbar = new Tools_toolbar(widget, this);
// voronoi toolbar
bops_toolbar = new QToolBar(this, "Boolean operations");
QIconSet set0(QPixmap( (const char**)intersection_xpm ),
QPixmap( (const char**)intersection_xpm ));
intersection_but = new QToolButton(bops_toolbar, "Boolean operations");
intersection_but->setAutoRaise(TRUE);
intersection_but->setIconSet(set0);
intersection_but->setTextLabel("Intersection ");
connect(intersection_but,SIGNAL(pressed()),
this, SLOT(perform_intersection()));
QIconSet set1(QPixmap( (const char**)union_xpm ),
QPixmap( (const char**)union_xpm ));
bops_toolbar->addSeparator();
union_but = new QToolButton(bops_toolbar, "Boolean operations");
union_but->setAutoRaise(TRUE);
union_but->setIconSet(set1);
union_but->setTextLabel("Union ");
connect(union_but,SIGNAL(pressed()),
this, SLOT(perform_union()));
//.........这里部分代码省略.........
示例14: setParent
ClientSettings::ClientSettings(ClientInterface* par)
{
m_parent = par;
setParent(par);
setWhatsThis(tr("Ici, vous pouvez régler bon nombre d'options du logiciel."));
setWindowFlags(Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint|Qt::WindowCloseButtonHint|Qt::WindowContextHelpButtonHint);
m_settings = allocateSettings(this);
QVBoxLayout* la = new QVBoxLayout;
QVBoxLayout* la2 = new QVBoxLayout;
QHBoxLayout* hla= new QHBoxLayout;
setLayout(hla);
hla->addLayout(la);
hla->addLayout(la2);
{
QGroupBox *gb = new QGroupBox(tr("Général"));
la->addWidget(gb);
QVBoxLayout* v_la = new QVBoxLayout;
gb->setLayout(v_la);
{
QHBoxLayout* h_la = new QHBoxLayout;
v_la->addLayout(h_la);
m_nickname = new QLineEdit(m_settings->value(PARAM_NICK).toString(), this);
m_nickname->setMaxLength(MAX_NICKNAME_LENGHT);
m_nickname->setWhatsThis(tr("Entrez ici le pseudo que vous utiliserez sur le chat. A contrario de la commande /pseudo, ce pseudo sera automatiquement appliqué à chaque connexion."));
h_la->addWidget(new QLabel(tr("Pseudo :")));
h_la->addWidget(m_nickname);
}
}
{
QGroupBox *gb = new QGroupBox(tr("Interface"));
la->addWidget(gb);
QVBoxLayout* v_la = new QVBoxLayout;
gb->setLayout(v_la);
{
QHBoxLayout* h_la = new QHBoxLayout;
v_la->addLayout(h_la);
m_selectInterface = new QPushButton("...", this);
m_selectInterface->setWhatsThis(tr("Parcourir le disque dur..."));
connect(m_selectInterface, SIGNAL(pressed()), this, SLOT(selectInterface()));
m_interfacePath = new QLineEdit(m_settings->value(PARAM_INTERFACE, DEFAULT_INTERFACE).toString(), this);
connect(m_interfacePath, SIGNAL(returnPressed()), this, SLOT(openInterface()));
h_la->addWidget(m_interfacePath);
h_la->addWidget(m_selectInterface);
}
{
QHBoxLayout* h_la = new QHBoxLayout;
v_la->addLayout(h_la);
m_saveInterface = new QPushButton(tr("Sauvegarder"), this);
m_saveInterface->setWhatsThis(tr("Sauvegarder une interface."));
connect(m_saveInterface, SIGNAL(pressed()), this, SLOT(saveInterface()));
h_la->addWidget(m_saveInterface);
m_openInterface = new QPushButton(tr("Charger"), this);
m_openInterface->setWhatsThis(tr("Charger l'interface marquée plus haut."));
connect(m_openInterface, SIGNAL(pressed()), this, SLOT(openInterface()));
h_la->addWidget(m_openInterface);
}
}
{
QGroupBox *gb = new QGroupBox(tr("Thème"));
la->addWidget(gb);
QVBoxLayout* v_la = new QVBoxLayout;
gb->setLayout(v_la);
QHBoxLayout* h_la = new QHBoxLayout;
v_la->addLayout(h_la);
m_selectCSS = new QPushButton("...", this);
m_selectCSS->setWhatsThis(tr("Parcourir le disque dur..."));
connect(m_selectCSS, SIGNAL(pressed()), this, SLOT(selectCSS()));
m_CSSPath = new QLineEdit(m_settings->value(PARAM_CSS).toString(), this);
connect(m_CSSPath, SIGNAL(returnPressed()), this, SLOT(openCSS()));
h_la->addWidget(m_CSSPath);
h_la->addWidget(m_selectCSS);
m_openCSS = new QPushButton(tr("Charger"), this);
m_openCSS->setWhatsThis(tr("Charger la feuille de style indiquée plus haut."));
connect(m_openCSS, SIGNAL(pressed()), this, SLOT(openCSS()));
v_la->addWidget(m_openCSS);
}
{
QGroupBox *gb = new QGroupBox(tr("Paramètres de connexion"));
gb->setWhatsThis(tr("Ces options ne sont disponibles que lorsque vous n'êtes pas connecté à un serveur."));
la->addWidget(gb);
QVBoxLayout* v_la = new QVBoxLayout;
gb->setLayout(v_la);
v_la->addWidget(new QLabel(tr("Addresse IP et port du serveur :")));
QHBoxLayout* h_la = new QHBoxLayout;
//.........这里部分代码省略.........
示例15: setupUi
void DlgTrackInfo::init() {
setupUi(this);
cueTable->hideColumn(0);
coverBox->insertWidget(1, m_pWCoverArtLabel);
// It is essential to make the QPlainTextEdit transparent.
// Without this, the background is always solid (white by default).
txtLocation->viewport()->setAutoFillBackground(false);
connect(btnNext, SIGNAL(clicked()),
this, SLOT(slotNext()));
connect(btnPrev, SIGNAL(clicked()),
this, SLOT(slotPrev()));
connect(btnApply, SIGNAL(clicked()),
this, SLOT(apply()));
connect(btnOK, SIGNAL(clicked()),
this, SLOT(OK()));
connect(btnCancel, SIGNAL(clicked()),
this, SLOT(cancel()));
connect(btnFetchTag, SIGNAL(clicked()),
this, SLOT(fetchTag()));
connect(bpmDouble, SIGNAL(clicked()),
this, SLOT(slotBpmDouble()));
connect(bpmHalve, SIGNAL(clicked()),
this, SLOT(slotBpmHalve()));
connect(bpmTwoThirds, SIGNAL(clicked()),
this, SLOT(slotBpmTwoThirds()));
connect(bpmThreeFourth, SIGNAL(clicked()),
this, SLOT(slotBpmThreeFourth()));
connect(bpmClear, SIGNAL(clicked()),
this, SLOT(slotBpmClear()));
connect(bpmConst, SIGNAL(stateChanged(int)),
this, SLOT(slotBpmConstChanged(int)));
connect(spinBpm, SIGNAL(valueChanged(double)),
this, SLOT(slotSpinBpmValueChanged(double)));
connect(btnCueActivate, SIGNAL(clicked()),
this, SLOT(cueActivate()));
connect(btnCueDelete, SIGNAL(clicked()),
this, SLOT(cueDelete()));
connect(bpmTap, SIGNAL(pressed()),
m_pTapFilter.data(), SLOT(tap()));
connect(m_pTapFilter.data(), SIGNAL(tapped(double, int)),
this, SLOT(slotBpmTap(double, int)));
connect(btnReloadFromFile, SIGNAL(clicked()),
this, SLOT(reloadTrackMetadata()));
connect(btnOpenFileBrowser, SIGNAL(clicked()),
this, SLOT(slotOpenInFileBrowser()));
CoverArtCache* pCache = CoverArtCache::instance();
if (pCache != NULL) {
connect(pCache, SIGNAL(coverFound(const QObject*, const int, const CoverInfo&, QPixmap, bool)),
this, SLOT(slotCoverFound(const QObject*, const int, const CoverInfo&, QPixmap, bool)));
}