* Model Browser: default bind '/'
m1 = assign model to selected entity nodes (shift + e to select nodes of group entities) m1x2 = insert "misc_model" with given model m1 drag = rotate model Preferences.Model Browser: list of * separated folderToLoad/depth values, e.g. *models/mapobjects/99*maps/1*; */99* loads root
This commit is contained in:
@@ -642,6 +642,18 @@ GtkWidget* Dialog::addFloatEntry( GtkWidget* vbox, const char* name, const Float
|
||||
return row.m_row;
|
||||
}
|
||||
|
||||
GtkWidget* Dialog::addTextEntry( GtkWidget* vbox, const char* name, const StringImportCallback& importViewer, const StringExportCallback& exportViewer ){
|
||||
GtkEntry* entry = DialogEntry_new();
|
||||
gtk_widget_set_size_request( GTK_WIDGET( entry ), -1, -1 ); // unset
|
||||
|
||||
AddTextEntryData( *entry, importViewer, exportViewer );
|
||||
|
||||
GtkTable* row = DialogRow_new( name, GTK_WIDGET( entry ) );
|
||||
DialogVBox_packRow( GTK_VBOX( vbox ), GTK_WIDGET( row ) );
|
||||
|
||||
return GTK_WIDGET( row );
|
||||
}
|
||||
|
||||
GtkWidget* Dialog::addPathEntry( GtkWidget* vbox, const char* name, bool browse_directory, const StringImportCallback& importViewer, const StringExportCallback& exportViewer ){
|
||||
PathEntry pathEntry = PathEntry_new();
|
||||
g_signal_connect( G_OBJECT( pathEntry.m_button ), "clicked", G_CALLBACK( browse_directory ? button_clicked_entry_browse_directory : button_clicked_entry_browse_file ), pathEntry.m_entry );
|
||||
|
||||
Reference in New Issue
Block a user