-
/*
* CINELERRA
* Copyright (C) 2006 Pierre Dumuid
+ * 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
#ifndef LABELEDIT_H
#define LABELEDIT_H
+#include "assetedit.inc"
+#include "assets.inc"
#include "awindow.inc"
-#include "edl.inc"
+#include "awindowgui.inc"
#include "guicast.h"
+#include "labeledit.inc"
#include "mwindow.inc"
-#include "thread.h"
#include "vwindow.inc"
-class LabelEdit : public Thread
+class LabelEdit : public BC_DialogThread
{
public:
LabelEdit(MWindow *mwindow, AWindow *awindow, VWindow *vwindow);
~LabelEdit();
- void run();
- void edit_label(Label *label);
+ BC_Window *new_gui();
+ void start(Label *label, int x, int y);
+ void handle_close_event(int result);
+ void handle_done_event(int result);
// If it is being created or edited
MWindow *mwindow;
VWindow *vwindow;
Label *label;
+ int x, y;
+ LabelEditWindow *label_edit_window;
};
-
-
-
class LabelEditWindow : public BC_Window
{
public:
void create_objects();
-
// Use this copy of the pointer in LabelEdit since multiple windows are possible
Label *label;
MWindow *mwindow;
LabelEdit *thread;
};
-
-
class LabelEditTitle : public BC_TextBox
{
public:
LabelEditWindow *window;
};
-
class LabelEditComments : public BC_TextBox
{
public:
LabelEditWindow *window;
};
-
-
-
-
-
#endif