[interchange-cvs] interchange - heins modified 4 files
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Feb 13 10:01:01 EST 2004
User: heins
Date: 2004-02-13 15:01:01 GMT
Modified: lib/Vend/Table Editor.pm
Modified: dist/lib/UI/pages/include component_editor page_editor
Modified: template_editor
Log:
* Add option "top-buttons-rows" to set the number of rows where
top buttons will be triggered. Use said options in appropriate
pages.
Revision Changes Path
1.51 +5 -4 interchange/lib/Vend/Table/Editor.pm
rev 1.51, prev_rev 1.50
Index: Editor.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/Editor.pm,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- Editor.pm 6 Feb 2004 17:12:43 -0000 1.50
+++ Editor.pm 13 Feb 2004 15:01:00 -0000 1.51
@@ -1,6 +1,6 @@
# Vend::Table::Editor - Swiss-army-knife table editor for Interchange
#
-# $Id: Editor.pm,v 1.50 2004/02/06 17:12:43 racke Exp $
+# $Id: Editor.pm,v 1.51 2004/02/13 15:01:00 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
package Vend::Table::Editor;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.50 $, 10);
+$VERSION = substr(q$Revision: 1.51 $, 10);
use Vend::Util;
use Vend::Interpolate;
@@ -2403,11 +2403,12 @@
EOF
}
+ $opt->{top_buttons_rows} = 5 unless defined $opt->{top_buttons_rows};
+
#### Extra buttons
my $extra_ok = $blob_widget
|| $opt->{output_map}
- || $linecount > 4
- || $opt->{notable}
+ || $linecount >= $opt->{top_buttons_rows}
|| defined $opt->{include_form}
|| $mlabel;
if ($extra_ok and ! $opt->{no_top} and ! $opt->{nosave}) {
1.6 +1 -0 interchange/dist/lib/UI/pages/include/component_editor
rev 1.6, prev_rev 1.5
Index: component_editor
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/include/component_editor,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- component_editor 30 Jan 2004 22:16:23 -0000 1.5
+++ component_editor 13 Feb 2004 15:01:01 -0000 1.6
@@ -265,6 +265,7 @@
table=mv_metadata
ui_data_fields="code ui_body_text"
notable=1
+ top-buttons-rows=1
no-table-meta=1
widget.ui_body_text="textarea"
width.ui_body_text="90"
1.15 +1 -0 interchange/dist/lib/UI/pages/include/page_editor
rev 1.15, prev_rev 1.14
Index: page_editor
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/include/page_editor,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- page_editor 6 Feb 2004 21:08:24 -0000 1.14
+++ page_editor 13 Feb 2004 15:01:01 -0000 1.15
@@ -491,6 +491,7 @@
mv_nextpage=@@MV_PAGE@@
nocancel=1
notable=1
+ top-buttons-rows=1
no_meta=1
override.ui_body_text=`$page_content`
show_reset=1
1.8 +1 -0 interchange/dist/lib/UI/pages/include/template_editor
rev 1.8, prev_rev 1.7
Index: template_editor
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/include/template_editor,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- template_editor 28 Jan 2004 16:04:52 -0000 1.7
+++ template_editor 13 Feb 2004 15:01:01 -0000 1.8
@@ -351,6 +351,7 @@
override.ui_body_text=`$Scratch->{c_content}`
show_reset=1
notable=1
+ top-buttons-rows=1
no-table-meta=1
widget.ui_body_text="textarea"
width.ui_body_text="90"
More information about the interchange-cvs
mailing list