zz_newPartDialog.h

Fri, 03 May 2013 18:14:18 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 03 May 2013 18:14:18 +0300
changeset 151
15fe6c51de54
parent 136
13db97be14cb
child 157
635da3135bd4
permissions
-rw-r--r--

Switched the object list from a QTreeWidget to a QListWidget-derivative. Derivative because I'm going to add a context menu.

/*
 *  LDForge: LDraw parts authoring CAD
 *  Copyright (C) 2013 Santeri Piippo
 *  
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef NEWPARTDIALOG_H
#define NEWPARTDIALOG_H

#include <qdialog.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qdialogbuttonbox.h>
#include <qradiobutton.h>
#include <qbuttongroup.h>
#include "gui.h"
#include "buttonbox.h"

class NewPartDialog : public QDialog {
public:
	explicit NewPartDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
	static void StaticDialog ();
	
	QLabel* lb_brickIcon, *lb_name, *lb_author, *lb_license, *lb_BFC;
	QLineEdit* le_name, *le_author;
	
	ButtonBox<QRadioButton>* bb_license, *bb_BFC;
	QDialogButtonBox* bbx_buttons;
};

#endif // NEWPARTDIALOG_H

mercurial