Rework to avoid using preferences object to retrieve options
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.github.gtache.autosubtitle.gui.parameters;
|
||||
|
||||
import com.github.gtache.autosubtitle.subtitle.Font;
|
||||
import com.github.gtache.autosubtitle.subtitle.OutputFormat;
|
||||
import com.github.gtache.autosubtitle.subtitle.extractor.ExtractionModel;
|
||||
|
||||
@@ -65,6 +66,11 @@ public interface ParametersModel {
|
||||
*/
|
||||
void setFontSize(int fontSize);
|
||||
|
||||
/**
|
||||
* @return The current font
|
||||
*/
|
||||
Font font();
|
||||
|
||||
/**
|
||||
* @return The current max line length setting
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.github.gtache.autosubtitle.gui.subtitles;
|
||||
|
||||
import com.github.gtache.autosubtitle.Language;
|
||||
import com.github.gtache.autosubtitle.VideoInfo;
|
||||
import com.github.gtache.autosubtitle.subtitle.Subtitle;
|
||||
import com.github.gtache.autosubtitle.subtitle.SubtitleCollection;
|
||||
|
||||
@@ -33,18 +32,6 @@ public interface SubtitlesModel<T extends Subtitle, U extends SubtitleCollection
|
||||
*/
|
||||
void setVideoLanguage(Language language);
|
||||
|
||||
/**
|
||||
* @return The video info
|
||||
*/
|
||||
VideoInfo videoInfo();
|
||||
|
||||
/**
|
||||
* Sets the video info
|
||||
*
|
||||
* @param videoInfo The new video info
|
||||
*/
|
||||
void setVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* @return The list of available translations languages
|
||||
*/
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package com.github.gtache.autosubtitle.gui.work;
|
||||
|
||||
import com.github.gtache.autosubtitle.Video;
|
||||
import com.github.gtache.autosubtitle.subtitle.ExportOptions;
|
||||
import com.github.gtache.autosubtitle.subtitle.SubtitleCollection;
|
||||
import com.github.gtache.autosubtitle.subtitle.extractor.ExtractionModel;
|
||||
import com.github.gtache.autosubtitle.subtitle.extractor.ExtractOptions;
|
||||
|
||||
/**
|
||||
* Model for the main view
|
||||
@@ -19,16 +20,6 @@ public interface WorkModel {
|
||||
*/
|
||||
void setVideo(Video video);
|
||||
|
||||
/**
|
||||
* @return The current extraction model
|
||||
*/
|
||||
ExtractionModel extractionModel();
|
||||
|
||||
/**
|
||||
* @param model The new extraction model
|
||||
*/
|
||||
void setExtractionModel(ExtractionModel model);
|
||||
|
||||
/**
|
||||
* @return The current status
|
||||
*/
|
||||
@@ -80,4 +71,28 @@ public interface WorkModel {
|
||||
* @param collection The last extracted collection
|
||||
*/
|
||||
void setExtractedCollection(SubtitleCollection<?> collection);
|
||||
|
||||
/**
|
||||
* @return The current export options
|
||||
*/
|
||||
ExportOptions exportOptions();
|
||||
|
||||
/**
|
||||
* Sets the export options
|
||||
*
|
||||
* @param options The options
|
||||
*/
|
||||
void setExportOptions(ExportOptions options);
|
||||
|
||||
/**
|
||||
* @return The current extract options
|
||||
*/
|
||||
ExtractOptions extractOptions();
|
||||
|
||||
/**
|
||||
* Sets the extract options
|
||||
*
|
||||
* @param options The options
|
||||
*/
|
||||
void setExtractOptions(ExtractOptions options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user