Skip to content

Commit

Permalink
Minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
excln committed Apr 11, 2017
1 parent c9be366 commit 86e92e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/ChannelFindTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ ChannelFindTools::ChannelFindTools(const QString &objectName, const QString &win

actionChannelFindFilterActive = new QAction(tr("Active Channels Only"), this);
actionChannelFindFilterActive->setIcon(SymbolIconManager::GetIcon(SymbolIconManager::Icon::SearchSound));
actionChannelFindFilterActive->setShortcut(Qt::ControlModifier + Qt::Key_B);
actionChannelFindFilterActive->setShortcut(Qt::ControlModifier + Qt::ShiftModifier + Qt::Key_D);
SharedUIHelper::RegisterGlobalShortcut(actionChannelFindFilterActive);
actionChannelFindFilterActive->setCheckable(true);

actionChannelFindHideOthers = new QAction(tr("Show Found Channels Only"), this);
actionChannelFindHideOthers = new QAction(tr("Show Hit Channels Only"), this);
actionChannelFindHideOthers->setIcon(SymbolIconManager::GetIcon(SymbolIconManager::Icon::SearchHighlight));
actionChannelFindHideOthers->setShortcut(Qt::ControlModifier + Qt::Key_H);
actionChannelFindHideOthers->setShortcut(Qt::ControlModifier + Qt::ShiftModifier + Qt::Key_F);
SharedUIHelper::RegisterGlobalShortcut(actionChannelFindHideOthers);
actionChannelFindHideOthers->setCheckable(true);

Expand Down Expand Up @@ -79,6 +79,7 @@ ChannelFindTools::ChannelFindTools(const QString &objectName, const QString &win
connect(keyword, SIGNAL(textChanged(QString)), this, SLOT(UpdateConditions()));
connect(actionChannelFindFilterActive, SIGNAL(triggered(bool)), this, SLOT(UpdateConditions()));
connect(actionChannelFindHideOthers, SIGNAL(triggered(bool)), this, SLOT(UpdateConditions()));
connect(actionChannelFindHideOthers, SIGNAL(triggered(bool)), this, SLOT(Activate()));

connect(keyword, SIGNAL(textChanged(QString)), mainWindow, SLOT(ChannelFindKeywordChanged(QString)));
connect(this, SIGNAL(FindNext(QString)), mainWindow, SLOT(ChannelFindNext(QString)));
Expand Down Expand Up @@ -111,6 +112,7 @@ void ChannelFindTools::ReplaceSequenceView(SequenceView *newSView)

void ChannelFindTools::hideEvent(QHideEvent *event)
{
actionChannelFindHideOthers->setChecked(false);
UpdateConditions();
}

Expand Down
1 change: 1 addition & 0 deletions src/ExternalViewerTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void ExternalViewerTools::Configure()
if (dialog->exec() == QDialog::Accepted){
viewer->SetConfig(dialog->GetConfig(), dialog->GetIndex());
}
delete dialog;
}

void ExternalViewerTools::SetPlayable(bool playable)
Expand Down
Binary file modified src/i18n/ja.qm
Binary file not shown.
6 changes: 5 additions & 1 deletion src/i18n/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
</message>
<message>
<location filename="../ChannelFindTools.cpp" line="38"/>
<source>Show Hit Channels Only</source>
<translation>検索結果のみ表示</translation>
</message>
<message>
<source>Show Found Channels Only</source>
<translation>検索結果のみ表示</translation>
</message>
Expand Down Expand Up @@ -1347,7 +1351,7 @@ All files (*.*)</source>
<message>
<location filename="../Preferences.cpp" line="137"/>
<source>UI Font:</source>
<translation>UIフォント</translation>
<translation>UIフォント:</translation>
</message>
</context>
<context>
Expand Down

0 comments on commit 86e92e2

Please sign in to comment.