import saccubus.ConvertStopFlag.State;
import saccubus.converter.profile.FfmpegOption;
import saccubus.converter.profile.NgSetting;
+import saccubus.converter.profile.Profile;
import saccubus.net.TextProgressListener;
import saccubus.properties.BasicSetting;
import saccubus.properties.ConvertSetting;
private static final long serialVersionUID = 2564486741331062989L;
public static final String PRODUCT_NAME = "いんきゅばす";
- public static final String VERSION = "1.7.2 (NicoBrowser" + Main.VERSION + ")";
+ public static final String VERSION = "1.7.3 (NicoBrowser" + Main.VERSION + ")";
public static final Image WinIcon = Toolkit.getDefaultToolkit().createImage(saccubus.MainFrame.class.getResource(
"icon32.png"));
// TODO GUIが無いためフィールドに保持.
contentPane.setLayout(borderLayout1);
setSize(new Dimension(400, 450));
setTitle(PRODUCT_NAME + " " + VERSION);
+ System.out.println(getTitle());
this.addWindowListener(new MainFrame_this_windowAdapter(this));
statusBar.setText(" ");
jMenuFile.setText("ファイル");
private JPanel FFmpegOptionComboBoxPanel = null;
public void DoButton_actionPerformed(ActionEvent e) {
+ System.out.println("doButton: " + doButton.getText());
+ System.out.println("Converter: " + (Converter == null ? "null" : Converter.isConverted()));
if (Converter == null || Converter.isConverted()) {
try {
executeConvert();
} else { /* 開始しているので、ストップする。 */
final ConvertStopFlag flag = Converter.getStopFlag();
if (!flag.needStop()) { /* まだストップしていない。 */
+ System.out.println("request stop");
flag.requestStop();
}
}
String url;
// NicoBrowserファイルを利用する場合は、ファイル名からビデオIDを特定.
+ System.out.println("kind: " + videoSaveInfoPanel.getVideoUseNiBrButton().isSelected());
if (videoSaveInfoPanel.getVideoUseNiBrButton().isSelected()) {
try {
String fileName = videoSaveInfoPanel.getNibrFileField().getText();
}
} else {
url = videoIdField.getText();
+ System.out.println("VIDEO ID: " + url);
}
TextProgressListener sl = new TextProgressListener() {
}
};
- Converter = new Converter(url, wayBackField.getText(), getSetting().toProfile(), sl,
+ final Profile profile = getSetting().toProfile();
+ System.out.println(profile);
+
+ Converter = new Converter(url, wayBackField.getText(), profile, sl,
new ConvertStopFlag(scl));
doButton.setText(DoButtonStopString);
new Thread(Converter).start();
-
+ System.out.println("Thread invoked");
}
/* FFmpegへのパス */
private MainFrame adaptee;
MainFrame_DoButton_actionAdapter(MainFrame adaptee) {
+ System.out.println("MainFrame_DoButton_actionAdapter コンストラクタ");
this.adaptee = adaptee;
}