From a7c30b2399edd80e32cfd3356b483717107991a1 Mon Sep 17 00:00:00 2001 From: Masayuki Satoh Date: Thu, 25 Sep 2014 20:34:28 +0900 Subject: [PATCH] Ver0.26 --- Gefu.pro | 2 +- README.md | 7 +++++++ ReadMe.txt | 13 ++++++++++--- hexview.cpp | 3 ++- installer-full.nsi | 4 ++-- installer.nsi | 4 ++-- mainwindow.cpp | 23 +++++++++++------------ textview.cpp | 1 + version.h | 2 +- 9 files changed, 37 insertions(+), 22 deletions(-) diff --git a/Gefu.pro b/Gefu.pro index 8ded24b..702bd0d 100644 --- a/Gefu.pro +++ b/Gefu.pro @@ -11,7 +11,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Gefu TEMPLATE = app -VERSION = 0.2.5 +VERSION = 0.2.6 SOURCES += main.cpp\ mainwindow.cpp \ diff --git a/README.md b/README.md index 349b5e6..f9b8850 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,13 @@ Gefu Gefu is an Experimental File Utility. +#### 2014/09/25 Ver0.26 + * 内蔵テキストビューアのカーソルを変更しました。 + * 内蔵バイナリビューアのカーソルを変更しました。 + * 不具合修正 + * 単画面モードに切り替わらなかったのを修正。 + * サムネイルモードで左右矢印キーが効かなかったのを修正。 + #### 2014/09/24 Ver0.25 * 内蔵ビューアでのファイル読み込みを別スレッド化しました。 * 内蔵バイナリビューアを実装しました。 diff --git a/ReadMe.txt b/ReadMe.txt index a783c83..645371b 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -1,8 +1,8 @@ =============================================================================== Gefu(げふぅ) - Gefu is an Experimental File Utility - - Version 0.25 + Version 0.26 =============================================================================== - 2014/09/24 @miyabi_satoh + 2014/09/25 @miyabi_satoh ◇ 概要 ◇ @@ -102,6 +102,13 @@ Twitter: https://twitter.com/miyabi_satoh ◇ 履歴 ◇ +#### 2014/09/25 Ver0.26 + * 内蔵テキストビューアのカーソルを変更しました。 + * 内蔵バイナリビューアのカーソルを変更しました。 + * 不具合修正 + * 単画面モードに切り替わらなかったのを修正。 + * サムネイルモードで左右矢印キーが効かなかったのを修正。 + #### 2014/09/24 Ver0.25 * 内蔵ビューアでのファイル読み込みを別スレッド化しました。 * 内蔵バイナリビューアを実装しました。 @@ -117,7 +124,7 @@ * フォルダビューのコンテキストメニューを変更しました。 * フィルタラベルもフォルダビューと同じ文字色・背景色に変更しました。 * サムネイル生成スレッドの優先度を調整しました。 - * 不具合修正 + * 不具合修正 * 単画面モードで検索ボックスが表示されなかったのを修正。 * メニューの活性・非活性の整合性を修正。 * サムネイルモードで拡大が行われていたのを修正。 diff --git a/hexview.cpp b/hexview.cpp index a4a3b67..2f35790 100644 --- a/hexview.cpp +++ b/hexview.cpp @@ -23,8 +23,9 @@ HexView::HexView(QScrollArea *parent) : QWidget(parent) { m_scrollArea = parent; - this->setObjectName("hexView"); m_scrollArea->setWidget(this); + setObjectName("hexView"); + setCursor(Qt::IBeamCursor); resetSelection(0); } diff --git a/installer-full.nsi b/installer-full.nsi index 1a5ac79..462547d 100644 --- a/installer-full.nsi +++ b/installer-full.nsi @@ -2,7 +2,7 @@ ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Gefu" -!define PRODUCT_VERSION "0.25" +!define PRODUCT_VERSION "0.26" !define PRODUCT_PUBLISHER "@miyabi_satoh" !define PRODUCT_WEB_SITE "http://gefu.sourceforge.jp/" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Gefu.exe" @@ -51,7 +51,7 @@ var ICONS_GROUP ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "Gefu025_full_setup.exe" +OutFile "Gefu026_full_setup.exe" InstallDir "$PROGRAMFILES\Gefu" InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" ShowInstDetails show diff --git a/installer.nsi b/installer.nsi index eb20c9e..d53465a 100644 --- a/installer.nsi +++ b/installer.nsi @@ -2,7 +2,7 @@ ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Gefu" -!define PRODUCT_VERSION "0.25" +!define PRODUCT_VERSION "0.26" !define PRODUCT_PUBLISHER "@miyabi_satoh" !define PRODUCT_WEB_SITE "http://gefu.sourceforge.jp/" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Gefu.exe" @@ -51,7 +51,7 @@ var ICONS_GROUP ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "Gefu025_Setup.exe" +OutFile "Gefu026_Setup.exe" InstallDir "$PROGRAMFILES\Gefu" InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" ShowInstDetails show diff --git a/mainwindow.cpp b/mainwindow.cpp index 7854fb9..85a82b1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1880,14 +1880,14 @@ void MainWindow::setViewMode(Mode mode) break; case ModeFull: - if (m_viewMode == ModeBasic) { + if (m_prevMode == ModeBasic) { ui->FPanel->setModel(activeModel()); - ui->splitter->setVisible(false); - ui->FPanel->setVisible(true); ui->FPanel->folderPanel()->setItemView(focusItemView()->objectName()); ui->FPanel->folderPanel()->itemView()->setCurrentIndex( focusItemView()->currentIndex()); } + ui->splitter->setVisible(false); + ui->FPanel->setVisible(true); ui->FPanel->setViewItem(); newFocusWidget = activePanel()->folderPanel()->itemView(); break; @@ -1999,6 +1999,10 @@ void MainWindow::updateActions() ui->action_KeyHomeOther->setEnabled(false); ui->action_KeyUpOther->setEnabled(false); } + + if (w->objectName() == "thumbnailView") { + isImageView = true; + } } else if (w->objectName() == "searchBox"){ setEnabledAllActions(false); @@ -2070,10 +2074,14 @@ void MainWindow::updateActions() if (isImageView) { ui->action_ScaleDown->setText(tr("縮小")); ui->action_ScaleUp->setText(tr("拡大")); + ui->action_KeyLeft->setEnabled(false); + ui->action_KeyRight->setEnabled(false); } else { ui->action_ScaleDown->setText(tr("文字を小さく")); ui->action_ScaleUp->setText(tr("文字を大きく")); + ui->action_KeyLeft->setEnabled(isView); + ui->action_KeyRight->setEnabled(isView); } if (isView) { reconnectAction(ui->action_ScaleDown, SIGNAL(triggered()), w, SLOT(onScaleDown())); @@ -2085,15 +2093,6 @@ void MainWindow::updateActions() } ui->toggle_FullMode->setEnabled(m_viewMode == ModeBasic || m_viewMode == ModeFull); - - if (isImageView) { - ui->action_KeyLeft->setEnabled(false); - ui->action_KeyRight->setEnabled(false); - } - else { - ui->action_KeyLeft->setEnabled(isView); - ui->action_KeyRight->setEnabled(isView); - } } /////////////////////////////////////////////////////////////////////////////// diff --git a/textview.cpp b/textview.cpp index 703cc46..9767632 100644 --- a/textview.cpp +++ b/textview.cpp @@ -25,6 +25,7 @@ TextView::TextView(QScrollArea *parent) : m_scrollArea = parent; m_scrollArea->setWidget(this); setObjectName("textView"); + setCursor(Qt::IBeamCursor); resetSelection(0); } diff --git a/version.h b/version.h index f977b6b..5cd398d 100644 --- a/version.h +++ b/version.h @@ -1,6 +1,6 @@ #ifndef VERSION_H #define VERSION_H -#define VERSION_VALUE 0.25 +#define VERSION_VALUE 0.26 #endif // VERSION_H -- 2.11.0