54 QLabel* tileSizeLabel =
new QLabel( tr(
"Tile size:"),
this );
55 tileSizes =
new QComboBox( tileSizeOptions );
64 tileWidth =
new QSpinBox( 1, 500, 1, tileSizeOptions );
66 tileHeight =
new QSpinBox( 1, 500, 1, tileSizeOptions );
79 Q3GridLayout* tileSizeGrid =
new Q3GridLayout( tileSizeOptions, 1, 6, 0 );
80 tileSizeGrid->addWidget(
tileSizes, 1, 0 );
82 tileSizeGrid->addWidget(
tileWidth, 1, 2 );
83 tileSizeGrid->addWidget(
tileSizeX, 1, 3 );
85 tileSizeGrid->setColStretch( 5, 1 );
91 QLabel* tileTypeLabel =
new QLabel( tr(
"Base tiles on:"),
this );
103 QString path = config->
getString(
"loadSave",
"addPhotoDir" );
105 if(!testPath.exists())
108 path = config->
getString(
"loadSave",
"addPhotoDir" );
124 Q3ButtonGroup* typeGroup =
new Q3ButtonGroup( tileTypeOptions );
130 Q3GridLayout* tileTypeGrid =
new Q3GridLayout( tileTypeOptions, 3, 3, 0 );
137 tileTypeGrid->setColSpacing(1, 300);
138 tileTypeGrid->setColStretch(1, 1);
144 QPushButton* applyButton =
new QPushButton( tr(
"Apply"), buttonsFrame );
145 applyButton->setDefault(
true);
146 applyButton->setFocus();
147 connect( applyButton, SIGNAL(clicked()), SLOT(accept()) );
149 QPushButton* cancelButton =
new QPushButton( tr(
"Cancel"), buttonsFrame );
150 connect( cancelButton, SIGNAL(clicked()), SLOT(reject()) );
152 Q3GridLayout* buttonsGrid =
new Q3GridLayout( buttonsFrame, 1, 2, 0 );
153 buttonsGrid->addWidget( applyButton, 0, 0 );
154 buttonsGrid->addWidget( cancelButton, 0, 1 );
158 Q3GridLayout* mainGrid =
new Q3GridLayout(
this, 5, 2, 0 );
160 mainGrid->setRowStretch( 0, 1 );
161 mainGrid->addWidget( tileSizeLabel, 1,0, Qt::AlignRight | Qt::AlignVCenter );
162 mainGrid->addWidget( tileSizeOptions, 1,1 );
163 mainGrid->addWidget( tileTypeLabel, 2,0, Qt::AlignRight | Qt::AlignVCenter );
164 mainGrid->addWidget( tileTypeOptions, 2,1 );
165 mainGrid->setRowStretch( 3, 1 );
166 mainGrid->addMultiCellWidget( buttonsFrame, 4,4, 0,1, Qt::AlignHCenter );
171 setCaption( tr(
"Mosaic Options") );
226 tmpDir.setPath( path );
229 tmpDir.setFilter( QDir::Files | QDir::Readable );
230 tmpDir.setNameFilter(
"*.gif;*.jpg;*.jpeg;*.png;*.xpm;*.GIF;*.JPG;*.JPEG;*.PNG;*.XPM" );
231 QStringList images = tmpDir.entryList();
232 QStringList::iterator it;
234 for(it = images.begin(); it != images.end(); it++ )
238 if( imageRes.width() <= 0 || imageRes.height() <= 0 )
continue;
241 files.append( tmpDir.absFilePath( *it ) );
250 tmpDir.setFilter( QDir::Dirs | QDir::Readable | QDir::NoSymLinks );
251 tmpDir.setNameFilter(
"*" );
252 QStringList directores = tmpDir.entryList();
253 for(it = directores.begin(); it != directores.end(); it++ )
256 if( dir.compare(
"." ) == 0 || dir.compare(
".." ) == 0 )
continue;