mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-20 14:50:01 +01:00
fixes, update labels, set current pm in notepad page,match sample image dimension with sample slot, fixed sample frame title, centered sample slot duration, minimum width on tree labels
git-svn-id: svn://code.dyne.org/veejay/trunk@1205 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -5876,7 +5876,7 @@
|
||||
<widget class="GtkVBox" id="sample_panel">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox621">
|
||||
@@ -5978,6 +5978,18 @@
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment539">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">1</property>
|
||||
<property name="yscale">1</property>
|
||||
<property name="top_padding">0</property>
|
||||
<property name="bottom_padding">0</property>
|
||||
<property name="left_padding">6</property>
|
||||
<property name="right_padding">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="frame_samplerecord">
|
||||
<property name="visible">True</property>
|
||||
@@ -6416,6 +6428,8 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
@@ -6884,13 +6898,6 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkExpander" id="expander10">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="expanded">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox544">
|
||||
<property name="visible">True</property>
|
||||
@@ -7934,31 +7941,6 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label341">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>EditList Operations</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">3</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
<property name="width_chars">-1</property>
|
||||
<property name="single_line_mode">False</property>
|
||||
<property name="angle">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">label_item</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3197">
|
||||
<widget class="GtkImage" id="image3237">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">button_loop.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -75,7 +75,7 @@
|
||||
<signal name="activate" handler="on_sampleadd_clicked" last_modification_time="Tue, 21 Feb 2006 22:53:15 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3198">
|
||||
<widget class="GtkImage" id="image3238">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_openlist.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -95,7 +95,7 @@
|
||||
<signal name="activate" handler="on_button_clipcopy_clicked" last_modification_time="Tue, 21 Feb 2006 22:54:58 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3199">
|
||||
<widget class="GtkImage" id="image3239">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_copy.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -115,7 +115,7 @@
|
||||
<signal name="activate" handler="on_button_sample_del_clicked" last_modification_time="Tue, 21 Feb 2006 22:54:35 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3200">
|
||||
<widget class="GtkImage" id="image3240">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_clear.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -138,7 +138,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3201">
|
||||
<widget class="GtkImage" id="image3241">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_stream.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -159,7 +159,7 @@
|
||||
<signal name="activate" handler="on_streamnew_clicked" last_modification_time="Tue, 21 Feb 2006 22:54:05 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3202">
|
||||
<widget class="GtkImage" id="image3242">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_openlist.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -179,7 +179,7 @@
|
||||
<signal name="activate" handler="on_new_colorstream_clicked" last_modification_time="Tue, 21 Feb 2006 22:54:05 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3203">
|
||||
<widget class="GtkImage" id="image3243">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_color.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -199,7 +199,7 @@
|
||||
<signal name="activate" handler="on_button_sample_del_clicked" last_modification_time="Tue, 21 Feb 2006 22:54:28 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3204">
|
||||
<widget class="GtkImage" id="image3244">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_clear.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -222,7 +222,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3205">
|
||||
<widget class="GtkImage" id="image3245">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_connect.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -240,7 +240,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_learn MIDI</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="activate" handler="on_midilearn_toggled" last_modification_time="Sat, 07 Apr 2007 17:55:42 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
@@ -250,7 +250,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_MIDI enable</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">midilearn</property>
|
||||
<signal name="activate" handler="on_midievent_toggled" last_modification_time="Sat, 07 Apr 2007 17:55:29 GMT"/>
|
||||
</widget>
|
||||
@@ -267,7 +267,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3206">
|
||||
<widget class="GtkImage" id="image3246">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_save.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -288,7 +288,7 @@
|
||||
<signal name="activate" handler="on_button_samplelist_save_clicked" last_modification_time="Wed, 19 Oct 2005 12:22:22 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3207">
|
||||
<widget class="GtkImage" id="image3247">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_saveas.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -308,7 +308,7 @@
|
||||
<signal name="activate" handler="on_button_saveconfigfile_clicked" last_modification_time="Wed, 19 Oct 2005 12:23:07 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3208">
|
||||
<widget class="GtkImage" id="image3248">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_openlist.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -328,7 +328,7 @@
|
||||
<signal name="activate" handler="on_save_midi_layout1_activate" last_modification_time="Fri, 06 Apr 2007 23:48:49 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3209">
|
||||
<widget class="GtkImage" id="image3249">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_saveas.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -351,7 +351,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3210">
|
||||
<widget class="GtkImage" id="image3250">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_open.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -372,7 +372,7 @@
|
||||
<signal name="activate" handler="on_button_samplelist_open_clicked" last_modification_time="Wed, 19 Oct 2005 12:21:30 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3211">
|
||||
<widget class="GtkImage" id="image3251">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_open.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -392,7 +392,7 @@
|
||||
<signal name="activate" handler="on_button_loadconfigfile_clicked" last_modification_time="Wed, 19 Oct 2005 12:20:50 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3212">
|
||||
<widget class="GtkImage" id="image3252">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_openlist.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -412,7 +412,7 @@
|
||||
<signal name="activate" handler="on_load_midi_layout1_activate" last_modification_time="Fri, 06 Apr 2007 23:48:49 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3213">
|
||||
<widget class="GtkImage" id="image3253">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_open.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -470,7 +470,7 @@
|
||||
<signal name="activate" handler="on_VideoSettings_activate" last_modification_time="Tue, 19 Jul 2005 19:33:02 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3214">
|
||||
<widget class="GtkImage" id="image3254">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-preferences</property>
|
||||
<property name="icon_size">1</property>
|
||||
@@ -497,7 +497,7 @@
|
||||
<signal name="activate" handler="on_vims_bundles_activate" last_modification_time="Sat, 23 Jul 2005 18:59:53 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3215">
|
||||
<widget class="GtkImage" id="image3255">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_bundle.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -530,7 +530,7 @@
|
||||
<signal name="activate" handler="on_about1_activate" last_modification_time="Thu, 15 Sep 2005 22:07:40 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3216">
|
||||
<widget class="GtkImage" id="image3256">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_question.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -550,7 +550,7 @@
|
||||
<signal name="activate" handler="on_report_a_bug1_activate" last_modification_time="Sun, 21 Sep 2008 13:31:19 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image3217">
|
||||
<widget class="GtkImage" id="image3257">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">icon_bug.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
@@ -5866,7 +5866,8 @@
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="panels">
|
||||
<property name="visible">True</property>
|
||||
<property name="show_tabs">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="show_tabs">True</property>
|
||||
<property name="show_border">False</property>
|
||||
<property name="tab_pos">GTK_POS_TOP</property>
|
||||
<property name="scrollable">False</property>
|
||||
@@ -5876,7 +5877,7 @@
|
||||
<widget class="GtkVBox" id="sample_panel">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox621">
|
||||
@@ -5978,6 +5979,18 @@
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment539">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">1</property>
|
||||
<property name="yscale">1</property>
|
||||
<property name="top_padding">0</property>
|
||||
<property name="bottom_padding">0</property>
|
||||
<property name="left_padding">6</property>
|
||||
<property name="right_padding">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="frame_samplerecord">
|
||||
<property name="visible">True</property>
|
||||
@@ -6416,6 +6429,8 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
@@ -6884,13 +6899,6 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkExpander" id="expander10">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="expanded">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox544">
|
||||
<property name="visible">True</property>
|
||||
@@ -7934,31 +7942,6 @@ MLZO</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label341">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>EditList Operations</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">3</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
<property name="width_chars">-1</property>
|
||||
<property name="single_line_mode">False</property>
|
||||
<property name="angle">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">label_item</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <src/vj-api.h>
|
||||
#include <sched.h>
|
||||
|
||||
extern int mt_get_max_tracks();
|
||||
|
||||
static int port_num = 3490;
|
||||
static char hostname[255];
|
||||
@@ -91,6 +92,8 @@ static int set_option( const char *name, char *value )
|
||||
else if (strcmp(name, "X") == 0 )
|
||||
{
|
||||
n_tracks = atoi(optarg);
|
||||
if( n_tracks < 1 || n_tracks > mt_get_max_tracks() )
|
||||
n_tracks = 1;
|
||||
}
|
||||
else if( strcmp(name, "t") == 0 || strcmp(name, "no-theme") == 0)
|
||||
{
|
||||
|
||||
@@ -114,6 +114,11 @@ extern void gtk_widget_set_size_request__( GtkWidget *w, gint iw, gint h, const
|
||||
#define gtk_widget_set_size_request_(a,b,c) gtk_widget_set_size_request__(a,b,c,__FUNCTION__,__LINE__)
|
||||
#endif
|
||||
|
||||
int mt_get_max_tracks()
|
||||
{
|
||||
return __MAX_TRACKS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void gtk_image_set_from_pixbuf__( GtkImage *w, GdkPixbuf *p, const char *f, int l )
|
||||
@@ -783,13 +788,18 @@ void *multitrack_new(
|
||||
gint max_h,
|
||||
GtkWidget *main_preview_area,
|
||||
void *infog,
|
||||
int threads)
|
||||
int threads,
|
||||
int num_tracks)
|
||||
{
|
||||
multitracker_t *mt = NULL;
|
||||
#ifdef STRICT_CHECKING
|
||||
assert( max_w > 0 );
|
||||
assert( max_h > 0 );
|
||||
assert( num_tracks > 0 );
|
||||
#endif
|
||||
|
||||
MAX_TRACKS = num_tracks;
|
||||
|
||||
mt = (multitracker_t*) vj_calloc(sizeof(multitracker_t));
|
||||
mt->view = (sequence_view_t**) vj_calloc(sizeof(sequence_view_t*) * MAX_TRACKS );
|
||||
mt->preview = NULL;
|
||||
|
||||
@@ -12,7 +12,8 @@ void *multitrack_new(
|
||||
gint max_h,
|
||||
GtkWidget *main_preview_area,
|
||||
void *gui,
|
||||
int threads);
|
||||
int threads,
|
||||
int max_tracks);
|
||||
|
||||
|
||||
void multitrack_set_logo(void *data , GtkWidget *img);
|
||||
|
||||
@@ -88,7 +88,7 @@ static struct
|
||||
} tooltips[] =
|
||||
{
|
||||
{"Mouse left: Set in point, Mouse right: Set out point, Double click: Clear selected, Mouse middle: Drag selection"},
|
||||
{"Mouse left/right: Play slot, Shift + Mouse left: Put sample in slot"},
|
||||
{"Mouse left/right: Play slot, Shift + Mouse left: Put sample in slot. You can also put selected samples."},
|
||||
{"Mouse left click: Select slot (sample in slot), Mouse double click: Play sample in slot, Mouse left + SHIFT: Set slot as mixing current mixing channel"},
|
||||
{NULL},
|
||||
};
|
||||
@@ -503,7 +503,7 @@ void reloaded_schedule_restart();
|
||||
static GtkWidget *effect_sources_tree = NULL;
|
||||
static GtkListStore *effect_sources_store = NULL;
|
||||
static GtkTreeModel *effect_sources_model = NULL;
|
||||
static int num_tracks_ = 0;
|
||||
static int num_tracks_ = 2;
|
||||
static int default_preview_width_ = 176;
|
||||
static int default_preview_height_ = 144;
|
||||
/* global pointer to the editlist-tree */
|
||||
@@ -543,6 +543,7 @@ static void load_effectlist_info();
|
||||
static void load_sequence_list();
|
||||
static void load_samplelist_info(gboolean with_reset_slotselection);
|
||||
static void load_editlist_info();
|
||||
static void set_pm_page_label(int sample_id, int type);
|
||||
#ifndef STRICT_CHECKING
|
||||
static void disable_widget_( const char *name );
|
||||
static void enable_widget_(const char *name );
|
||||
@@ -973,7 +974,7 @@ static void setup_v4l_devices()
|
||||
|
||||
g_object_unref( G_OBJECT( store ));
|
||||
setup_tree_text_column( "tree_v4ldevices", V4L_NUM, "#",0 );
|
||||
setup_tree_text_column( "tree_v4ldevices", V4L_NAME, "Device Name",1);
|
||||
setup_tree_text_column( "tree_v4ldevices", V4L_NAME, "Device Name",240);
|
||||
setup_tree_spin_column( "tree_v4ldevices", V4L_SPINBOX, "Channel");
|
||||
setup_tree_text_column( "tree_v4ldevices", V4L_LOCATION, "Location",0);
|
||||
|
||||
@@ -2729,6 +2730,7 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
||||
info->uc.reload_hint[HINT_HISTORY] = 1;
|
||||
|
||||
put_text( "entry_samplename", "" );
|
||||
set_pm_page_label( info->status_tokens[CURRENT_ID], pm );
|
||||
}
|
||||
if( info->status_tokens[CURRENT_ENTRY] != history[CURRENT_ENTRY] ||
|
||||
info->uc.reload_hint[HINT_ENTRY] == 1 )
|
||||
@@ -2766,11 +2768,6 @@ static void update_current_slot(int *history, int pm, int last_pm)
|
||||
/* Actions for sample */
|
||||
if(last_pm != pm || pm == MODE_SAMPLE )
|
||||
{
|
||||
/* Update label and video slider*/
|
||||
update_label_i( "label_sampleposition",
|
||||
info->status_tokens[FRAME_NUM] - info->status_tokens[SAMPLE_START] , 1);
|
||||
|
||||
|
||||
int marker_go = 0;
|
||||
/* Update marker bounds */
|
||||
if( (history[SAMPLE_MARKER_START] != info->status_tokens[SAMPLE_MARKER_START]) )
|
||||
@@ -3210,7 +3207,7 @@ static void setup_tree_text_column( const char *tree_name, int type, const char
|
||||
|
||||
if(len)
|
||||
{
|
||||
gtk_tree_view_column_set_min_width( column, 220);
|
||||
gtk_tree_view_column_set_min_width( column, len);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3235,7 +3232,7 @@ static void setup_effectchain_info( void )
|
||||
g_object_unref( G_OBJECT( store ));
|
||||
|
||||
setup_tree_text_column( "tree_chain", FXC_ID, "#",0 );
|
||||
setup_tree_text_column( "tree_chain", FXC_FXID, "Effect",1 );
|
||||
setup_tree_text_column( "tree_chain", FXC_FXID, "Effect",350 );
|
||||
setup_tree_pixmap_column( "tree_chain", FXC_FXSTATUS, "Run"); // todo: could be checkbox!!
|
||||
setup_tree_pixmap_column( "tree_chain", FXC_KF , "Anim" ); // parameter interpolation on/off per entry
|
||||
GtkTreeSelection *selection;
|
||||
@@ -3723,8 +3720,8 @@ void setup_samplelist_info()
|
||||
effect_sources_model = gtk_tree_view_get_model( GTK_TREE_VIEW(effect_sources_tree ));
|
||||
effect_sources_store = GTK_LIST_STORE(effect_sources_model);
|
||||
|
||||
setup_tree_text_column( "tree_sources", SL_ID, "Id",0 );
|
||||
setup_tree_text_column( "tree_sources", SL_TIMECODE, "Length" ,0);
|
||||
setup_tree_text_column( "tree_sources", SL_ID, "Id",175 );
|
||||
setup_tree_text_column( "tree_sources", SL_TIMECODE, "Length" ,175);
|
||||
|
||||
GtkTreeSelection *selection;
|
||||
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(effect_sources_tree));
|
||||
@@ -3929,12 +3926,11 @@ static void load_samplelist_info(gboolean with_reset_slotselection)
|
||||
strncpy( line, fxtext + offset, len );
|
||||
|
||||
int values[4];
|
||||
sscanf( line, "%05d%09d%09d%03d%s",
|
||||
&values[0], &values[1], &values[2], &values[3],
|
||||
descr );
|
||||
sscanf( line, "%05d%09d%09d%03d",
|
||||
&values[0], &values[1], &values[2], &values[3]);
|
||||
strncpy( descr, line + 5 + 9 + 9 + 3 , values[3] );
|
||||
gchar *title = _utf8str( descr );
|
||||
gchar *timecode = format_selection_time( 0,(values[2]-values[1]) );
|
||||
|
||||
int int_id = values[0];
|
||||
int poke_slot= 0; int bank_page = 0;
|
||||
verify_bank_capacity( &bank_page , &poke_slot, int_id, 0);
|
||||
@@ -4352,10 +4348,10 @@ static void setup_editlist_info()
|
||||
editlist_store = GTK_LIST_STORE(editlist_model);
|
||||
|
||||
setup_tree_text_column( "editlisttree", COLUMN_INT, "#",0);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRING0, "Timecode",0 );
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGA, "Filename",0);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGB, "Duration",0);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGC, "FOURCC",0);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRING0, "Timecode",75 );
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGA, "Filename",300);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGB, "Duration",75);
|
||||
setup_tree_text_column( "editlisttree", COLUMN_STRINGC, "FOURCC",50);
|
||||
|
||||
g_signal_connect( editlist_tree, "row-activated",
|
||||
(GCallback) on_editlist_row_activated, NULL );
|
||||
@@ -5491,8 +5487,6 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
||||
for(i=0; streamwidgets[i].name != NULL; i++)
|
||||
enable_widget( streamwidgets[i].name);
|
||||
|
||||
update_label_str( "label_current_mode", "Stream");
|
||||
update_label_str( "label_current_mode", "Stream");
|
||||
}
|
||||
|
||||
if( new_pm == MODE_SAMPLE )
|
||||
@@ -5503,10 +5497,6 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
||||
disable_widget( plainwidgets[i].name);
|
||||
for(i=0; samplewidgets[i].name != NULL; i++)
|
||||
enable_widget( samplewidgets[i].name);
|
||||
|
||||
update_label_str( "label_current_mode", "Sample");
|
||||
update_label_str( "label_currentsource", "Sample" );
|
||||
|
||||
}
|
||||
|
||||
if( new_pm == MODE_PLAIN)
|
||||
@@ -5518,9 +5508,6 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
||||
for(i=0; plainwidgets[i].name != NULL; i++)
|
||||
enable_widget( plainwidgets[i].name);
|
||||
|
||||
update_label_str( "label_current_mode","Plain");
|
||||
update_label_str( "label_currentsource", "Plain" );
|
||||
|
||||
}
|
||||
GtkWidget *n = glade_xml_get_widget_( info->main_window, "panels" );
|
||||
int page_needed = 0;
|
||||
@@ -5541,6 +5528,21 @@ static void update_status_accessibility(int old_pm, int new_pm)
|
||||
|
||||
}
|
||||
|
||||
static void set_pm_page_label(int sample_id, int type)
|
||||
{
|
||||
gchar ostitle[100];
|
||||
switch(type) {
|
||||
case 0: snprintf(ostitle, sizeof(ostitle), "Sample %d",sample_id);break;
|
||||
case 1: snprintf(ostitle, sizeof(ostitle), "Stream %d",sample_id);break;
|
||||
default:
|
||||
snprintf(ostitle,sizeof(ostitle), "Plain");break;
|
||||
}
|
||||
gchar *title = _utf8str(ostitle);
|
||||
update_label_str( "label_current_mode", title);
|
||||
update_label_str( "label_currentsource", title );
|
||||
g_free(title);
|
||||
}
|
||||
|
||||
static void update_globalinfo(int *history, int pm, int last_pm)
|
||||
{
|
||||
int i;
|
||||
@@ -5630,6 +5632,7 @@ static void update_globalinfo(int *history, int pm, int last_pm)
|
||||
}
|
||||
update_spin_range("button_fadedur", 0, total_frames_, 0 );
|
||||
update_label_i( "label_totframes", total_frames_, 1 );
|
||||
update_label_str( "label_samplelength",time);
|
||||
if( pm == MODE_PLAIN )
|
||||
{
|
||||
for( i = 0; i < 3; i ++)
|
||||
@@ -5641,7 +5644,6 @@ static void update_globalinfo(int *history, int pm, int last_pm)
|
||||
update_spin_range(
|
||||
"button_el_selpaste", 0, total_frames_, info->selection[2]);
|
||||
}
|
||||
veejay_msg(0, "%s",time);
|
||||
update_label_i( "label_totframes", total_frames_, 1 );
|
||||
update_label_str( "label_totaltime", time );
|
||||
if(pm == MODE_SAMPLE)
|
||||
@@ -5664,6 +5666,7 @@ veejay_msg(0, "%s",time);
|
||||
gchar *current_time_ = format_time( info->status_frame,info->el.fps );
|
||||
update_label_i( "label_curframe", info->status_frame ,1 );
|
||||
update_label_str( "label_curtime", current_time_ );
|
||||
update_label_str( "label_sampleposition", current_time_);
|
||||
g_free(current_time_);
|
||||
|
||||
if( pm == MODE_SAMPLE )
|
||||
@@ -5713,7 +5716,6 @@ veejay_msg(0, "%s",time);
|
||||
}
|
||||
|
||||
update_current_slot(history, pm, last_pm);
|
||||
|
||||
// info->uc.playmode = pm;
|
||||
}
|
||||
|
||||
@@ -6514,7 +6516,8 @@ void vj_gui_init(char *glade_file, int launcher, char *hostname, int port_num,
|
||||
ph,
|
||||
img_wid,
|
||||
(void*) gui,
|
||||
use_threads);
|
||||
use_threads,
|
||||
num_tracks_);
|
||||
|
||||
if( theme_list )
|
||||
{
|
||||
@@ -7097,13 +7100,21 @@ void setup_samplebank(gint num_cols, gint num_rows, GtkWidget *pad, int *idx, in
|
||||
result.height -= ( num_cols * 16);
|
||||
gint image_width = result.width / num_rows;
|
||||
gint image_height = result.height / num_cols;
|
||||
|
||||
|
||||
float ratio = (float) info->el.height / (float) info->el.width;
|
||||
image_height = image_width * ratio;
|
||||
*idx = 64;
|
||||
*idy = 64 * ratio;
|
||||
// info->image_dimensions[0] = 64;
|
||||
// info->image_dimensions[1] = 64 * ratio;
|
||||
veejay_msg(0, "Image: %dx%d", image_width,image_height );
|
||||
*idx = image_width;
|
||||
while( (image_width * ratio) > image_height )
|
||||
*idy = image_width * ratio;
|
||||
|
||||
|
||||
gfloat w = image_width;
|
||||
gfloat h = image_width * ratio;
|
||||
|
||||
*idx = (int)w;
|
||||
*idy = (int)h;
|
||||
|
||||
}
|
||||
veejay_msg(VEEJAY_MSG_INFO, "Sample bank image dimensions: %dx%d", *idx,*idy);
|
||||
}
|
||||
@@ -7457,7 +7468,9 @@ static void create_slot(gint bank_nr, gint slot_nr, gint w, gint h)
|
||||
gui_slot->title = gtk_label_new("");
|
||||
|
||||
gui_slot->timecode = gtk_label_new("");
|
||||
gtk_misc_set_alignment(GTK_MISC(gui_slot->timecode), 0.0, 0.0);
|
||||
gtk_misc_set_alignment(GTK_MISC(gui_slot->timecode), 0.5, 0.0);
|
||||
gtk_misc_set_alignment(GTK_MISC(gui_slot->title), 0.5, 0.0);
|
||||
|
||||
gtk_misc_set_padding (GTK_MISC(gui_slot->timecode), 0,0 );
|
||||
gtk_box_pack_start (GTK_BOX (gui_slot->upper_vbox), GTK_WIDGET(gui_slot->timecode), FALSE, FALSE, 0);
|
||||
gtk_widget_show(GTK_WIDGET(gui_slot->timecode));
|
||||
@@ -7720,8 +7733,8 @@ static void update_sample_slot_data(int page_num, int slot_num, int sample_id, g
|
||||
|
||||
if(gui_slot)
|
||||
{
|
||||
// if(gui_slot->title)
|
||||
// gtk_label_set_text( GTK_LABEL( gui_slot->title ), slot->title );
|
||||
if(gui_slot->title)
|
||||
gtk_label_set_text( GTK_LABEL( gui_slot->title ), slot->title );
|
||||
if(gui_slot->timecode)
|
||||
gtk_label_set_text( GTK_LABEL( gui_slot->timecode ), slot->timecode );
|
||||
|
||||
@@ -7745,7 +7758,6 @@ static void update_sample_slot_data(int page_num, int slot_num, int sample_id, g
|
||||
slot->pixbuf = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void veejay_release_track(int id, int release_this)
|
||||
|
||||
Reference in New Issue
Block a user