applicationId "net.osdn.gokigen.a01d"
minSdkVersion 14
targetSdkVersion 29
- versionCode 10600
- versionName "1.6.0"
+ versionCode 10700
+ versionName "1.7.0"
}
buildTypes {
release {
import net.osdn.gokigen.a01d.preference.IPreferencePropertyAccessor;
import net.osdn.gokigen.a01d.preference.canon.CanonPreferenceFragment;
import net.osdn.gokigen.a01d.preference.fujix.FujiXPreferenceFragment;
+import net.osdn.gokigen.a01d.preference.nikon.NikonPreferenceFragment;
import net.osdn.gokigen.a01d.preference.olympus.PreferenceFragment;
import net.osdn.gokigen.a01d.preference.panasonic.PanasonicPreferenceFragment;
import net.osdn.gokigen.a01d.preference.olympuspen.OlympusPreferenceFragment;
e.printStackTrace();
}
}
+ else if (method == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ try
+ {
+ // NIKON の場合は、PTPIPコマンド送信ダイアログを表示する
+ PtpIpCameraCommandSendDialog.newInstance(interfaceProvider.getCanonInterface(), true).show(getSupportFragmentManager(), "ptpipSendCommandDialog");
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
else
{
// OPC カメラの場合...
preferenceFragment = ThetaPreferenceFragment.newInstance(this, this);
} else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON) {
preferenceFragment = CanonPreferenceFragment.newInstance(this, this);
+ } else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON) {
+ preferenceFragment = NikonPreferenceFragment.newInstance(this, this);
} else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
preferenceFragment = PreferenceFragment.newInstance(this, interfaceProvider, this);
{
connection = interfaceProvider.getCanonInterface().getCameraConnection();
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ connection = interfaceProvider.getNikonInterface().getCameraConnection();
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
connection = interfaceProvider.getOlympusInterface().getOlyCameraConnection();
{
ret = ICameraConnection.CameraConnectionMethod.CANON;
}
+ else if (connectionMethod.contains("NIKON"))
+ {
+ ret = ICameraConnection.CameraConnectionMethod.NIKON;
+ }
}
catch (Exception e)
{
OLYMPUS,
THETA,
CANON,
+ NIKON,
}
enum CameraConnectionStatus
this.cameraConnection = interfaceProvider.getCanonInterface().getCameraConnection();
this.zoomLensControl = interfaceProvider.getCanonInterface().getZoomLensControl();
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ this.focusingControl = interfaceProvider.getNikonInterface().getFocusingControl();
+ this.captureControl = interfaceProvider.getNikonInterface().getCaptureControl();
+ this.propertyProvider = interfaceProvider.getOlympusInterface().getCameraPropertyProvider(); // 要変更
+ this.cameraInformation = interfaceProvider.getNikonInterface().getCameraInformation();
+ this.cameraConnection = interfaceProvider.getNikonInterface().getCameraConnection();
+ this.zoomLensControl = interfaceProvider.getNikonInterface().getZoomLensControl();
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
this.focusingControl = interfaceProvider.getOlympusInterface().getFocusingControl();
propertyButton.setOnClickListener(onClickTouchListener);
}
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ if (favoriteButton != null)
+ {
+ favoriteButton.setVisibility(View.VISIBLE);
+ favoriteButton.setOnClickListener(onClickTouchListener);
+ }
+ if (manualFocus != null)
+ {
+ manualFocus.setVisibility(View.INVISIBLE);
+ }
+ if (changeLiveViewScale != null)
+ {
+ changeLiveViewScale.setVisibility(View.INVISIBLE);
+ }
+ if (focusIndicator != null)
+ {
+ focusIndicator.setVisibility(View.VISIBLE);
+ }
+ if (propertyButton != null)
+ {
+ propertyButton.setOnClickListener(onClickTouchListener);
+ }
+ }
}
if (manualFocus != null)
{
{
interfaceInjector = interfaceProvider.getCanonInterface().getDisplayInjector();
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ interfaceInjector = interfaceProvider.getNikonInterface().getDisplayInjector();
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
interfaceInjector = interfaceProvider.getOlympusInterface().getDisplayInjector();
this.zoomLensControl = interfaceProvider.getCanonInterface().getZoomLensControl();
this.cameraInformation = interfaceProvider.getCanonInterface().getCameraInformation();
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ this.liveViewControl = interfaceProvider.getNikonInterface().getLiveViewControl();
+ this.zoomLensControl = interfaceProvider.getNikonInterface().getZoomLensControl();
+ this.cameraInformation = interfaceProvider.getNikonInterface().getCameraInformation();
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
this.liveViewControl = interfaceProvider.getOlympusInterface().getLiveViewControl();
{
lvListener = interfaceProvider.getCanonInterface().getLiveViewListener();
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ lvListener = interfaceProvider.getNikonInterface().getLiveViewListener();
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
{
interfaceProvider.getOlympusLiveViewListener().setOlympusLiveViewListener(liveViewListener);
<item >Fuji X Series</item>
<item >Panasonic</item>
<item >Canon</item>
+ <item >NIKON</item>
</string-array>
<string-array name="connection_method_value">
<item >FUJI_X</item>
<item >PANASONIC</item>
<item >CANON</item>
+ <item >NIKON</item>
</string-array>
<item >Fuji X Series</item>
<item >Panasonic</item>
<item >Canon</item>
+ <item >NIKON</item>
</string-array>
<string-array name="connection_method_value">
<item >FUJI_X</item>
<item >PANASONIC</item>
<item >CANON</item>
+ <item >NIKON</item>
</string-array>
<string-array name="gr2_display_mode">