Rework the project settings.

This has still a few missing things, but this enough to start getting
some feedback. Missing are non qt projects, a solution for the
runconfiguration, a missing black line between the treeview on top and
the project settings at the bottom. Some flickering with removing/adding
widgets to the QScrollArea and not showing the expanded widget if the
Details button is right at the bottom.
This commit is contained in:
dt
2009-08-06 15:31:32 +02:00
parent 4e7881577d
commit dbe5a6f34b
43 changed files with 933 additions and 439 deletions

View File

@@ -32,14 +32,15 @@
#include <QtGui/QWidget>
#include <QtGui/QScrollArea>
#include <QtGui/QTreeWidget>
QT_BEGIN_NAMESPACE
class QLabel;
class QVBoxLayout;
class QModelIndex;
class QTabWidget;
class QTreeWidget;
class QTreeWidgetItem;
class QHBoxLayout;
QT_END_NAMESPACE
namespace ProjectExplorer {
@@ -68,11 +69,26 @@ private:
{
QLabel *nameLabel;
QWidget *panelWidget;
QHBoxLayout *marginLayout;
};
QVBoxLayout *m_layout;
QList<Panel> m_panels;
};
class ProjectView : public QTreeWidget
{
Q_OBJECT
public:
ProjectView (QWidget *parent);
~ProjectView ();
virtual QSize sizeHint() const;
private slots:
void updateSizeHint();
private:
QSize m_sizeHint;
};
class ProjectWindow : public QWidget
{
Q_OBJECT
@@ -98,13 +114,14 @@ private:
SessionManager *m_session;
ProjectExplorerPlugin *m_projectExplorer;
QTreeWidget* m_treeWidget;
ProjectView* m_treeWidget;
PanelsWidget *m_panelsWidget;
Project *findProject(const QString &path) const;
bool m_currentItemChanged;
};
} // namespace Internal
} // namespace ProjectExplorer