openclonk/src/editor/C4ConsoleGTKDlg.h

50 lines
1.3 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
2016-04-03 18:18:29 +00:00
* Copyright (c) 2013-2016, The OpenClonk Team and contributors
2009-05-08 13:28:41 +00:00
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2009-05-08 13:28:41 +00:00
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
2009-05-08 13:28:41 +00:00
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
2009-05-08 13:28:41 +00:00
*/
/* Common window for drawing and property tool dialogs in console mode */
#ifndef INC_C4DevmodeDlg
#define INC_C4DevmodeDlg
#ifdef USE_GTK
2010-09-22 15:11:19 +00:00
#include <gtk/gtk.h>
#endif // USE_GTK
2009-05-08 13:28:41 +00:00
// TODO: Threadsafety?
class C4DevmodeDlg
{
// Make sure all developer tools are held in the same window
#ifdef USE_GTK
2009-05-08 13:28:41 +00:00
private:
static GtkWidget* window;
static GtkWidget* notebook;
static int x, y;
static void OnDestroy(GtkWidget* widget, gpointer user_data);
public:
static GtkWidget* GetWindow() { return window; }
static void AddPage(GtkWidget* widget, GtkWindow* parent, const char* title);
static void RemovePage(GtkWidget* widget);
static void SwitchPage(GtkWidget* widget);
static void SetTitle(GtkWidget* widget, const char* title);
#endif // USE_GTK
2009-05-08 13:28:41 +00:00
};
#endif //INC_C4DevmodeDlg