some more sensible gui default sizes

This commit is contained in:
Garux 2019-01-11 18:35:37 +03:00
parent d19b3c9a28
commit fb53d5094a
5 changed files with 9 additions and 10 deletions

View File

@ -825,9 +825,9 @@ namespace
GtkWidget* g_entity_split0 = 0; GtkWidget* g_entity_split0 = 0;
GtkWidget* g_entity_split1 = 0; GtkWidget* g_entity_split1 = 0;
GtkWidget* g_entity_split2 = 0; GtkWidget* g_entity_split2 = 0;
int g_entitysplit0_position; int g_entitysplit0_position = 255;
int g_entitysplit1_position; int g_entitysplit1_position = 231;
int g_entitysplit2_position; int g_entitysplit2_position = 57;
bool g_entityInspector_windowConstructed = false; bool g_entityInspector_windowConstructed = false;

View File

@ -83,6 +83,7 @@ EntityList() :
m_selection_disabled( false ), m_selection_disabled( false ),
m_search_from_start( false ), m_search_from_start( false ),
m_search_focus_node( 0 ){ m_search_focus_node( 0 ){
m_positionTracker.setPosition( WindowPosition( -1, -1, 350, 500 ) );
} }
bool visible() const { bool visible() const {
@ -562,8 +563,6 @@ void EntityList_Construct(){
g_EntityList = new EntityList; g_EntityList = new EntityList;
getEntityList().m_positionTracker.setPosition( c_default_window_pos );
GlobalPreferenceSystem().registerPreference( "EntityInfoDlg", WindowPositionTrackerImportStringCaller( getEntityList().m_positionTracker ), WindowPositionTrackerExportStringCaller( getEntityList().m_positionTracker ) ); GlobalPreferenceSystem().registerPreference( "EntityInfoDlg", WindowPositionTrackerImportStringCaller( getEntityList().m_positionTracker ), WindowPositionTrackerExportStringCaller( getEntityList().m_positionTracker ) );
GlobalPreferenceSystem().registerPreference( "EntListSearchFromStart", BoolImportStringCaller( getEntityList().m_search_from_start ), BoolExportStringCaller( getEntityList().m_search_from_start ) ); GlobalPreferenceSystem().registerPreference( "EntListSearchFromStart", BoolImportStringCaller( getEntityList().m_search_from_start ), BoolExportStringCaller( getEntityList().m_search_from_start ) );

View File

@ -96,7 +96,7 @@ static gboolean switch_page( GtkNotebook *notebook, GtkNotebookPage *page, guint
} }
GroupDlg::GroupDlg() : m_window( 0 ){ GroupDlg::GroupDlg() : m_window( 0 ){
m_position_tracker.setPosition( c_default_window_pos ); m_position_tracker.setPosition( WindowPosition( -1, -1, 444, 777 ) );
} }
void GroupDlg::Create( GtkWindow* parent ){ void GroupDlg::Create( GtkWindow* parent ){

View File

@ -136,9 +136,9 @@ struct layout_globals_t
m_position( -1, -1, 962, 480 ), m_position( -1, -1, 962, 480 ),
nXYHeight( 377 ), nXYHeight( 377 ),
nXYWidth( 600 ), nXYWidth( 480 ),
nCamWidth( 300 ), nCamWidth( 480 ),
nCamHeight( 230 ), nCamHeight( 250 ),
nState( 0 ){ nState( 0 ){
} }
}; };

View File

@ -205,7 +205,7 @@ SurfaceInspector() :
m_rotateIncrement( g_si_globals.rotate ){ m_rotateIncrement( g_si_globals.rotate ){
m_fitVertical = 1; m_fitVertical = 1;
m_fitHorizontal = 1; m_fitHorizontal = 1;
m_positionTracker.setPosition( c_default_window_pos ); m_positionTracker.setPosition( WindowPosition( -1, -1, 300, 400 ) );
} }
void constructWindow( GtkWindow* main_window ){ void constructWindow( GtkWindow* main_window ){