Skip to content

Commit

Permalink
Fixed text wrapping bug and disabled the orientation gui for now
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@1446 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
sbr00pwb committed May 21, 2004
1 parent 7b500e5 commit b87e305
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/copyright_label/plugin.cpp
Expand Up @@ -174,6 +174,7 @@ if (mEnable)
QColorGroup myQColorGroup = myQButton->colorGroup();

QSimpleRichText myQSimpleText(mLabelQString, mQFont);
myQSimpleText.setWidth( &myQPainter, (qGisInterface->getMapCanvas()->width()-10) );

//Get canvas dimensions
int myYOffset = qGisInterface->getMapCanvas()->height();
Expand Down
1 change: 1 addition & 0 deletions plugins/copyright_label/plugin.h
Expand Up @@ -71,6 +71,7 @@ class Plugin:public QObject, public QgisPlugin
void setPlacement(QString);
//! set copyright label enabled
void setEnable(bool);



private:
Expand Down
14 changes: 12 additions & 2 deletions plugins/copyright_label/plugingui.cpp
Expand Up @@ -14,19 +14,25 @@
#include <qsimplerichtext.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qlabel.h>

//qt includes

//standard includes

PluginGui::PluginGui() : PluginGuiBase()
{

//programmatically hide orientation selection for now
cboOrientation->hide();
textLabel15->hide();
}

PluginGui::PluginGui( QWidget* parent , const char* name , bool modal , WFlags fl )
: PluginGuiBase( parent, name, modal, fl )
{

//programmatically hide orientation selection for now
cboOrientation->hide();
textLabel15->hide();
}
PluginGui::~PluginGui()
{
Expand Down Expand Up @@ -56,4 +62,8 @@ void PluginGui::pbnCancel_clicked()
close(1);
}

void PluginGui::setEnabled(bool theBool)
{
cboxEnabled->setChecked(theBool);
}

5 changes: 4 additions & 1 deletion plugins/copyright_label/plugingui.h
Expand Up @@ -29,6 +29,9 @@ Q_OBJECT
void pbnOK_clicked();
void pbnCancel_clicked();

public slots:
void setEnabled(bool);

private:

signals:
Expand All @@ -39,7 +42,7 @@ Q_OBJECT
void changeColor(QColor);
void changePlacement(QString);
void enableCopyrightLabel(bool);

};

#endif

0 comments on commit b87e305

Please sign in to comment.