]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: cosmetic updates for image cache/satips
authorJaroslav Kysela <perex@perex.cz>
Mon, 14 Sep 2015 18:14:16 +0000 (20:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 14 Sep 2015 18:14:16 +0000 (20:14 +0200)
src/satip/server.c
src/webui/extjs.c
src/webui/static/app/config.js

index 0395ee6af5d5917aacc4a536efeda7224d9f0956..5e0e9b2f76a7457399405f0e1f8a7119f5db3af6 100644 (file)
@@ -559,24 +559,38 @@ const idclass_t satip_server_class = {
   .ic_event      = "satip_server",
   .ic_perm_def   = ACCESS_ADMIN,
   .ic_save       = satip_server_class_save,
+  .ic_groups     = (const property_group_t[]) {
+      {
+         .name   = N_("General"),
+         .number = 1,
+      },
+      {
+         .name   = N_("Exported Tuners"),
+         .number = 2,
+      },
+      {}
+  },
   .ic_properties = (const property_t[]){
     {
       .type   = PT_INT,
       .id     = "satip_rtsp",
       .name   = N_("RTSP Port (554 or 9983), 0 = disable"),
       .off    = offsetof(struct satip_server_conf, satip_rtsp),
+      .group  = 1,
     },
     {
       .type   = PT_INT,
       .id     = "satip_weight",
       .name   = N_("Subscription Weight"),
       .off    = offsetof(struct satip_server_conf, satip_weight),
+      .group  = 1,
     },
     {
       .type   = PT_INT,
       .id     = "satip_descramble",
       .name   = N_("Descramble Services (Limit Per Mux)"),
       .off    = offsetof(struct satip_server_conf, satip_descramble),
+      .group  = 1,
     },
     {
       .type   = PT_INT,
@@ -584,54 +598,63 @@ const idclass_t satip_server_class = {
       .name   = N_("Mux Handling"),
       .off    = offsetof(struct satip_server_conf, satip_muxcnf),
       .list   = satip_server_class_muxcfg_list,
+      .group  = 1,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbs",
-      .name   = N_("Exported DVB-S Tuners"),
+      .name   = N_("DVB-S"),
       .off    = offsetof(struct satip_server_conf, satip_dvbs),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbs2",
-      .name   = N_("Exported DVB-S2 Tuners"),
+      .name   = N_("DVB-S2"),
       .off    = offsetof(struct satip_server_conf, satip_dvbs2),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbt",
-      .name   = N_("Exported DVB-T Tuners"),
+      .name   = N_("DVB-T"),
       .off    = offsetof(struct satip_server_conf, satip_dvbt),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbt2",
-      .name   = N_("Exported DVB-T2 Tuners"),
+      .name   = N_("DVB-T2"),
       .off    = offsetof(struct satip_server_conf, satip_dvbt2),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbc",
-      .name   = N_("Exported DVB-C Tuners"),
+      .name   = N_("DVB-C"),
       .off    = offsetof(struct satip_server_conf, satip_dvbc),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbc2",
-      .name   = N_("Exported DVB-C2 Tuners"),
+      .name   = N_("DVB-C2"),
       .off    = offsetof(struct satip_server_conf, satip_dvbc2),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_atsc",
-      .name   = N_("Exported ATSC Tuners"),
+      .name   = N_("ATSC"),
       .off    = offsetof(struct satip_server_conf, satip_atsc),
+      .group  = 2,
     },
     {
       .type   = PT_INT,
       .id     = "satip_dvbc2",
-      .name   = N_("Exported DVB-Cable/AnnexB Tuners"),
+      .name   = N_("DVB-Cable/AnnexB"),
       .off    = offsetof(struct satip_server_conf, satip_dvbcb),
+      .group  = 2,
     },
     {}
   },
index d2d99e3fd0a9bf5e2483d0251ab83847f2932751..f81cf2a6480fcff5c934246ad9fe41aabf9c3ded 100644 (file)
@@ -580,7 +580,6 @@ extjs_start(void)
   http_path_add("/tv.html",          NULL, extjs_livetv,           ACCESS_WEB_INTERFACE);
   http_path_add("/capabilities",     NULL, extjs_capabilities,     ACCESS_WEB_INTERFACE);
   http_path_add("/epggrab",          NULL, extjs_epggrab,          ACCESS_WEB_INTERFACE);
-  http_path_add("/config",           NULL, extjs_config,           ACCESS_WEB_INTERFACE);
 #if ENABLE_TIMESHIFT
   http_path_add("/timeshift",        NULL, extjs_timeshift,        ACCESS_ADMIN);
 #endif
index 8250e533c184feb72b4503772c5f37658a4b5391..8d5c4a7f618673ca653392bd68bd9c02c705ce7e 100644 (file)
@@ -119,6 +119,8 @@ tvheadend.imgcacheconf = function(panel, index) {
         iconCls: 'imgcacheconf',
         tabIndex: index,
         comet: 'imagecache',
+        width: 550,
+        labelWidth: 200,
         tbar: [cleanButton, triggerButton],
         help: function() {
             new tvheadend.help(_('General Configuration'), 'config_general.html');
@@ -159,6 +161,8 @@ tvheadend.satipsrvconf = function(panel, index) {
         iconCls: 'satipsrvconf',
         tabIndex: index,
         comet: 'satip_server',
+        width: 600,
+        labelWidth: 250,
         tbar: [discoverButton],
         help: function() {
             new tvheadend.help(_('SAT>IP Server Configuration'), 'config_satips.html');