#include <gtk/gtkhpaned.h>
#include <gtk/gtkvpaned.h>
+#include <uilib/uilib.h>
#include "frame.h"
PanedState g_vpaned2 = { 0.5f, -1, };
GtkHPaned* create_split_views( GtkWidget* topleft, GtkWidget* topright, GtkWidget* botleft, GtkWidget* botright ){
- GtkHPaned* hsplit = GTK_HPANED( gtk_hpaned_new() );
+ GtkHPaned* hsplit = ui::HPaned();
gtk_widget_show( GTK_WIDGET( hsplit ) );
g_signal_connect( G_OBJECT( hsplit ), "size_allocate", G_CALLBACK( hpaned_allocate ), &g_hpaned );
g_signal_connect( G_OBJECT( hsplit ), "notify::position", G_CALLBACK( paned_position ), &g_hpaned );
{
- GtkVPaned* vsplit = GTK_VPANED( gtk_vpaned_new() );
+ GtkVPaned* vsplit = ui::VPaned();
gtk_paned_add1( GTK_PANED( hsplit ), GTK_WIDGET( vsplit ) );
gtk_widget_show( GTK_WIDGET( vsplit ) );
gtk_paned_add2( GTK_PANED( vsplit ), GTK_WIDGET( create_framed_widget( topright ) ) );
}
{
- GtkVPaned* vsplit = GTK_VPANED( gtk_vpaned_new() );
+ GtkVPaned* vsplit = ui::VPaned();
gtk_paned_add2( GTK_PANED( hsplit ), GTK_WIDGET( vsplit ) );
gtk_widget_show( GTK_WIDGET( vsplit ) );
GTK_MENU_ITEM((mnemonic ? gtk_menu_item_new_with_mnemonic : gtk_menu_item_new_with_label)(label)))
{ }
+ HPaned::HPaned() : HPaned(GTK_HPANED(gtk_hpaned_new()))
+ { }
+
+ VPaned::VPaned() : VPaned(GTK_VPANED(gtk_vpaned_new()))
+ { }
+
ScrolledWindow::ScrolledWindow() : ScrolledWindow(GTK_SCROLLED_WINDOW(gtk_scrolled_window_new(nullptr, nullptr)))
{ }
using ui_evkey = struct _GdkEventKey;
using ui_frame = struct _GtkFrame;
using ui_hbox = struct _GtkHBox;
+using ui_hpaned = struct _GtkHPaned;
using ui_label = struct _GtkLabel;
using ui_menu = struct _GtkMenu;
using ui_menuitem = struct _GtkMenuItem;
using ui_modal = struct ModalDialog;
using ui_object = struct _GtkObject;
+using ui_paned = struct _GtkPaned;
using ui_scrolledwindow = struct _GtkScrolledWindow;
using ui_spinbutton = struct _GtkSpinButton;
using ui_table = struct _GtkTable;
using ui_treeviewcolumn = struct _GtkTreeViewColumn;
using ui_typeinst = struct _GTypeInstance;
using ui_vbox = struct _GtkVBox;
+using ui_vpaned = struct _GtkVPaned;
using ui_widget = struct _GtkWidget;
using ui_window = struct _GtkWindow;
MenuItem(const char *label, bool mnemonic = false);
);
+ WRAP(Paned, Widget, ui_paned,);
+
+ WRAP(HPaned, Paned, ui_hpaned,
+ HPaned();
+ );
+
+ WRAP(VPaned, Paned, ui_vpaned,
+ VPaned();
+ );
+
WRAP(ScrolledWindow, Widget, ui_scrolledwindow,
ScrolledWindow();
);
g_signal_connect( G_OBJECT( vbox ), "destroy", G_CALLBACK( EntityInspector_destroyWindow ), 0 );
{
- ui::Widget split1 = ui::Widget(gtk_vpaned_new());
+ ui::Widget split1 = ui::VPaned();
gtk_box_pack_start( GTK_BOX( vbox ), split1, TRUE, TRUE, 0 );
gtk_widget_show( split1 );
g_entity_split1 = split1;
{
- ui::Widget split2 = ui::Widget(gtk_vpaned_new());
+ ui::Widget split2 = ui::VPaned();
gtk_paned_add1( GTK_PANED( split1 ), split2 );
gtk_widget_show( split2 );
}
{
- ui::Widget split2 = ui::Widget(gtk_vpaned_new());
+ ui::Widget split2 = ui::VPaned();
gtk_paned_add2( GTK_PANED( split1 ), split2 );
gtk_widget_show( split2 );
if ( CurrentStyle() == eRegular || CurrentStyle() == eRegularLeft ) {
{
- ui::Widget vsplit = ui::Widget(gtk_vpaned_new());
+ ui::Widget vsplit = ui::VPaned();
m_vSplit = vsplit;
gtk_box_pack_start( GTK_BOX( vbox ), vsplit, TRUE, TRUE, 0 );
gtk_widget_show( vsplit );
gtk_paned_pack2( GTK_PANED( vsplit ), console_window, FALSE, TRUE );
{
- ui::Widget hsplit = ui::Widget(gtk_hpaned_new());
+ ui::Widget hsplit = ui::HPaned();
gtk_widget_show( hsplit );
m_hSplit = hsplit;
gtk_paned_add1( GTK_PANED( vsplit ), hsplit );
ui::Widget xy_window = ui::Widget(GTK_WIDGET( create_framed_widget( m_pXYWnd->GetWidget() ) ));
{
- ui::Widget vsplit2 = ui::Widget(gtk_vpaned_new());
+ ui::Widget vsplit2 = ui::VPaned();
gtk_widget_show( vsplit2 );
m_vSplit2 = vsplit2;