Subversion Repositories programming

Rev

Rev 344 | Rev 347 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 344 Rev 345
Line 138... Line 138...
138
    assert (row >= 0);
138
    assert (row >= 0);
139
    assert (row < 10);
139
    assert (row < 10);
140
    assert (col >= 0);
140
    assert (col >= 0);
141
    assert (col < 5);
141
    assert (col < 5);
142
 
142
 
143
    const int numRows = 10;
143
    const int numRows = 10; // FIXME
144
    const int numCols = 5;
144
    const int numCols = 5;
145
 
145
 
146
    images.at (row*numCols+col)->set ("eopen2.png");
146
    images.at (row*numCols+col)->set ("eopen2.png");
147
}
147
}
148
 
148
 
Line 151... Line 151...
151
    assert (row >= 0);
151
    assert (row >= 0);
152
    assert (row < 10);
152
    assert (row < 10);
153
    assert (col >= 0);
153
    assert (col >= 0);
154
    assert (col < 5);
154
    assert (col < 5);
155
 
155
 
156
    const int numRows = 10;
156
    const int numRows = 10; // FIXME
157
    const int numCols = 5;
157
    const int numCols = 5;
158
    
158
    
159
    images.at (row*numCols+col)->clear ();
159
    images.at (row*numCols+col)->clear ();
160
    images.at (row*numCols+col)->set ("eclose.png");
160
    images.at (row*numCols+col)->set ("eclose.png");
161
}
161
}
Line 193... Line 193...
193
{
193
{
194
    int res;
194
    int res;
195
 
195
 
196
    Gtk::Dialog d ("Floor Dialog", true, true);
196
    Gtk::Dialog d ("Floor Dialog", true, true);
197
    Gtk::Entry entry;
197
    Gtk::Entry entry;
198
    Gtk::Label label ("Enter floors to stop at (space seperated): ");
198
    Gtk::Label label1 ("Enter floors to stop at (space seperated): ");
-
 
199
    Gtk::Label label2 ("Enter -1 for none");
199
 
200
 
200
    Gtk::Box *pBox = d.get_vbox();
201
    Gtk::Box *pBox = d.get_vbox();
201
 
202
 
202
    pBox->set_spacing (10);
203
    pBox->set_spacing (10);
203
 
204
 
-
 
205
    pBox->pack_start (label1);
204
    pBox->pack_start (label);
206
    pBox->pack_start (label2);
205
    pBox->pack_start (entry);
207
    pBox->pack_start (entry);
206
 
208
 
-
 
209
    label1.show ();
207
    label.show ();
210
    label2.show ();
208
    entry.show ();
211
    entry.show ();
209
 
212
 
210
    d.add_button ("gtk-ok", 7);
213
    d.add_button ("gtk-ok", 7);
211
 
214
 
212
    // Run the Dialog
215
    // Run the Dialog