mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibGUI: Add GAbstractView base class for GTableView.
This is in preparation for adding a new view class.
This commit is contained in:
parent
994cf10b3e
commit
5707d7f547
7 changed files with 100 additions and 64 deletions
35
LibGUI/GAbstractView.cpp
Normal file
35
LibGUI/GAbstractView.cpp
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
#include <LibGUI/GAbstractView.h>
|
||||||
|
#include <LibGUI/GModel.h>
|
||||||
|
#include <LibGUI/GScrollBar.h>
|
||||||
|
#include <SharedGraphics/Painter.h>
|
||||||
|
#include <Kernel/KeyCode.h>
|
||||||
|
|
||||||
|
GAbstractView::GAbstractView(GWidget* parent)
|
||||||
|
: GScrollableWidget(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
GAbstractView::~GAbstractView()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GAbstractView::set_model(RetainPtr<GModel>&& model)
|
||||||
|
{
|
||||||
|
if (model.ptr() == m_model.ptr())
|
||||||
|
return;
|
||||||
|
if (m_model)
|
||||||
|
m_model->unregister_view(Badge<GAbstractView>(), *this);
|
||||||
|
m_model = move(model);
|
||||||
|
if (m_model)
|
||||||
|
m_model->register_view(Badge<GAbstractView>(), *this);
|
||||||
|
did_update_model();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GAbstractView::model_notification(const GModelNotification&)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GAbstractView::did_update_model()
|
||||||
|
{
|
||||||
|
model_notification(GModelNotification(GModelNotification::ModelUpdated));
|
||||||
|
}
|
26
LibGUI/GAbstractView.h
Normal file
26
LibGUI/GAbstractView.h
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <LibGUI/GModel.h>
|
||||||
|
#include <LibGUI/GScrollableWidget.h>
|
||||||
|
|
||||||
|
class GAbstractView : public GScrollableWidget {
|
||||||
|
friend class GModel;
|
||||||
|
public:
|
||||||
|
explicit GAbstractView(GWidget* parent);
|
||||||
|
virtual ~GAbstractView() override;
|
||||||
|
|
||||||
|
void set_model(RetainPtr<GModel>&&);
|
||||||
|
GModel* model() { return m_model.ptr(); }
|
||||||
|
const GModel* model() const { return m_model.ptr(); }
|
||||||
|
|
||||||
|
void scroll_into_view(const GModelIndex&, Orientation);
|
||||||
|
|
||||||
|
virtual bool accepts_focus() const override { return true; }
|
||||||
|
virtual void did_update_model();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void model_notification(const GModelNotification&);
|
||||||
|
|
||||||
|
private:
|
||||||
|
RetainPtr<GModel> m_model;
|
||||||
|
};
|
|
@ -1,5 +1,5 @@
|
||||||
#include <LibGUI/GModel.h>
|
#include <LibGUI/GModel.h>
|
||||||
#include <LibGUI/GTableView.h>
|
#include <LibGUI/GAbstractView.h>
|
||||||
|
|
||||||
GModel::GModel()
|
GModel::GModel()
|
||||||
{
|
{
|
||||||
|
@ -9,17 +9,17 @@ GModel::~GModel()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void GModel::register_view(Badge<GTableView>, GTableView& view)
|
void GModel::register_view(Badge<GAbstractView>, GAbstractView& view)
|
||||||
{
|
{
|
||||||
m_views.set(&view);
|
m_views.set(&view);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GModel::unregister_view(Badge<GTableView>, GTableView& view)
|
void GModel::unregister_view(Badge<GAbstractView>, GAbstractView& view)
|
||||||
{
|
{
|
||||||
m_views.remove(&view);
|
m_views.remove(&view);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GModel::for_each_view(Function<void(GTableView&)> callback)
|
void GModel::for_each_view(Function<void(GAbstractView&)> callback)
|
||||||
{
|
{
|
||||||
for (auto* view : m_views)
|
for (auto* view : m_views)
|
||||||
callback(*view);
|
callback(*view);
|
||||||
|
@ -29,7 +29,7 @@ void GModel::did_update()
|
||||||
{
|
{
|
||||||
if (on_model_update)
|
if (on_model_update)
|
||||||
on_model_update(*this);
|
on_model_update(*this);
|
||||||
for_each_view([] (GTableView& view) {
|
for_each_view([] (auto& view) {
|
||||||
view.did_update_model();
|
view.did_update_model();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <SharedGraphics/TextAlignment.h>
|
#include <SharedGraphics/TextAlignment.h>
|
||||||
|
|
||||||
class Font;
|
class Font;
|
||||||
class GTableView;
|
class GAbstractView;
|
||||||
|
|
||||||
enum class GSortOrder { None, Ascending, Descending };
|
enum class GSortOrder { None, Ascending, Descending };
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ public:
|
||||||
virtual GSortOrder sort_order() const { return GSortOrder::None; }
|
virtual GSortOrder sort_order() const { return GSortOrder::None; }
|
||||||
virtual void set_key_column_and_sort_order(int, GSortOrder) { }
|
virtual void set_key_column_and_sort_order(int, GSortOrder) { }
|
||||||
|
|
||||||
void register_view(Badge<GTableView>, GTableView&);
|
void register_view(Badge<GAbstractView>, GAbstractView&);
|
||||||
void unregister_view(Badge<GTableView>, GTableView&);
|
void unregister_view(Badge<GAbstractView>, GAbstractView&);
|
||||||
|
|
||||||
Function<void(GModel&)> on_model_update;
|
Function<void(GModel&)> on_model_update;
|
||||||
Function<void(const GModelIndex&)> on_selection_changed;
|
Function<void(const GModelIndex&)> on_selection_changed;
|
||||||
|
@ -79,11 +79,11 @@ public:
|
||||||
protected:
|
protected:
|
||||||
GModel();
|
GModel();
|
||||||
|
|
||||||
void for_each_view(Function<void(GTableView&)>);
|
void for_each_view(Function<void(GAbstractView&)>);
|
||||||
void did_update();
|
void did_update();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HashTable<GTableView*> m_views;
|
HashTable<GAbstractView*> m_views;
|
||||||
GModelIndex m_selected_index;
|
GModelIndex m_selected_index;
|
||||||
bool m_activates_on_selection { false };
|
bool m_activates_on_selection { false };
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <Kernel/KeyCode.h>
|
#include <Kernel/KeyCode.h>
|
||||||
|
|
||||||
GTableView::GTableView(GWidget* parent)
|
GTableView::GTableView(GWidget* parent)
|
||||||
: GScrollableWidget(parent)
|
: GAbstractView(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,31 +13,15 @@ GTableView::~GTableView()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void GTableView::set_model(RetainPtr<GModel>&& model)
|
|
||||||
{
|
|
||||||
if (model.ptr() == m_model.ptr())
|
|
||||||
return;
|
|
||||||
if (m_model)
|
|
||||||
m_model->unregister_view(Badge<GTableView>(), *this);
|
|
||||||
m_model = move(model);
|
|
||||||
if (m_model)
|
|
||||||
m_model->register_view(Badge<GTableView>(), *this);
|
|
||||||
update_content_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GTableView::model_notification(const GModelNotification&)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void GTableView::update_content_size()
|
void GTableView::update_content_size()
|
||||||
{
|
{
|
||||||
if (!m_model)
|
if (!model())
|
||||||
return set_content_size({ });
|
return set_content_size({ });
|
||||||
|
|
||||||
int content_width = 0;
|
int content_width = 0;
|
||||||
int column_count = m_model->column_count();
|
int column_count = model()->column_count();
|
||||||
for (int i = 0; i < column_count; ++i)
|
for (int i = 0; i < column_count; ++i)
|
||||||
content_width += m_model->column_metadata(i).preferred_width + horizontal_padding() * 2;
|
content_width += model()->column_metadata(i).preferred_width + horizontal_padding() * 2;
|
||||||
int content_height = item_count() * item_height();
|
int content_height = item_count() * item_height();
|
||||||
|
|
||||||
set_content_size({ content_width, content_height });
|
set_content_size({ content_width, content_height });
|
||||||
|
@ -48,7 +32,7 @@ void GTableView::did_update_model()
|
||||||
{
|
{
|
||||||
update_content_size();
|
update_content_size();
|
||||||
update();
|
update();
|
||||||
model_notification(GModelNotification(GModelNotification::ModelUpdated));
|
GAbstractView::did_update_model();
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect GTableView::row_rect(int item_index) const
|
Rect GTableView::row_rect(int item_index) const
|
||||||
|
@ -58,7 +42,7 @@ Rect GTableView::row_rect(int item_index) const
|
||||||
|
|
||||||
int GTableView::column_width(int column_index) const
|
int GTableView::column_width(int column_index) const
|
||||||
{
|
{
|
||||||
return m_model->column_metadata(column_index).preferred_width;
|
return model()->column_metadata(column_index).preferred_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect GTableView::header_rect(int column_index) const
|
Rect GTableView::header_rect(int column_index) const
|
||||||
|
@ -71,7 +55,7 @@ Rect GTableView::header_rect(int column_index) const
|
||||||
continue;
|
continue;
|
||||||
x_offset += column_width(i) + horizontal_padding() * 2;
|
x_offset += column_width(i) + horizontal_padding() * 2;
|
||||||
}
|
}
|
||||||
auto column_metadata = m_model->column_metadata(column_index);
|
auto column_metadata = model()->column_metadata(column_index);
|
||||||
int column_width = column_metadata.preferred_width;
|
int column_width = column_metadata.preferred_width;
|
||||||
return { x_offset, 0, column_width + horizontal_padding() * 2, header_height() };
|
return { x_offset, 0, column_width + horizontal_padding() * 2, header_height() };
|
||||||
}
|
}
|
||||||
|
@ -80,15 +64,15 @@ void GTableView::mousedown_event(GMouseEvent& event)
|
||||||
{
|
{
|
||||||
if (event.y() < header_height()) {
|
if (event.y() < header_height()) {
|
||||||
auto adjusted_position = event.position().translated(horizontal_scrollbar().value(), 0);
|
auto adjusted_position = event.position().translated(horizontal_scrollbar().value(), 0);
|
||||||
for (int i = 0; i < m_model->column_count(); ++i) {
|
for (int i = 0; i < model()->column_count(); ++i) {
|
||||||
auto header_rect = this->header_rect(i);
|
auto header_rect = this->header_rect(i);
|
||||||
if (header_rect.contains(adjusted_position)) {
|
if (header_rect.contains(adjusted_position)) {
|
||||||
auto new_sort_order = GSortOrder::Ascending;
|
auto new_sort_order = GSortOrder::Ascending;
|
||||||
if (m_model->key_column() == i)
|
if (model()->key_column() == i)
|
||||||
new_sort_order = m_model->sort_order() == GSortOrder::Ascending
|
new_sort_order = model()->sort_order() == GSortOrder::Ascending
|
||||||
? GSortOrder::Descending
|
? GSortOrder::Descending
|
||||||
: GSortOrder::Ascending;
|
: GSortOrder::Ascending;
|
||||||
m_model->set_key_column_and_sort_order(i, new_sort_order);
|
model()->set_key_column_and_sort_order(i, new_sort_order);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,12 +83,12 @@ void GTableView::mousedown_event(GMouseEvent& event)
|
||||||
auto adjusted_position = event.position().translated(0, vertical_scrollbar().value());
|
auto adjusted_position = event.position().translated(0, vertical_scrollbar().value());
|
||||||
for (int i = 0; i < item_count(); ++i) {
|
for (int i = 0; i < item_count(); ++i) {
|
||||||
if (row_rect(i).contains(adjusted_position)) {
|
if (row_rect(i).contains(adjusted_position)) {
|
||||||
m_model->set_selected_index({ i, 0 });
|
model()->set_selected_index({ i, 0 });
|
||||||
update();
|
update();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_model->set_selected_index({ });
|
model()->set_selected_index({ });
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,8 +104,8 @@ void GTableView::paint_event(GPaintEvent& event)
|
||||||
int painted_item_index = 0;
|
int painted_item_index = 0;
|
||||||
int y_offset = header_height();
|
int y_offset = header_height();
|
||||||
|
|
||||||
for (int row_index = 0; row_index < m_model->row_count(); ++row_index) {
|
for (int row_index = 0; row_index < model()->row_count(); ++row_index) {
|
||||||
bool is_selected_row = row_index == m_model->selected_index().row();
|
bool is_selected_row = row_index == model()->selected_index().row();
|
||||||
int y = y_offset + painted_item_index * item_height();
|
int y = y_offset + painted_item_index * item_height();
|
||||||
|
|
||||||
Color background_color;
|
Color background_color;
|
||||||
|
@ -141,20 +125,20 @@ void GTableView::paint_event(GPaintEvent& event)
|
||||||
painter.fill_rect(row_rect(painted_item_index), background_color);
|
painter.fill_rect(row_rect(painted_item_index), background_color);
|
||||||
|
|
||||||
int x_offset = 0;
|
int x_offset = 0;
|
||||||
for (int column_index = 0; column_index < m_model->column_count(); ++column_index) {
|
for (int column_index = 0; column_index < model()->column_count(); ++column_index) {
|
||||||
if (is_column_hidden(column_index))
|
if (is_column_hidden(column_index))
|
||||||
continue;
|
continue;
|
||||||
auto column_metadata = m_model->column_metadata(column_index);
|
auto column_metadata = model()->column_metadata(column_index);
|
||||||
int column_width = column_metadata.preferred_width;
|
int column_width = column_metadata.preferred_width;
|
||||||
const Font& font = column_metadata.font ? *column_metadata.font : this->font();
|
const Font& font = column_metadata.font ? *column_metadata.font : this->font();
|
||||||
bool is_key_column = m_model->key_column() == column_index;
|
bool is_key_column = model()->key_column() == column_index;
|
||||||
Rect cell_rect(horizontal_padding() + x_offset, y, column_width, item_height());
|
Rect cell_rect(horizontal_padding() + x_offset, y, column_width, item_height());
|
||||||
if (is_key_column) {
|
if (is_key_column) {
|
||||||
auto cell_rect_for_fill = cell_rect.inflated(horizontal_padding() * 2, 0);
|
auto cell_rect_for_fill = cell_rect.inflated(horizontal_padding() * 2, 0);
|
||||||
painter.fill_rect(cell_rect_for_fill, key_column_background_color);
|
painter.fill_rect(cell_rect_for_fill, key_column_background_color);
|
||||||
}
|
}
|
||||||
GModelIndex cell_index(row_index, column_index);
|
GModelIndex cell_index(row_index, column_index);
|
||||||
auto data = m_model->data(cell_index);
|
auto data = model()->data(cell_index);
|
||||||
if (data.is_bitmap()) {
|
if (data.is_bitmap()) {
|
||||||
painter.blit(cell_rect.location(), data.as_bitmap(), data.as_bitmap().rect());
|
painter.blit(cell_rect.location(), data.as_bitmap(), data.as_bitmap().rect());
|
||||||
} else {
|
} else {
|
||||||
|
@ -162,7 +146,7 @@ void GTableView::paint_event(GPaintEvent& event)
|
||||||
if (is_selected_row)
|
if (is_selected_row)
|
||||||
text_color = Color::White;
|
text_color = Color::White;
|
||||||
else
|
else
|
||||||
text_color = m_model->data(cell_index, GModel::Role::ForegroundColor).to_color(Color::Black);
|
text_color = model()->data(cell_index, GModel::Role::ForegroundColor).to_color(Color::Black);
|
||||||
painter.draw_text(cell_rect, data.to_string(), font, column_metadata.text_alignment, text_color);
|
painter.draw_text(cell_rect, data.to_string(), font, column_metadata.text_alignment, text_color);
|
||||||
}
|
}
|
||||||
x_offset += column_width + horizontal_padding() * 2;
|
x_offset += column_width + horizontal_padding() * 2;
|
||||||
|
@ -198,17 +182,17 @@ void GTableView::paint_headers(Painter& painter)
|
||||||
painter.draw_line({ 0, 0 }, { exposed_width - 1, 0 }, Color::White);
|
painter.draw_line({ 0, 0 }, { exposed_width - 1, 0 }, Color::White);
|
||||||
painter.draw_line({ 0, header_height() - 1 }, { exposed_width - 1, header_height() - 1 }, Color::DarkGray);
|
painter.draw_line({ 0, header_height() - 1 }, { exposed_width - 1, header_height() - 1 }, Color::DarkGray);
|
||||||
int x_offset = 0;
|
int x_offset = 0;
|
||||||
for (int column_index = 0; column_index < m_model->column_count(); ++column_index) {
|
for (int column_index = 0; column_index < model()->column_count(); ++column_index) {
|
||||||
if (is_column_hidden(column_index))
|
if (is_column_hidden(column_index))
|
||||||
continue;
|
continue;
|
||||||
auto column_metadata = m_model->column_metadata(column_index);
|
auto column_metadata = model()->column_metadata(column_index);
|
||||||
int column_width = column_metadata.preferred_width;
|
int column_width = column_metadata.preferred_width;
|
||||||
bool is_key_column = m_model->key_column() == column_index;
|
bool is_key_column = model()->key_column() == column_index;
|
||||||
Rect cell_rect(x_offset, 0, column_width + horizontal_padding() * 2, header_height());
|
Rect cell_rect(x_offset, 0, column_width + horizontal_padding() * 2, header_height());
|
||||||
if (is_key_column) {
|
if (is_key_column) {
|
||||||
painter.fill_rect(cell_rect.shrunken(2, 2), Color::from_rgb(0xdddddd));
|
painter.fill_rect(cell_rect.shrunken(2, 2), Color::from_rgb(0xdddddd));
|
||||||
}
|
}
|
||||||
painter.draw_text(cell_rect.translated(horizontal_padding(), 0), m_model->column_name(column_index), Font::default_bold_font(), TextAlignment::CenterLeft, Color::Black);
|
painter.draw_text(cell_rect.translated(horizontal_padding(), 0), model()->column_name(column_index), Font::default_bold_font(), TextAlignment::CenterLeft, Color::Black);
|
||||||
x_offset += column_width + horizontal_padding() * 2;
|
x_offset += column_width + horizontal_padding() * 2;
|
||||||
// Draw column separator.
|
// Draw column separator.
|
||||||
painter.draw_line(cell_rect.top_left().translated(0, 1), cell_rect.bottom_left().translated(0, -1), Color::White);
|
painter.draw_line(cell_rect.top_left().translated(0, 1), cell_rect.bottom_left().translated(0, -1), Color::White);
|
||||||
|
@ -220,7 +204,7 @@ void GTableView::paint_headers(Painter& painter)
|
||||||
|
|
||||||
int GTableView::item_count() const
|
int GTableView::item_count() const
|
||||||
{
|
{
|
||||||
return m_model->row_count();
|
return model()->row_count();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GTableView::keydown_event(GKeyEvent& event)
|
void GTableView::keydown_event(GKeyEvent& event)
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibGUI/GModel.h>
|
#include <LibGUI/GModel.h>
|
||||||
#include <LibGUI/GScrollableWidget.h>
|
#include <LibGUI/GAbstractView.h>
|
||||||
#include <AK/Function.h>
|
#include <AK/Function.h>
|
||||||
#include <AK/HashMap.h>
|
#include <AK/HashMap.h>
|
||||||
|
|
||||||
class GScrollBar;
|
class GScrollBar;
|
||||||
class Painter;
|
class Painter;
|
||||||
|
|
||||||
class GTableView : public GScrollableWidget {
|
class GTableView : public GAbstractView {
|
||||||
public:
|
public:
|
||||||
explicit GTableView(GWidget* parent);
|
explicit GTableView(GWidget* parent);
|
||||||
virtual ~GTableView() override;
|
virtual ~GTableView() override;
|
||||||
|
@ -16,31 +16,22 @@ public:
|
||||||
int header_height() const { return m_headers_visible ? 16 : 0; }
|
int header_height() const { return m_headers_visible ? 16 : 0; }
|
||||||
int item_height() const { return 16; }
|
int item_height() const { return 16; }
|
||||||
|
|
||||||
void set_model(RetainPtr<GModel>&&);
|
|
||||||
GModel* model() { return m_model.ptr(); }
|
|
||||||
const GModel* model() const { return m_model.ptr(); }
|
|
||||||
|
|
||||||
bool headers_visible() const { return m_headers_visible; }
|
bool headers_visible() const { return m_headers_visible; }
|
||||||
void set_headers_visible(bool headers_visible) { m_headers_visible = headers_visible; }
|
void set_headers_visible(bool headers_visible) { m_headers_visible = headers_visible; }
|
||||||
|
|
||||||
bool alternating_row_colors() const { return m_alternating_row_colors; }
|
bool alternating_row_colors() const { return m_alternating_row_colors; }
|
||||||
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
|
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
|
||||||
|
|
||||||
void did_update_model();
|
|
||||||
|
|
||||||
int content_width() const;
|
int content_width() const;
|
||||||
int horizontal_padding() const { return m_horizontal_padding; }
|
int horizontal_padding() const { return m_horizontal_padding; }
|
||||||
|
|
||||||
virtual bool accepts_focus() const override { return true; }
|
|
||||||
|
|
||||||
void scroll_into_view(const GModelIndex&, Orientation);
|
void scroll_into_view(const GModelIndex&, Orientation);
|
||||||
|
|
||||||
bool is_column_hidden(int) const;
|
bool is_column_hidden(int) const;
|
||||||
void set_column_hidden(int, bool);
|
void set_column_hidden(int, bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void model_notification(const GModelNotification&);
|
virtual void did_update_model() override;
|
||||||
|
|
||||||
virtual void paint_event(GPaintEvent&) override;
|
virtual void paint_event(GPaintEvent&) override;
|
||||||
virtual void mousedown_event(GMouseEvent&) override;
|
virtual void mousedown_event(GMouseEvent&) override;
|
||||||
virtual void keydown_event(GKeyEvent&) override;
|
virtual void keydown_event(GKeyEvent&) override;
|
||||||
|
@ -53,7 +44,6 @@ private:
|
||||||
void update_content_size();
|
void update_content_size();
|
||||||
|
|
||||||
Vector<bool> m_column_visibility;
|
Vector<bool> m_column_visibility;
|
||||||
RetainPtr<GModel> m_model;
|
|
||||||
int m_horizontal_padding { 5 };
|
int m_horizontal_padding { 5 };
|
||||||
bool m_headers_visible { true };
|
bool m_headers_visible { true };
|
||||||
bool m_alternating_row_colors { true };
|
bool m_alternating_row_colors { true };
|
||||||
|
|
|
@ -48,6 +48,7 @@ LIBGUI_OBJS = \
|
||||||
GDialog.o \
|
GDialog.o \
|
||||||
GDesktop.o \
|
GDesktop.o \
|
||||||
GProgressBar.o \
|
GProgressBar.o \
|
||||||
|
GAbstractView.o \
|
||||||
GWindow.o
|
GWindow.o
|
||||||
|
|
||||||
OBJS = $(SHAREDGRAPHICS_OBJS) $(LIBGUI_OBJS)
|
OBJS = $(SHAREDGRAPHICS_OBJS) $(LIBGUI_OBJS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue