2023-04-01 19:04:55 +00:00
|
|
|
import 'package:lightmeter/data/models/film.dart';
|
2023-03-30 19:24:18 +00:00
|
|
|
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
2022-12-04 19:00:43 +00:00
|
|
|
|
2022-10-29 18:02:45 +00:00
|
|
|
abstract class MeteringEvent {
|
|
|
|
const MeteringEvent();
|
|
|
|
}
|
|
|
|
|
2022-12-11 14:04:08 +00:00
|
|
|
class StopTypeChangedEvent extends MeteringEvent {
|
|
|
|
final StopType stopType;
|
|
|
|
|
|
|
|
const StopTypeChangedEvent(this.stopType);
|
|
|
|
}
|
|
|
|
|
2023-03-30 19:24:18 +00:00
|
|
|
class EquipmentProfileChangedEvent extends MeteringEvent {
|
|
|
|
final EquipmentProfileData equipmentProfileData;
|
|
|
|
|
|
|
|
const EquipmentProfileChangedEvent(this.equipmentProfileData);
|
|
|
|
}
|
|
|
|
|
2023-04-01 19:04:55 +00:00
|
|
|
class FilmChangedEvent extends MeteringEvent {
|
|
|
|
final Film data;
|
|
|
|
|
|
|
|
const FilmChangedEvent(this.data);
|
|
|
|
}
|
|
|
|
|
2022-12-04 19:00:43 +00:00
|
|
|
class IsoChangedEvent extends MeteringEvent {
|
|
|
|
final IsoValue isoValue;
|
|
|
|
|
|
|
|
const IsoChangedEvent(this.isoValue);
|
|
|
|
}
|
|
|
|
|
2022-12-04 19:12:52 +00:00
|
|
|
class NdChangedEvent extends MeteringEvent {
|
|
|
|
final NdValue ndValue;
|
|
|
|
|
|
|
|
const NdChangedEvent(this.ndValue);
|
|
|
|
}
|
|
|
|
|
2022-10-29 18:02:45 +00:00
|
|
|
class MeasureEvent extends MeteringEvent {
|
|
|
|
const MeasureEvent();
|
|
|
|
}
|
2022-12-14 17:33:38 +00:00
|
|
|
|
|
|
|
class MeasuredEvent extends MeteringEvent {
|
|
|
|
final double ev100;
|
|
|
|
|
|
|
|
const MeasuredEvent(this.ev100);
|
|
|
|
}
|
2023-05-05 21:08:20 +00:00
|
|
|
|
|
|
|
class MeasureErrorEvent extends MeteringEvent {
|
|
|
|
const MeasureErrorEvent();
|
|
|
|
}
|