タイニー番組ナビゲータ本体
修订版 | bc2ab710d52e4fa29a33755e89f38554d30dbdc4 (tree) |
---|---|
时间 | 2020-01-12 14:31:12 |
作者 | Masahiko Kimura <mkimura@u01....> |
Commiter | Masahiko Kimura |
Ver.1.12.10 (2020/01/12)
@@ -1363,9 +1363,16 @@ public abstract class AbsReserveListView extends JPanel implements TickTimerList | ||
1363 | 1363 | c.encoder + " \0" + c.hide_encodercolor); |
1364 | 1364 | |
1365 | 1365 | String detail = getReserveDetail(c); |
1366 | + String pdetail = getProgramDetail(c); | |
1367 | + | |
1366 | 1368 | if (detail == null) |
1367 | - detail = getProgramDetail(c); | |
1368 | - jTextPane_detail.setText(detail != null ? detail : ""); | |
1369 | + detail = ""; | |
1370 | + else if (!detail.isEmpty()) | |
1371 | + detail += "\r\n"; | |
1372 | + if (pdetail != null) | |
1373 | + detail += pdetail; | |
1374 | + | |
1375 | + jTextPane_detail.setText(detail); | |
1369 | 1376 | } |
1370 | 1377 | else { |
1371 | 1378 | jTextPane_detail.setLabel("","","",""); |
@@ -1383,15 +1390,8 @@ public abstract class AbsReserveListView extends JPanel implements TickTimerList | ||
1383 | 1390 | return null; |
1384 | 1391 | |
1385 | 1392 | ReserveList res = recs.get(0).getReserveList(c.hide_rsvid); |
1386 | - if (res == null) | |
1387 | - return null; | |
1388 | - | |
1389 | - String detail = res.getDetail(); | |
1390 | - | |
1391 | - if (detail == null || detail.isEmpty()) | |
1392 | - return null; | |
1393 | 1393 | |
1394 | - return detail; | |
1394 | + return res != null ? res.getDetail() : null; | |
1395 | 1395 | } |
1396 | 1396 | |
1397 | 1397 | /* |
@@ -1402,7 +1402,7 @@ public abstract class AbsReserveListView extends JPanel implements TickTimerList | ||
1402 | 1402 | if (pdl == null) |
1403 | 1403 | return null; |
1404 | 1404 | |
1405 | - return "【番組情報】\r\n" + pdl.prefix_mark + pdl.title + pdl.postfix_mark + "\r\n" + pdl.detail; | |
1405 | + return "【番組情報】\r\n" + pdl.accurateDate + " " + pdl.start + "~" + pdl.end + " " + pdl.prefix_mark + pdl.newlast_mark + pdl.title + pdl.postfix_mark + "\r\n" + pdl.detail; | |
1406 | 1406 | } |
1407 | 1407 | |
1408 | 1408 | // 未来分の番組情報から該当番組の情報を取得する |
@@ -5,7 +5,7 @@ import java.util.regex.Pattern; | ||
5 | 5 | |
6 | 6 | |
7 | 7 | public class VersionInfo { |
8 | - private static final String Version = "タイニー番組ナビゲータ for DBR-T2007 3.22.18β+1.12.9"; | |
8 | + private static final String Version = "タイニー番組ナビゲータ for DBR-T2007 3.22.18β+1.12.10"; | |
9 | 9 | |
10 | 10 | private static final String OSname = System.getProperty("os.name"); |
11 | 11 | private static final String OSvers = System.getProperty("os.version"); |
@@ -2392,8 +2392,6 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2392 | 2392 | } |
2393 | 2393 | } |
2394 | 2394 | } |
2395 | - pop.addSeparator(); | |
2396 | - | |
2397 | 2395 | // 予約実行ON・OFF |
2398 | 2396 | if ( tvd.type != ProgType.PASSED ) |
2399 | 2397 | { |
@@ -2407,6 +2405,9 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2407 | 2405 | rsvList = overlapRsvList; |
2408 | 2406 | } |
2409 | 2407 | |
2408 | + if (rsvList.size() > 0) | |
2409 | + pop.addSeparator(); | |
2410 | + | |
2410 | 2411 | for ( LikeReserveItem rsvItem : rsvList ) { |
2411 | 2412 | |
2412 | 2413 | final boolean fexec = rsvItem.getRsv().getExec(); |
@@ -2418,13 +2419,9 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2418 | 2419 | |
2419 | 2420 | pop.add(getExecOnOffMenuItem(fexec,start,title,chnam,rsvId,recId,n)); |
2420 | 2421 | } |
2421 | - | |
2422 | - pop.addSeparator(); | |
2423 | 2422 | } |
2424 | 2423 | } |
2425 | 2424 | |
2426 | - pop.addSeparator(); | |
2427 | - | |
2428 | 2425 | // 削除する |
2429 | 2426 | if ( tvd.type != ProgType.PASSED ) // 過去ログは処理対象外です |
2430 | 2427 | { |
@@ -2438,6 +2435,9 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2438 | 2435 | rsvList = overlapRsvList; |
2439 | 2436 | } |
2440 | 2437 | |
2438 | + if (rsvList.size() > 0) | |
2439 | + pop.addSeparator(); | |
2440 | + | |
2441 | 2441 | for ( LikeReserveItem rsvItem : rsvList ) { |
2442 | 2442 | |
2443 | 2443 | final String start = rsvItem.getRsv().getAhh()+":"+rsvItem.getRsv().getAmm(); |
@@ -2448,17 +2448,14 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2448 | 2448 | |
2449 | 2449 | pop.add(getRemoveRsvMenuItem(start, title,chnam,rsvId,recId,n)); |
2450 | 2450 | } |
2451 | - | |
2452 | - pop.addSeparator(); | |
2453 | 2451 | } |
2454 | 2452 | } |
2455 | - else { | |
2456 | - pop.addSeparator(); | |
2457 | - pop.addSeparator(); | |
2458 | - } | |
2459 | 2453 | |
2460 | 2454 | // ジャンプする |
2461 | 2455 | { |
2456 | + if (pop.getComponentCount() > 0) | |
2457 | + pop.addSeparator(); | |
2458 | + | |
2462 | 2459 | if ( mainWindow.isTabSelected(MWinTab.LISTED) ) { |
2463 | 2460 | pop.add(getJumpMenuItem(tvd.title,tvd.center,tvd.accurateDate+" "+tvd.start)); |
2464 | 2461 | } |
@@ -2470,10 +2467,10 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2470 | 2467 | } |
2471 | 2468 | } |
2472 | 2469 | |
2473 | - pop.addSeparator(); | |
2474 | - | |
2475 | 2470 | // 番組追跡へ追加する |
2476 | 2471 | { |
2472 | + pop.addSeparator(); | |
2473 | + | |
2477 | 2474 | final String label = TraceProgram.getNewLabel(tvd.title, tvd.center); |
2478 | 2475 | JMenuItem menuItem = new JMenuItem("番組追跡への追加【"+label+"】"); |
2479 | 2476 | menuItem.addActionListener(new ActionListener() { |
@@ -2810,9 +2807,10 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2810 | 2807 | pop.add(menuItem); |
2811 | 2808 | } |
2812 | 2809 | |
2813 | - pop.addSeparator(); | |
2814 | 2810 | |
2815 | 2811 | if ( mainWindow.isTabSelected(MWinTab.LISTED) ) { |
2812 | + pop.addSeparator(); | |
2813 | + | |
2816 | 2814 | { |
2817 | 2815 | JMenuItem menuItem = new JMenuItem("番組情報をCSVでコピー"); |
2818 | 2816 | menuItem.addActionListener(new ActionListener() { |
@@ -2907,11 +2905,12 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2907 | 2905 | pop.add(menuItem); |
2908 | 2906 | } |
2909 | 2907 | |
2910 | - pop.addSeparator(); | |
2911 | 2908 | |
2912 | 2909 | // 視聴する |
2913 | 2910 | if ( tvd.type == ProgType.PROG && tvd.subtype != ProgSubtype.RADIO) // ラジオは処理対象外です |
2914 | 2911 | { |
2912 | + boolean hassep = false; | |
2913 | + | |
2915 | 2914 | for (HDDRecorder recorder : recorders ) { |
2916 | 2915 | |
2917 | 2916 | if (recorder.ChangeChannel(null) == false) { |
@@ -2940,6 +2939,10 @@ public class Viewer extends JFrame implements ChangeListener,TickTimerListener,H | ||
2940 | 2939 | |
2941 | 2940 | menuItem.setEnabled(recorder.getUseChChange()); |
2942 | 2941 | |
2942 | + if (!hassep){ | |
2943 | + pop.addSeparator(); | |
2944 | + hassep = true; | |
2945 | + } | |
2943 | 2946 | pop.add(menuItem); |
2944 | 2947 | } |
2945 | 2948 | } |