OSDN Git Service

[denncoCreator] Implemented external editor support feature.
[dennco/denncoCreator.git] / Source / dialog / dccodeeditorexternaleditorsettingdialog.h
diff --git a/Source/dialog/dccodeeditorexternaleditorsettingdialog.h b/Source/dialog/dccodeeditorexternaleditorsettingdialog.h
new file mode 100644 (file)
index 0000000..339f3d8
--- /dev/null
@@ -0,0 +1,52 @@
+//  Copyright (c) 2012 Dennco Project
+//
+// 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/>.
+
+//
+//  Created by tkawata on Dec-19, 2012.
+//
+#ifndef DCCODEEDITOREXTERNALEDITORSETTINGDIALOG_H
+#define DCCODEEDITOREXTERNALEDITORSETTINGDIALOG_H
+
+#include <QDialog>
+#include <QLineEdit>
+#include <QPushButton>
+
+class DCCodeEditorExternalEditorSettingDialog : public QDialog
+{
+    Q_OBJECT
+
+    bool        d_ok;
+    QLineEdit  *d_executableText;
+    QLineEdit  *d_parameterText;
+
+    QPushButton *d_chooseFileButton;
+    QPushButton *d_okButton;
+    QPushButton *d_cancelButton;
+
+public:
+    explicit DCCodeEditorExternalEditorSettingDialog(QWidget *parent = 0);
+    virtual ~DCCodeEditorExternalEditorSettingDialog();
+
+    bool getResult() const;
+signals:
+    
+public slots:
+    void    chooseFileButtonPressed();
+    void    okButtonPressed();
+    void    cancelButtonPressed();
+    
+};
+
+#endif // DCCODEEDITOREXTERNALEDITORSETTINGDIALOG_H