From 4d7617cbf20985b7cf2231675d8aadd01f77c3d2 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 2 Jul 2008 07:49:31 +0000 Subject: Added disable/enable methods on widgets and exposed them to lua. --- client/editor/editor.cc | 36 ++++++++++++++++++++++++++++++++++++ client/editor/editor.pro | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 client/editor/editor.cc create mode 100644 client/editor/editor.pro (limited to 'client/editor') diff --git a/client/editor/editor.cc b/client/editor/editor.cc new file mode 100644 index 0000000..de0bac1 --- /dev/null +++ b/client/editor/editor.cc @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/*************************************************************************** + * editor.cc + * + * Tue Jul 1 09:05:41 CEST 2008 + * Copyright 2008 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + +/* + * This file is part of Pracro. + * + * Pracro 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 2 of the License, or + * (at your option) any later version. + * + * Pracro 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 Pracro; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#include + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + + + return app.exec(); +} diff --git a/client/editor/editor.pro b/client/editor/editor.pro new file mode 100644 index 0000000..513c977 --- /dev/null +++ b/client/editor/editor.pro @@ -0,0 +1,41 @@ +# -*- Makefile -*- + +TEMPLATE = app +TARGET = editor +DEPENDPATH += . .. +INCLUDEPATH += . .. +QT += core gui xml + +# For debugging +QMAKE_CXXFLAGS += -g -Wall -Werror + +win32 { + LIBPATH += lua/lib + INCLUDEPATH += lua/include + LIBS += -llua51 + DEFINES += HOST_WIN32 +} + +unix { + LIBS += -llua +} + +HEADERS += \ + widgets.h \ + widgets/widget.h \ + widgets/label.h \ + widgets/lineedit.h \ + widgets/multilist.h \ + widgets/textedit.h \ + widgets/button.h \ + widgets/combobox.h \ + widgets/listbox.h \ + widgets/frame.h \ + widgets/groupbox.h \ + widgets/radiobutton.h \ + widgets/radiobuttons.h \ + widgets/checkbox.h \ + widgets/window.h + +SOURCES += \ + editor.cc -- cgit v1.2.3