Skip to content

Commit

Permalink
shrinked some GUIs,
Browse files Browse the repository at this point in the history
used GUI guideline for Browse buttons text


git-svn-id: http://svn.osgeo.org/qgis/trunk@14663 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Nov 14, 2010
1 parent ceaff47 commit 18dd78e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
22 changes: 1 addition & 21 deletions src/plugins/grass/qgsgrassselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,11 @@ QgsGrassSelect::QgsGrassSelect( int type ): QgsGrassSelectBase()
egisdbase->setText( lastGisdbase );

setLocations();

restorePosition();
}

QgsGrassSelect::~QgsGrassSelect()
{
saveWindowLocation();
}

void QgsGrassSelect::restorePosition()
{
//optionsFrame->adjustSize();
adjustSize();

QSettings settings;
restoreGeometry( settings.value( "/GRASS/windows/select/geometry" ).toByteArray() );
}

void QgsGrassSelect::saveWindowLocation()
QgsGrassSelect::~QgsGrassSelect()
{
QSettings settings;
settings.setValue( "/GRASS/windows/select/geometry", saveGeometry() );
}

bool QgsGrassSelect::first = true;
Expand Down Expand Up @@ -493,8 +476,6 @@ void QgsGrassSelect::on_GisdbaseBrowse_clicked()

void QgsGrassSelect::on_ok_clicked()
{
saveWindowLocation();

gisdbase = egisdbase->text();
lastGisdbase = QString( gisdbase );

Expand Down Expand Up @@ -558,6 +539,5 @@ void QgsGrassSelect::on_ok_clicked()

void QgsGrassSelect::on_cancel_clicked()
{
saveWindowLocation();
QDialog::reject();
}
3 changes: 0 additions & 3 deletions src/plugins/grass/qgsgrassselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ class QgsGrassSelect: public QDialog, private Ui::QgsGrassSelectBase
static QString lastRasterMap;
static QString lastLayer; // vector layer
static QString lastMapcalc;

void restorePosition( void );
void saveWindowLocation( void );
};


Expand Down
4 changes: 2 additions & 2 deletions src/plugins/grass/qgsgrassselectbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>393</width>
<width>478</width>
<height>221</height>
</rect>
</property>
Expand Down Expand Up @@ -94,7 +94,7 @@
<item row="0" column="2">
<widget class="QPushButton" name="GisdbaseBrowse">
<property name="text">
<string>Browse</string>
<string>Browse...</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 18dd78e

Please sign in to comment.