/*
* CINELERRA
* Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ *
*/
+#include "asset.h"
+#include "assets.h"
+#include "awindow.h"
+#include "awindowgui.h"
#include "edit.h"
#include "editpopup.h"
+#include "edl.h"
+#include "edlsession.h"
+#include "file.h"
#include "language.h"
+#include "localsession.h"
+#include "mainerror.h"
#include "mainsession.h"
#include "mwindow.h"
#include "mwindowgui.h"
#include "tracks.h"
#include "trackcanvas.h"
-
#include <string.h>
EditPopup::EditPopup(MWindow *mwindow, MWindowGUI *gui)
- : BC_PopupMenu(0,
- 0,
- 0,
- "",
- 0)
+ : BC_PopupMenu(0, 0, 0, "", 0)
{
this->mwindow = mwindow;
this->gui = gui;
add_item(new EditPopupAddTrack(mwindow, this));
// add_item(new EditPopupTitle(mwindow, this));
resize_option = 0;
+ matchsize_option = 0;
}
int EditPopup::update(Track *track, Edit *edit)
int EditAttachEffect::handle_event()
{
dialog_thread->start_window(popup->track,
- 0,
- _(PROGRAM_NAME ": Attach Effect"),
- 0,
- popup->track->data_type);
+ 0, _(PROGRAM_NAME ": Attach Effect"),
+ 0, popup->track->data_type);
return 1;
}
}
-
-
EditPopupResize::EditPopupResize(MWindow *mwindow, EditPopup *popup)
: BC_MenuItem(_("Resize track..."))
{
}
-
-
-
-
EditPopupMatchSize::EditPopupMatchSize(MWindow *mwindow, EditPopup *popup)
: BC_MenuItem(_("Match output size"))
{
}
-
-
-
-
-
EditPopupDeleteTrack::EditPopupDeleteTrack(MWindow *mwindow, EditPopup *popup)
: BC_MenuItem(_("Delete track"))
{
}
-
-
-
-
EditPopupAddTrack::EditPopupAddTrack(MWindow *mwindow, EditPopup *popup)
: BC_MenuItem(_("Add track"))
{
}
-
-
-
-
EditPopupTitle::EditPopupTitle(MWindow *mwindow, EditPopup *popup)
: BC_MenuItem(_("User title..."))
{
}
-EditPopupTitleText::EditPopupTitleText (EditPopupTitleWindow *window,
+EditPopupTitleText::EditPopupTitleText (EditPopupTitleWindow *window,
MWindow *mwindow, int x, int y)
: BC_TextBox(x, y, 250, 1, (char*)(window->edt ? window->edt->user_title : ""))
{
this->mwindow = mwindow;
}
-EditPopupTitleText::~EditPopupTitleText()
-{
+EditPopupTitleText::~EditPopupTitleText()
+{
}
-
+
int EditPopupTitleText::handle_event()
{
return 1;
}
-
-
-
-
-
-