src/EditProductExport.cpp

changeset 237
f1032191578b
parent 175
f1ed3a2a94e9
child 240
52efe638e79a
equal deleted inserted replaced
236:d0b1640ba951 237:f1032191578b
16 * You should have received a copy of the GNU General Public License 16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20 20
21 void EditProduct::on_exportButton_clicked() 21 void EditProduct::exportBeerXML()
22 { 22 {
23 qDebug() << "export"; 23 qDebug() << "export";
24 24
25 const QStringList styletype({ "Lager", "Ale", "Mead", "Wheat", "Mixed", "Cider" }); 25 const QStringList styletype({ "Lager", "Ale", "Mead", "Wheat", "Mixed", "Cider" });
26 const QStringList producttypes({ "Extract", "Partial Mash", "All Grain" }); 26 const QStringList producttypes({ "Extract", "Partial Mash", "All Grain" });
260 260
261 file.close(); 261 file.close();
262 } 262 }
263 263
264 264
265 void EditProduct::printProduct()
266 {
267 PrinterDialog(PR_PRODUCT, -1, this);
268 }
269
270
271 void EditProduct::on_exportButton_clicked()
272 {
273 exportBeerXML();
274 }
275
276
265 void EditProduct::on_printButton_clicked() 277 void EditProduct::on_printButton_clicked()
266 { 278 {
267 PrinterDialog(PR_RECIPE, -1, this); 279 printProduct();
268 } 280 }
269 281
270 282

mercurial