spin.connect( "focus_out_event", G_CALLBACK( doublevariable_spinfocusout ), &azimuth );
#endif
- auto frame = ui::Frame( nullptr );
+ auto frame = ui::Frame(ui::null);
frame.show();
gtk_frame_set_shadow_type( GTK_FRAME( frame ), GTK_SHADOW_IN );
gtk_box_pack_start( GTK_BOX( vbox ), frame, TRUE, TRUE, 0 );
gtk_widget_show( GTK_WIDGET( hbox ) );
GSList* group = 0;
- auto radio = ui::RadioButton{nullptr};
+ auto radio = ui::RadioButton(ui::null);
for ( StringArrayRange::Iterator i = names.first; i != names.last; ++i )
{
radio = ui::RadioButton(GTK_RADIO_BUTTON( gtk_radio_button_new_with_label( group, *i ) ));
gboolean ToggleShown::destroy(ui::Widget widget, ToggleShown *self)
{
self->m_shownDeferred = gtk_widget_get_visible(self->m_widget) != FALSE;
- self->m_widget = ui::Widget(nullptr);
+ self->m_widget = ui::Widget(ui::null);
return FALSE;
}
bool XORRectangle::initialised() const
{
- return cr != nullptr;
+ return !!cr;
}
void XORRectangle::lazy_init()
{
public:
Project& m_project;
-ui::ListStore m_store{nullptr};
+ui::ListStore m_store{ui::null};
bool m_changed;
ProjectList( Project& project ) : m_project( project ), m_changed( false ){
}
BuildMenuItems g_BuildMenuItems;
-ui::Menu g_bsp_menu{nullptr};
+ui::Menu g_bsp_menu{ui::null};
void Build_constructMenu( ui::Menu menu ){
for ( Project::iterator i = g_build_project.begin(); i != g_build_project.end(); ++i )
public:
StringAttribute( const char* key ) :
m_key( key ),
- m_entry( nullptr ),
+ m_entry( ui::null ),
m_nonModal( ApplyCaller( *this ), UpdateCaller( *this ) ){
auto entry = ui::Entry();
entry.show();
public:
AngleAttribute( const char* key ) :
m_key( key ),
- m_entry( nullptr ),
+ m_entry( ui::null ),
m_nonModal( ApplyCaller( *this ), UpdateCaller( *this ) ){
auto entry = numeric_entry_new();
m_entry = entry;
NonModalEntry m_nonModal;
RadioHBox m_radio;
NonModalRadio m_nonModalRadio;
-ui::HBox m_hbox{nullptr};
+ui::HBox m_hbox{ui::null};
public:
DirectionAttribute( const char* key ) :
m_key( key ),
- m_entry( nullptr ),
+ m_entry( ui::null ),
m_nonModal( ApplyCaller( *this ), UpdateCaller( *this ) ),
m_radio( RadioHBox_new( STRING_ARRAY_RANGE( buttons ) ) ),
m_nonModalRadio( ApplyRadioCaller( *this ) ){
ui::Entry m_roll;
ui::Entry m_pitch;
ui::Entry m_yaw;
-AnglesEntry() : m_roll( nullptr ), m_pitch( nullptr ), m_yaw( nullptr ){
+AnglesEntry() : m_roll( ui::null ), m_pitch( ui::null ), m_yaw( ui::null ){
}
};
ui::Entry m_x;
ui::Entry m_y;
ui::Entry m_z;
-Vector3Entry() : m_x( nullptr ), m_y( nullptr ), m_z( nullptr ){
+Vector3Entry() : m_x( ui::null ), m_y( ui::null ), m_z( ui::null ){
}
};
CopiedString m_key;
Vector3Entry m_vector3;
NonModalEntry m_nonModal;
-ui::Box m_hbox{nullptr};
+ui::Box m_hbox{ui::null};
public:
Vector3Attribute( const char* key ) :
m_key( key ),
GtkEntry* g_entityKeyEntry;
GtkEntry* g_entityValueEntry;
-ui::ListStore g_entlist_store{nullptr};
-ui::ListStore g_entprops_store{nullptr};
+ui::ListStore g_entlist_store{ui::null};
+ui::ListStore g_entprops_store{ui::null};
const EntityClass* g_current_flags = 0;
const EntityClass* g_current_comment = 0;
const EntityClass* g_current_attributes = 0;
// the table is a 4x4 in which we need to put the comment box g_entityClassComment and the spawn flags..
GtkTable* g_spawnflagsTable;
-ui::VBox g_attributeBox{nullptr};
+ui::VBox g_attributeBox{ui::null};
typedef std::vector<EntityAttribute*> EntityAttributes;
EntityAttributes g_entityAttributes;
}
{
GPtrArray *m_pFeedbackElements;
// the list widget we use in the dialog
-ui::ListStore m_clist{nullptr};
+ui::ListStore m_clist{ui::null};
ISAXHandler *m_pHighlight;
IGL2DWindow* m_pDraw2D;
public:
ui::Window FindTextureDialog::BuildDialog(){
ui::Widget vbox, hbox, table, label;
ui::Widget button;
- ui::Entry entry{nullptr};
+ ui::Entry entry{ui::null};
auto dlg = ui::Window(create_floating_window( "Find / Replace Texture(s)", m_parent ));
{
public:
ui::Window m_window{ui::null};
-ui::Label m_label{(GtkLabel *) nullptr};
+ui::Label m_label{ui::null};
};
WaitDialog create_wait_dialog( const char* title, const char* text ){
ModalDialog dialog;
GtkEntry* brushes_entry;
GtkEntry* entities_entry;
- ui::ListStore EntityBreakdownWalker{nullptr};
+ ui::ListStore EntityBreakdownWalker{ui::null};
ui::Window window = MainFrame_getWindow().create_dialog_window("Map Info", G_CALLBACK(dialog_delete_callback ), &dialog );
ui::CheckButton m_enabled;
ui::Entry m_horizontal;
ui::Entry m_vertical;
-Subdivisions() : m_enabled( (GtkCheckButton *) 0 ), m_horizontal( nullptr ), m_vertical( nullptr ){
+Subdivisions() : m_enabled( (GtkCheckButton *) 0 ), m_horizontal( ui::null ), m_vertical( ui::null ){
}
void update(){
PatchFixedSubdivisions subdivisions;
float m_fVShift; */
int m_nCol;
int m_nRow;
-ui::ComboBoxText m_pRowCombo{nullptr};
-ui::ComboBoxText m_pColCombo{nullptr};
+ui::ComboBoxText m_pRowCombo{ui::null};
+ui::ComboBoxText m_pColCombo{ui::null};
std::size_t m_countRows;
std::size_t m_countCols;
void PlugInMenu_Add( ui::Menu plugin_menu, IPlugIn* pPlugIn ){
ui::Widget item, parent;
- ui::Menu menu{nullptr}, subMenu{nullptr};
+ ui::Menu menu{ui::null}, subMenu{ui::null};
const char *menuText, *menuCommand;
std::stack<ui::Menu> menuStack;
toolbar_insert( toolbar, button->getImage(), button->getText(), button->getTooltip(), button->getType(), G_CALLBACK( ActivateToolbarButton ), reinterpret_cast<gpointer>( const_cast<IToolbarButton*>( button ) ) );
}
-ui::Toolbar g_plugin_toolbar{nullptr};
+ui::Toolbar g_plugin_toolbar{ui::null};
void PluginToolbar_populate(){
class AddToolbarItemVisitor : public ToolbarModules::Visitor
public:
GtkSpinButton* m_spin;
ui::Entry m_entry;
-Increment( float& f ) : m_f( f ), m_spin( 0 ), m_entry( nullptr ){
+Increment( float& f ) : m_f( f ), m_spin( 0 ), m_entry( ui::null ){
}
void cancel(){
entry_set_float( m_entry, m_f );
GtkCheckButton* m_contentFlags[32];
NonModalEntry m_valueEntry;
-ui::Entry m_valueEntryWidget{nullptr};
+ui::Entry m_valueEntryWidget{ui::null};
public:
WindowPositionTracker m_positionTracker;
WindowPositionTrackerImportStringCaller m_importPosition;
ui::Widget m_treeViewTree;
ui::Widget m_treeViewTags;
ui::Frame m_tag_frame{ui::null};
-ui::ListStore m_assigned_store{nullptr};
-ui::ListStore m_available_store{nullptr};
+ui::ListStore m_assigned_store{ui::null};
+ui::ListStore m_available_store{ui::null};
ui::Widget m_assigned_tree;
ui::Widget m_available_tree;
ui::Widget m_scr_win_tree;
ui::Widget m_shader_info_item;
std::set<CopiedString> m_all_tags;
-ui::ListStore m_all_tags_list{nullptr};
+ui::ListStore m_all_tags_list{ui::null};
std::vector<CopiedString> m_copied_tags;
std::set<CopiedString> m_found_shaders;
bool g_bCrossHairs = false;
-ui::Menu XYWnd::m_mnuDrop{nullptr};
+ui::Menu XYWnd::m_mnuDrop(ui::null);
// this is disabled, and broken
// http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=394
m_entityCreate = false;
- m_mnuDrop = ui::Menu{nullptr};
+ m_mnuDrop = ui::Menu(ui::null);
GlobalWindowObservers_add( m_window_observer );
GlobalWindowObservers_connectWidget( m_gl_widget );
if ( m_mnuDrop ) {
gtk_widget_destroy( GTK_WIDGET( m_mnuDrop ) );
- m_mnuDrop = ui::Menu{nullptr};
+ m_mnuDrop = ui::Menu(ui::null);
}
g_signal_handler_disconnect( G_OBJECT( m_gl_widget ), m_sizeHandler );
if ( ++m_unrealised == 1 ) {
if ( XYWnd::m_mnuDrop ) {
gtk_widget_destroy( GTK_WIDGET( XYWnd::m_mnuDrop ) );
- XYWnd::m_mnuDrop = ui::Menu(nullptr);
+ XYWnd::m_mnuDrop = ui::Menu(ui::null);
}
}
}