Commit 32f756c8 authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

CursesDialog: include what you use

parent bfdf1322
......@@ -9,19 +9,22 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "cmCursesStandardIncludes.h"
#include "../cmDocumentation.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
#include <signal.h>
#include <sys/ioctl.h>
#include <cmConfigure.h>
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include <cmsys/Encoding.hxx>
#include "cmCursesStandardIncludes.h"
#include "cmDocumentation.h"
#include "cmDocumentationEntry.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <form.h>
#include <cmsys/Encoding.hxx>
#include <iostream>
#include <signal.h>
#include <string.h>
#include <string>
#include <vector>
static const char* cmDocumentationName[][2] = {
{ CM_NULLPTR, " ccmake - Curses Interface for CMake." },
......
......@@ -11,7 +11,10 @@
============================================================================*/
#include "cmCursesBoolWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include <string>
cmCursesBoolWidget::cmCursesBoolWidget(int width, int height, int left,
int top)
......
......@@ -12,6 +12,9 @@
#ifndef cmCursesBoolWidget_h
#define cmCursesBoolWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
class cmCursesMainForm;
......
......@@ -11,18 +11,20 @@
============================================================================*/
#include "cmCursesCacheEntryComposite.h"
#include "../cmState.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
#include "cmCursesBoolWidget.h"
#include "cmCursesDummyWidget.h"
#include "cmCursesFilePathWidget.h"
#include "cmCursesLabelWidget.h"
#include "cmCursesOptionsWidget.h"
#include "cmCursesPathWidget.h"
#include "cmCursesStringWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <assert.h>
#include <cmConfigure.h>
#include <vector>
cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
const std::string& key, int labelwidth, int entrywidth)
......
......@@ -12,8 +12,12 @@
#ifndef cmCursesCacheEntryComposite_h
#define cmCursesCacheEntryComposite_h
#include "cmCursesLabelWidget.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
class cmCursesLabelWidget;
class cmCursesWidget;
class cmake;
class cmCursesCacheEntryComposite
......
......@@ -11,6 +11,9 @@
============================================================================*/
#include "cmCursesDummyWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
cmCursesDummyWidget::cmCursesDummyWidget(int width, int height, int left,
int top)
: cmCursesWidget(width, height, left, top)
......
......@@ -12,6 +12,9 @@
#ifndef cmCursesDummyWidget_h
#define cmCursesDummyWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
class cmCursesMainForm;
......
......@@ -11,6 +11,9 @@
============================================================================*/
#include "cmCursesFilePathWidget.h"
#include "cmCursesPathWidget.h"
#include "cmState.h"
cmCursesFilePathWidget::cmCursesFilePathWidget(int width, int height, int left,
int top)
: cmCursesPathWidget(width, height, left, top)
......
......@@ -12,6 +12,8 @@
#ifndef cmCursesFilePathWidget_h
#define cmCursesFilePathWidget_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmCursesPathWidget.h"
class cmCursesFilePathWidget : public cmCursesPathWidget
......
......@@ -11,6 +11,8 @@
============================================================================*/
#include "cmCursesForm.h"
#include <cmConfigure.h>
cmsys::ofstream cmCursesForm::DebugFile;
bool cmCursesForm::Debug = false;
......
......@@ -12,6 +12,8 @@
#ifndef cmCursesForm_h
#define cmCursesForm_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmCursesStandardIncludes.h"
#include <cmsys/FStream.hxx>
......
......@@ -11,6 +11,8 @@
============================================================================*/
#include "cmCursesLabelWidget.h"
#include "cmCursesWidget.h"
cmCursesLabelWidget::cmCursesLabelWidget(int width, int height, int left,
int top, const std::string& name)
: cmCursesWidget(width, height, left, top)
......
......@@ -12,8 +12,13 @@
#ifndef cmCursesLabelWidget_h
#define cmCursesLabelWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include <string>
class cmCursesMainForm;
class cmCursesLabelWidget : public cmCursesWidget
......
......@@ -11,10 +11,13 @@
============================================================================*/
#include "cmCursesLongMessageForm.h"
#include "../cmSystemTools.h"
#include "../cmVersion.h"
#include "../cmake.h"
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include "cmCursesStandardIncludes.h"
#include "cmVersion.h"
#include <stdio.h>
#include <string.h>
inline int ctrl(int z)
{
......
......@@ -12,11 +12,13 @@
#ifndef cmCursesLongMessageForm_h
#define cmCursesLongMessageForm_h
#include "cmCursesStandardIncludes.h"
#include <cmConfigure.h>
#include "cmCursesForm.h"
#include "cmCursesStandardIncludes.h"
class cmCursesCacheEntryComposite;
#include <string>
#include <vector>
class cmCursesLongMessageForm : public cmCursesForm
{
......
......@@ -11,19 +11,22 @@
============================================================================*/
#include "cmCursesMainForm.h"
#include "../cmSystemTools.h"
#include "../cmVersion.h"
#include "../cmake.h"
#include "cmAlgorithms.h"
#include "cmCursesBoolWidget.h"
#include "cmCursesCacheEntryComposite.h"
#include "cmCursesDummyWidget.h"
#include "cmCursesFilePathWidget.h"
#include "cmCursesForm.h"
#include "cmCursesLabelWidget.h"
#include "cmCursesLongMessageForm.h"
#include "cmCursesPathWidget.h"
#include "cmCursesStandardIncludes.h"
#include "cmCursesStringWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmake.h"
#include <stdio.h>
#include <string.h>
inline int ctrl(int z)
{
......@@ -742,8 +745,6 @@ void cmCursesMainForm::FixValue(cmState::CacheEntryType type,
}
}
#include <unistd.h>
void cmCursesMainForm::HandleInput()
{
int x = 0, y = 0;
......
......@@ -12,13 +12,17 @@
#ifndef cmCursesMainForm_h
#define cmCursesMainForm_h
#include "cmCursesStandardIncludes.h"
#include <cmConfigure.h>
#include "../cmState.h"
#include "cmCursesForm.h"
#include "cmCursesStandardIncludes.h"
#include "cmState.h"
#include <stddef.h>
#include <string>
#include <vector>
class cmCursesCacheEntryComposite;
class cmCursesWidget;
class cmake;
/** \class cmCursesMainForm
......
......@@ -11,7 +11,8 @@
============================================================================*/
#include "cmCursesOptionsWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#define ctrl(z) ((z)&037)
......
......@@ -12,8 +12,14 @@
#ifndef cmCursesOptionsWidget_h
#define cmCursesOptionsWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include <string>
#include <vector>
class cmCursesMainForm;
class cmCursesOptionsWidget : public cmCursesWidget
......
......@@ -12,8 +12,12 @@
#include "cmCursesPathWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesStringWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include <vector>
cmCursesPathWidget::cmCursesPathWidget(int width, int height, int left,
int top)
: cmCursesStringWidget(width, height, left, top)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment