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
|
|
|
|
2023-06-20 06:43:49 +00:00
|
|
|
sealed class MeteringEvent {
|
2022-10-29 18:02:45 +00:00
|
|
|
const MeteringEvent();
|
|
|
|
}
|
|
|
|
|
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 {
|
2023-06-20 06:43:49 +00:00
|
|
|
final Film film;
|
2023-04-01 19:04:55 +00:00
|
|
|
|
2023-06-20 06:43:49 +00:00
|
|
|
const FilmChangedEvent(this.film);
|
2023-04-01 19:04:55 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2023-06-20 06:43:49 +00:00
|
|
|
final bool isMetering;
|
2022-12-14 17:33:38 +00:00
|
|
|
|
2023-06-20 06:43:49 +00:00
|
|
|
const MeasuredEvent(this.ev100, {required this.isMetering});
|
2022-12-14 17:33:38 +00:00
|
|
|
}
|
2023-05-16 09:47:53 +00:00
|
|
|
|
|
|
|
class MeasureErrorEvent extends MeteringEvent {
|
2023-06-20 06:43:49 +00:00
|
|
|
final bool isMetering;
|
|
|
|
|
|
|
|
const MeasureErrorEvent({required this.isMetering});
|
2023-05-16 09:47:53 +00:00
|
|
|
}
|
2023-07-06 15:43:57 +00:00
|
|
|
|
|
|
|
class SettingsOpenedEvent extends MeteringEvent {
|
|
|
|
const SettingsOpenedEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
class SettingsClosedEvent extends MeteringEvent {
|
|
|
|
const SettingsClosedEvent();
|
|
|
|
}
|